Re: improve performance of pg_dump with many sequences
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Nathan Bossart <nathandbossart@gmail.com>
Cc: Michael Paquier <michael@paquier.xyz>, Euler Taveira <euler@eulerto.com>,
pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2026-01-08T19:54:53Z
Lists: pgsql-hackers
Nathan Bossart <nathandbossart@gmail.com> writes: > Hm. That makes sense, but both try_table_open and try_index_open error for > wrong relkinds. I could change all of the try_*_open functions to return > NULL in that case, or I could just open-code the relkind check in > pg_get_sequence_data after try_relation_open (and have it return NULL for > non-sequences). I'm leaning towards the latter, if for no other reason > than it might be slightly nicer for back-patching (e.g., smaller, no new > extern functions). WFM. regards, tom lane
Commits
-
pg_dump: Fix gathering of sequence information.
- 7a485bd641b7 19 (unreleased) landed
- 39d55557661f 18.2 landed
-
Improve performance of dumpSequence().
- 68e962998598 18.0 landed
-
Improve performance of dumpSequenceData().
- bd15b7db489d 18.0 landed
-
Introduce pg_sequence_read_tuple().
- c8b06bb969bf 18.0 landed
-
Parse sequence type and integer metadata in dumpSequence().
- 23687e925f94 18.0 landed