Re: Cursor metadata

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: achambers(at)mcna(dot)net
Cc: "Postgresql (General)" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Cursor metadata
Date: 2011-04-13 16:50:34
Message-ID: 6935.1302713434@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Andy Chambers" <achambers(at)mcna(dot)net> writes:
> Is there anywhere in the postgres catalog where one can access metadata
> about a held cursor.

The pg_cursors system view offers some info ...

> Type information
> in particular would be really useful.

... but not that. Usually the best way to get information about the
columns of a table/view/cursor is to fetch a row from it and use the
metadata that's provided by the fetch mechanism.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message David Johnston 2011-04-13 16:57:20 Re: updating rows which have a common value forconsecutive dates
Previous Message Andrew Sullivan 2011-04-13 16:31:21 Re: Adding a default value to a column after it exists