[postgis-tickets] [PostGIS] #4605: perl /usr/pgsql-12/share/contrib/postgis-3.0/postgis_restore.pl fails with error pg_restore: error: one of -d/--dbname and -f/--file must be specified

PostGIS trac at osgeo.org
Mon Dec 30 00:45:30 PST 2019


#4605: perl /usr/pgsql-12/share/contrib/postgis-3.0/postgis_restore.pl fails with
error pg_restore: error: one of -d/--dbname and -f/--file must be specified
----------------------+---------------------------
  Reporter:  matti    |      Owner:  strk
      Type:  defect   |     Status:  closed
  Priority:  medium   |  Milestone:  PostGIS 3.0.1
 Component:  postgis  |    Version:  3.0.x
Resolution:  fixed    |   Keywords:
----------------------+---------------------------

Comment (by davis):

 Row 148 should be

 {{{
 open( INPUT, "pg_restore -f - -L $manifest $dumpfile |") || die
 "$me:\tCan't run pg_restore\n";
 }}}

 not

 {{{
 open( INPUT, "pg_restore -L $manifest $dumpfile -f - |") || die
 "$me:\tCan't run pg_restore\n";
 }}}

-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4605#comment:7>
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