Opened 11 years ago
Last modified 14 months ago
#2584 new enhancement
Allow arguments to pass to pg_restore via postgis_restore.pl
Reported by: | darkpanda | Owned by: | strk |
---|---|---|---|
Priority: | medium | Milestone: | PostGIS Fund Me |
Component: | upgrade/hard | Version: | 2.1.x |
Keywords: | Cc: |
Description
The attached patch allows you to pass arguments through to pg_restore. Here's an example usage:
postgis_restore.pl -d db.pgdump -- --verbose --schema-only | psql db
You must specify the database dump file using the -d switch, as I didn't want to make the argument parsing any more complicated than necessary. This patch looks for the bare --
and anything after that is passed along to pg_restore. I've found that being able to pass arguments to pg_restore can be pretty useful at times.
Attachments (1)
Change History (7)
by , 11 years ago
Attachment: | 0001-Allow-arguments-to-be-passed-to-pg_restore-when-usin.patch added |
---|
comment:1 by , 11 years ago
Component: | postgis → build/upgrade/install |
---|---|
Milestone: | PostGIS 2.1.2 → PostGIS 2.2.0 |
Owner: | changed from | to
comment:2 by , 11 years ago
Milestone: | PostGIS 2.2.0 → PostGIS 2.1.2 |
---|
comment:3 by , 11 years ago
Milestone: | PostGIS 2.1.2 → PostGIS 2.2.0 |
---|
push. strk move back if you want to do this in 2.1.2
comment:4 by , 10 years ago
Milestone: | PostGIS 2.2.0 → PostGIS Future |
---|
comment:6 by , 14 months ago
Component: | build/install → upgrade/hard |
---|
Note:
See TracTickets
for help on using tickets.
strk I'll let you decide if this is a patch you want to apply to 2.1.2. If not move to 2.2.0