Re: Adding primary key on table with 3 billion records.

Laurenz Albe <[email protected]> Wed, 30 Oct 2019 18:54:19 +0100
Newsgroups gmane.comp.db.postgresql.novice
Message-ID <[email protected]>
Irene Yeh wrote:
> Ok. Did my stop and restart completely restart the auto vacuum job?

Yes.  Every interruption will further delay it.

You should reduce "autovacuum_vacuum_cost_delay" to at most 2ms and
raise "maintenance_work_mem", both will speed up autovacuum.

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com