Opened 6 years ago

Last modified 3 years ago

#2584 new enhancement

Allow arguments to pass to pg_restore via

Reported by: darkpanda Owned by: strk
Priority: medium Milestone: PostGIS Fund Me
Component: build/upgrade/install Version: 2.1.x
Keywords: Cc:


The attached patch allows you to pass arguments through to pg_restore. Here's an example usage: -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 6 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 6 years ago by robe

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

comment:2 Changed 6 years ago by robe

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 Changed 6 years ago by robe

Milestone: PostGIS 2.1.2PostGIS 2.2.0

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

comment:4 Changed 5 years ago by strk

Milestone: PostGIS 2.2.0PostGIS Future

comment:5 Changed 3 years ago by robe

Milestone: PostGIS FuturePostGIS Fund Me

Milestone renamed

Note: See TracTickets for help on using tickets.