[postgis-tickets] [PostGIS] #2584: Allow arguments to pass to pg_restore via postgis_restore.pl
PostGIS
trac at osgeo.org
Thu Dec 19 12:36:52 PST 2013
#2584: Allow arguments to pass to pg_restore via postgis_restore.pl
-------------------------+--------------------------------------------------
Reporter: darkpanda | Owner: pramsey
Type: enhancement | Status: new
Priority: medium | Milestone: PostGIS 2.1.2
Component: postgis | Version: 2.1.x
Keywords: |
-------------------------+--------------------------------------------------
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.
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2584>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-tickets
mailing list