Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

pg_repack use SeqScan for read table. Can we use Parallel Seq Scan like the Command Copy does? #365

Open
VladMak opened this issue Oct 11, 2023 · 2 comments

Comments

@VladMak
Copy link

VladMak commented Oct 11, 2023

We have a table and we run pg_repack on it. We noticed that the access to the table occurs through SeqScan. And the COPY command uses Parallel SeqScan. The table goes through pg_repack in 45 minutes, and if you copy it using COPY, then in 15. Is there an opportunity to add Parallel SeqScan to pg_repack? And if not, why?

@Melkij
Copy link
Collaborator

Melkij commented Oct 11, 2023

I'm not keen on reinventing insert .. select in pg_repack. In the postgresql core, the implementation of parallel INSERT SELECT has a long history, once it was even committed, but then reverted.

#251 will helps is some cases (probably in most cases). I forgot about this patch, to be honest.

@bz007
Copy link

bz007 commented Apr 11, 2024

@Melkij would you update patch in MR #251? Right now it is marked "having conflicts".

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

4 participants