SPI equivalent for libpq PQftable & PQFtablecolumn

Поиск
Список
Период
Сортировка
Искать

SPI equivalent for libpq PQftable & PQFtablecolumn

От:
Darko Prenosil <darko.prenosil@finteh.hr>
Дата:

First time I posted a question using complicated example,  but this time I'll 
be wiser and simplify the question:
What is SPI equivalent for libpq PQftable & PQFtablecolumn functions ?

Regards !

Re: SPI equivalent for libpq PQftable & PQFtablecolumn

От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
Darko Prenosil  writes:
> 	What is SPI equivalent for libpq PQftable & PQFtablecolumn functions ?

There is none.  SendRowDescriptionMessage gets the column ID info by
rooting around in the targetlist of the SELECT query, and you'd have
to do the same.
		regards, tom lane

Re: SPI equivalent for libpq PQftable & PQFtablecolumn

От:
"Darko Prenosil" <Darko.Prenosil@finteh.hr>
Дата:
Thanks (again) Tom, I'll try to do as You suggested.
I was poking around backend libpq, but was unable to find where exactly
that information is prepared and send to libpq buffer.

Regards !

----- Original Message -----
From: "Tom Lane" 
To: "Darko Prenosil" 
Cc: 
Sent: Friday, June 18, 2004 5:03 PM
Subject: Re: [HACKERS] SPI equivalent for libpq PQftable & PQFtablecolumn


> Darko Prenosil  writes:
> > What is SPI equivalent for libpq PQftable & PQFtablecolumn functions ?
>
> There is none.  SendRowDescriptionMessage gets the column ID info by
> rooting around in the targetlist of the SELECT query, and you'd have
> to do the same.
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
>                http://www.postgresql.org/docs/faqs/FAQ.html
>


FAQ