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

From: Tory M Blue <tmblue(at)gmail(dot)com>
To: "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 07:36:44
Message-ID: CAEaSS0Yzm0F9w+tWPOX5OHWRq44-s1Tn0kKsEV0hjniYeWDC_A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, May 19, 2020 at 12:17 AM Tory M Blue <tmblue(at)gmail(dot)com> wrote:

>
> The db is only 2TB, these tables are about 50% of the DB.
>
>
> Just wondering what I can boost to give me some elevated temp performance
> for what I would think would be a fairly quick operation.
>
> Give this query more work_mem? Mine are set pretty low, based on previous
> performance notes, this is a 9.5 server.
>
> Thanks
> Tory
>

The command i'm using is

ALTER TABLE tablename SET WITHOUT OIDS;

Would a drop column oid be better?

Tory

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andrus 2020-05-19 08:26:51 Re: Hot and PITR backups in same server
Previous Message Anders Bøgh Bruun 2020-05-19 07:22:26 Logical replication troubles