Re: [GENERAL] Get column list from Postgres Query

2011-02-19 Thread Scott Ribe
On Feb 19, 2011, at 4:42 PM, PANAGIOTIS GERMANIS wrote: > want to get the names, the type and the length of all columns in a postgres > query using c-api calls. This documented pretty clearly in the libpq docs: -- Scott Ribe scott_r...@e

[GENERAL] Get column list from Postgres Query

2011-02-19 Thread PANAGIOTIS GERMANIS
I want to get the names, the type and the length of all columns in a postgres query using c-api calls. For example from: SELECT customers.id, customers.name, transaction.date, transaction.amount FROM customers, transactions I must get: customers.id, customers.name, transaction.date, transac