creating a view that shows relation name -> OID

Поиск
Список
Период
Сортировка
От Kevin T. Manley
Тема creating a view that shows relation name -> OID
Дата
Msg-id 98lm1f$5cc$1@news.tht.net
обсуждение исходный текст
Ответы Re: creating a view that shows relation name -> OID  (Bill Huff <bhuff@colltech.com>)
Re: creating a view that shows relation name -> OID  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
This works:

select pg_class.oid, relname from pg_class where relowner=27;

but this:

CREATE VIEW VW_FOO AS select pg_class.oid, relname from pg_class where
relowner=27;

fails with:

Attribute 'oid' has a name conflict
Name matches an existing system attribute

How come?

TIA
Kevin






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

Предыдущее
От: "Christian Marschalek"
Дата:
Сообщение: A thx to the List :o)
Следующее
От: Bill Huff
Дата:
Сообщение: Re: creating a view that shows relation name -> OID