Clarification question

Поиск
Список
Период
Сортировка
От Tim Barnard
Тема Clarification question
Дата
Msg-id 00a801c1a136$0faa27c0$a519af3f@hartcomm.com
обсуждение исходный текст
Ответы Re: Clarification question  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Is the following select sufficient and correct for extracting the column
names of a table, excluding all system columns?

select attname from pg_attribute
   where attrelid=
      (select relfilenode from pg_class
          where relname like <insert table name here>)
      and attnum > 0

I want to be certain that no system columns are returned, only columns I've
created.

Am I overlooking anything?

Thanks!

Tim Barnard
S.E. Mgr
Hartford Communications Corporation



В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: "IS NOT NULL" != "NOT NULL"
Следующее
От: Sean Chittenden
Дата:
Сообщение: Re: "IS NOT NULL" != "NOT NULL"