Query to get column-names in table via PG tables? - Mailing list pgsql-general

From Ken Johanson
Subject Query to get column-names in table via PG tables?
Date
Msg-id 4785BD3E.2010805@kensystem.com
Whole thread Raw
Responses Re: Query to get column-names in table via PG tables?
Re: Query to get column-names in table via PG tables?
List pgsql-general
Hi all,

I am looking for expertise on how to program the equivalent to this
query, but using the pg_catalog tables, which I understand have fewer
security restrictions than information_schema in some cases:

SELECT column_name
FROM information_schema.columns
WHERE table_catalog=? AND table_schema=? AND table_name=?
ORDER BY ordinal_position

I need this to lookup the column names and their ordinal position for a
given table (implementing a driver call).

Thanks in advance,
Ken



pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: vacuum, dead rows, usual solutions didn't help
Next
From: "Joshua D. Drake"
Date:
Subject: Re: vacuum, dead rows, usual solutions didn't help