Re: Huge tables, trying to delete OID's taking 6+hours per table - Mailing list pgsql-general

From Tom Lane
Subject Re: Huge tables, trying to delete OID's taking 6+hours per table
Date
Msg-id 27067.1589895643@sss.pgh.pa.us
Whole thread Raw
In response to Re: Huge tables, trying to delete OID's taking 6+hours per table  (Tory M Blue <tmblue@gmail.com>)
Responses Re: Huge tables, trying to delete OID's taking 6+hours per table  (Tory M Blue <tmblue@gmail.com>)
List 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 by date:

Previous
From: Ishan Joshi
Date:
Subject: idle_in_transaction_session_timeout not getting log in PG v12.2
Next
From: Adrian Klaver
Date:
Subject: Re: idle_in_transaction_session_timeout not getting log in PG v12.2