Re: Huge tables, trying to delete OID's taking 6+hours per table

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Huge tables, trying to delete OID's taking 6+hours per table
Дата
Msg-id 27067.1589895643@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Huge tables, trying to delete OID's taking 6+hours per table  (Tory M Blue <tmblue@gmail.com>)
Ответы Re: Huge tables, trying to delete OID's taking 6+hours per table
Список pgsql-general
Tory M Blue <tmblue@gmail.com> writes:
> The command i'm using is
> ALTER TABLE tablename SET WITHOUT OIDS;
> Would a drop column oid be better?

Unfortunately, you're kind of stuck.  OIDs are not like regular columns
(at least before v12) --- they are integrated into the tuple header in
a hackish way, and so there's no way to get rid of them without a table
rewrite.

            regards, tom lane



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