From: PG Doc comments form <noreply@postgresql.org>
To: pgsql-docs@lists.postgresql.org
Cc: peter@ter.dk
Subject: pg_dump: regular expression notation for tables
Date: Tue, 06 Sep 2022 08:15:14 +0000
Message-ID: <166245211430.648.12974823935987673461@wrigleys.postgresql.org> (raw)
The following documentation comment has been logged on the website:
Page: https://www.postgresql.org/docs/14/app-pgdump.html
Description:
Hi,
The pg_dump page mentions:
https://www.postgresql.org/docs/current/app-pgdump.html#PG-DUMP-EXAMPLES
==
To dump all schemas whose names start with east or west and end in gsm,
excluding any schemas whose names contain the word test:
$ pg_dump -n 'east*gsm' -n 'west*gsm' -N '*test*' mydb > db.sql
The same, using regular expression notation to consolidate the switches:
$ pg_dump -n '(east|west)*gsm' -N '*test*' mydb > db.sql
==
However the manual doesn't mention anything about regular expressions
otherwise.
If it is possible to use regular expressions then the examples would have
issues:
east*gsm would match easgsm, eastgsm, eastttttgsm, but not east.gsm or
east_tower.gsm
(east|west)*gsm would match gsm, eastgsm, eastwesteastgsm, but not east.gsm
or east_tower.gsm
Perhaps regular expressions are not supported, but simply some sort of glob
expression?
- Peter Brodersen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-docs@postgresql.org
Cc: noreply@postgresql.org, pgsql-docs@lists.postgresql.org, peter@ter.dk
Subject: Re: pg_dump: regular expression notation for tables
In-Reply-To: <166245211430.648.12974823935987673461@wrigleys.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox