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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Tory M Blue <tmblue(at)gmail(dot)com>
Cc: "pgsql-generallists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Huge tables, trying to delete OID's taking 6+hours per table
Date: 2020-05-19 13:40:43
Message-ID: 27067.1589895643@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tory M Blue <tmblue(at)gmail(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2020-05-19 13:58:04 Re: idle_in_transaction_session_timeout not getting log in PG v12.2
Previous Message Ishan Joshi 2020-05-19 09:08:32 idle_in_transaction_session_timeout not getting log in PG v12.2