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



---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Reply via email to