Re: Removing OIDs without recreate

Поиск
Список
Период
Сортировка
От Karel Zak
Тема Re: Removing OIDs without recreate
Дата
Msg-id 20040507101410.GD621@zf.jcu.cz
обсуждение исходный текст
Ответ на Removing OIDs without recreate  (Együd Csaba <csegyud@vnet.hu>)
Список pgsql-general
On Fri, May 07, 2004 at 10:15:46AM +0200, Együd Csaba wrote:
> Hi,
> I'm winder if I can change the clause 'WITH OIDS' to 'WITHOUT OIDS' on a
> table without recreating it (eg. usong ALTER TABLE). The problem is that my
> tables are very big, and I do not need the OIDs at all. It was a mistake to
> create them with OIDs.
> Is there any way to correct it. Does it make any sense? Can it run out of
> OIDs during time?

 ALTER TABLE ...  SET WITHOUT OIDS;

 http://www.postgresql.org/docs/7.4/static/sql-altertable.html

    Karel

--
 Karel Zak  <zakkr@zf.jcu.cz>
 http://home.zf.jcu.cz/~zakkr/

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

Предыдущее
От: "Bernard Cheung"
Дата:
Сообщение: Trigger function to know which fields are being updated
Следующее
От: Dragan Matic
Дата:
Сообщение: How can I do conditional 'drop table' in Postgres