pg_dump: multiple tables, schemas with exclusions and wildcards

Started by Greg Sabino Mullaneabout 20 years ago3 messagespatches
Jump to latest
#1Greg Sabino Mullane
greg@turnstep.com

Here's the latest pg_dump patch I've been (too sporadically) working on.
I abandoned building linked lists and decided to make the backend do all
the work, from building the list of good relations, to doing the POSIX
regex matching. I've added numerous examples to the docs, but it may
still need some more explaining. It should be nearly 100% backwards
compatible with any existing scripts that use a single -t as well.

--
Greg Sabino Mullane greg@turnstep.com
End Point Corporation
PGP Key: 0x14964AC8 200607162215
http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8

Attachments:

pg_dump_multi.patchtext/x-patch; charset=ISO-8859-1; name=pg_dump_multi.patchDownload+335-103
#2Bruce Momjian
bruce@momjian.us
In reply to: Greg Sabino Mullane (#1)
Re: pg_dump: multiple tables, schemas with exclusions and

Greg Sabino Mullane wrote:
-- Start of PGP signed section.

Here's the latest pg_dump patch I've been (too sporadically) working on.
I abandoned building linked lists and decided to make the backend do all
the work, from building the list of good relations, to doing the POSIX
regex matching. I've added numerous examples to the docs, but it may
still need some more explaining. It should be nearly 100% backwards
compatible with any existing scripts that use a single -t as well.

I have adjusted your code for clarity, and clarified the documentation a
little. Please test and make sure it is OK for you. Thanks.

--
Bruce Momjian bruce@momjian.us
EnterpriseDB http://www.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

Attachments:

/pgpatches/pg_dumptext/plainDownload+404-197
#3Bruce Momjian
bruce@momjian.us
In reply to: Greg Sabino Mullane (#1)
Re: pg_dump: multiple tables, schemas with exclusions and

Greg Sabino Mullane wrote:
-- Start of PGP signed section.

Here's the latest pg_dump patch I've been (too sporadically) working on.
I abandoned building linked lists and decided to make the backend do all
the work, from building the list of good relations, to doing the POSIX
regex matching. I've added numerous examples to the docs, but it may
still need some more explaining. It should be nearly 100% backwards
compatible with any existing scripts that use a single -t as well.

Very updated patch attached and applied. I did reformatting, variable
renaming, and some cleanup on the linked list handling.

Thanks. I am very glad to get this long-overdue TODO item done.

--
Bruce Momjian bruce@momjian.us
EnterpriseDB http://www.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

Attachments:

/bjm/difftext/x-diffDownload+392-200