Re: proposal: possibility to read dumped table's name from file
Daniel Gustafsson <daniel@yesql.se>
From: Daniel Gustafsson <daniel@yesql.se>
To: Erik Rijkers <er@xs4all.nl>
Cc: Pavel Stehule <pavel.stehule@gmail.com>,
Justin Pryzby <pryzby@telsasoft.com>,
Andrew Dunstan <andrew@dunslane.net>,
Tom Lane <tgl@sss.pgh.pa.us>,
Alvaro Herrera <alvherre@2ndquadrant.com>,
Tomas Vondra <tomas.vondra@enterprisedb.com>,
Dean Rasheed <dean.a.rasheed@gmail.com>,
Stephen Frost <sfrost@snowman.net>,
Surafel Temesgen <surafel3000@gmail.com>,
vignesh C <vignesh21@gmail.com>,
PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2022-09-08T11:38:42Z
Lists: pgsql-hackers
Attachments
- v2-0001-Add-include-exclude-filtering-via-file-in-pg_dump.patch (application/octet-stream) patch v2-0001
> On 8 Sep 2022, at 12:00, Erik Rijkers <er@xs4all.nl> wrote: > > Op 07-09-2022 om 21:45 schreef Daniel Gustafsson: >> One thing this patchversion currently lacks is refined error messaging, but if >> we feel that this approach is a viable path then that can be tweaked. The >> function which starts the parser can also be refactored to be shared across >> pg_dump, pg_dumpall and pg_restore but I've kept it simple for now. >> Thoughts? It would be nice to get this patch across the finishline during this >> commitfest. > > > [0001-Add-include-exclude-filtering-via-file-in-pg_dump.patch] > > This seems to dump & restore well (as Pavels patch does). Thanks for looking! > I did notice one peculiarity (in your patch) where for each table a few spaces are omitted by pg_dump. Right, I had that on my TODO to fix before submitting but clearly forgot. It boils down to consuming the space between commands and object types and object patterns. The attached v2 fixes that. -- Daniel Gustafsson https://vmware.com/
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Fix array subscript warnings
- 17935e1fdf0a 17.0 landed
-
Read include/exclude commands for dump/restore from file
- a5cf808be55b 17.0 landed
-
Allow records to span multiple lines in pg_hba.conf and pg_ident.conf.
- 8f8154a503c7 14.0 cited