Re: Dropping OID column

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Dropping OID column
Дата
Msg-id 26426.1042744046@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Dropping OID column  (Rod Taylor <rbt@rbt.ca>)
Ответы Re: Dropping OID column  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
Rod Taylor <rbt@rbt.ca> writes:
> What is the preferred syntax:
> ALTER TABLE .. DROP COLUMN oid;
> or
> ALTER TABLE .. SET WITHOUT OIDS;

If we ever got around to supporting the inverse function (add oids),
I do not think we'd want to spell it like "ADD COLUMN oid" --- that
would interfere with making a plain user column named "oid", which was
one of the reasons why people wanted to be able to drop OIDs in the
first place.

So I lean towards the SET WITH/WITHOUT OIDS syntax.  That keeps it
clearly out of the domain of user columns.
        regards, tom lane


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

Предыдущее
От: Petru Paler
Дата:
Сообщение: Re: Oracle rant
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Indexes