Opened 11 years ago

Last modified 13 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)

0001-Allow-arguments-to-be-passed-to-pg_restore-when-usin.patch (2.6 KB ) - added by darkpanda 11 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 by robe, 11 years ago

Component: postgisbuild/upgrade/install
Milestone: PostGIS 2.1.2PostGIS 2.2.0
Owner: changed from pramsey to strk

comment:2 by robe, 11 years ago

Milestone: PostGIS 2.2.0PostGIS 2.1.2

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

comment:3 by robe, 11 years ago

Milestone: PostGIS 2.1.2PostGIS 2.2.0

push. strk move back if you want to do this in 2.1.2

comment:4 by strk, 10 years ago

Milestone: PostGIS 2.2.0PostGIS Future

comment:5 by robe, 7 years ago

Milestone: PostGIS FuturePostGIS Fund Me

Milestone renamed

comment:6 by strk, 13 months ago

Component: build/installupgrade/hard
Note: See TracTickets for help on using tickets.