Re: speed up full table scan using psql

Поиск
Список
Период
Сортировка
От Rob Sargent
Тема Re: speed up full table scan using psql
Дата
Msg-id 67ffdd7a-8870-c560-d5e4-c53f237f6ae3@gmail.com
обсуждение исходный текст
Ответ на speed up full table scan using psql  (Lian Jiang <jiangok2006@gmail.com>)
Список pgsql-general
On 5/30/23 22:25, Lian Jiang wrote:
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
Have you looked into COPY command?  Or CopyManager java class?

В списке pgsql-general по дате отправления:

Предыдущее
От: Lian Jiang
Дата:
Сообщение: speed up full table scan using psql
Следующее
От: David Rowley
Дата:
Сообщение: Re: speed up full table scan using psql