Re: PL/Python result metadata

From: Dimitri Fontaine <dimitri(at)2ndQuadrant(dot)fr>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: PL/Python result metadata
Date: 2012-01-11 21:52:03
Message-ID: m2ty41vrek.fsf@2ndQuadrant.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Peter Eisentraut <peter_e(at)gmx(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Magnus Hagander 2012-01-11 22:11:46 Re: pg_basebackup is not checking IDENTIFY_SYSTEM numbre of columns
Previous Message Jaime Casanova 2012-01-11 21:31:33 pg_basebackup is not checking IDENTIFY_SYSTEM numbre of columns