Why would not use information schema to checking of existence of some column in a table:
select column_name from information_schema.columns where table_name='tbl' -- Sent via pgsql-sql mailing list ([email protected]) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-sql
