speed up full table scan using psql - Mailing list pgsql-general

From Lian Jiang
Subject speed up full table scan using psql
Date
Msg-id CA+aY8X6E6qq-i_10G_wTjkorEtm3XYW+Ag+83xk7gmJUoAoing@mail.gmail.com
Whole thread Raw
Responses Re: speed up full table scan using psql  (Rob Sargent <robjsargent@gmail.com>)
Re: speed up full table scan using psql  (David Rowley <dgrowleyml@gmail.com>)
Re: speed up full table scan using psql  (Adrian Klaver <adrian.klaver@aklaver.com>)
List pgsql-general
hi,

I am using psql to periodically dump the postgres tables into json files which are imported into snowflake. For large tables (e.g. 70M rows), it takes hours for psql to complete. Using spark to read the postgres table seems not to work as the postgres read only replication is the bottleneck so spark cluster never uses >1 worker node and the working node timeout or out of memory.

Will vertical scaling the postgres db speed up psql? Or any thread related parameter of psql can help? Thanks for any hints.

Regards
Lian

pgsql-general by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Pg 16: will pg_dump & pg_restore be faster?
Next
From: Rob Sargent
Date:
Subject: Re: speed up full table scan using psql