Re: PL/Python result metadata - Mailing list pgsql-hackers

From Dimitri Fontaine
Subject Re: PL/Python result metadata
Date
Msg-id m2ty41vrek.fsf@2ndQuadrant.fr
Whole thread Raw
In response to PL/Python result metadata  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: PL/Python result metadata  (Jan Urbański <wulczer@wulczer.org>)
Re: PL/Python result metadata  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> .colnames() returns a list of column names (strings)
> .coltypes() returns a list of type OIDs (integers)
>
> I just made that up because there is no guidance in the other standard
> PLs for this sort of thing, AFAICT.

What about having the same or comparable API as in psycopg or DB API
 http://initd.org/psycopg/docs/cursor.html

You could expose a py.description structure?
-- 
Dimitri Fontaine
http://2ndQuadrant.fr     PostgreSQL : Expertise, Formation et Support


pgsql-hackers by date:

Previous
From: Jaime Casanova
Date:
Subject: pg_basebackup is not checking IDENTIFY_SYSTEM numbre of columns
Next
From: Magnus Hagander
Date:
Subject: Re: pg_basebackup is not checking IDENTIFY_SYSTEM numbre of columns