Re: Function for retreiving datatype

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Brendan Jurd <blakjak(at)blakjak(dot)sytes(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Function for retreiving datatype
Date: 2005-01-10 22:20:38
Message-ID: 20050110222038.GA6572@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Jan 11, 2005 at 08:29:33AM +1100, Brendan Jurd wrote:

> My post was all about finding out whether postgres has this
> functionality.

Certainly PostgreSQL provides a way to discover a row's column
types, but how to do it depends on where you're trying to do it
from. If you're writing a client program in C using libpq, you
could use the functions documented under "Retrieving Query Result
Information" in the "Command Execution Functions" section of the
libpq chapter of the documentation. If you're writing a client
program using ECPG then you could use a descriptor area. If you're
writing a server-side C program that makes queries via SPI then you
could use the functions defined under "Interface Support Functions"
in the "Server Programming Interface" chapter.

Is that what you're looking for?

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Brendan Jurd 2005-01-10 22:31:26 Re: Function for retreiving datatype
Previous Message Scott Marlowe 2005-01-10 21:39:40 Re: large dbII to postgresql migration