[postgis-tickets] [PostGIS] #3788: allow postgis_restore.pl to work on directory-style backups (-Fd)

PostGIS trac at osgeo.org
Sun Jul 16 19:01:49 PDT 2017


#3788: allow postgis_restore.pl to work on directory-style backups (-Fd)
-------------------------+---------------------
 Reporter:  wrog         |      Owner:  pramsey
     Type:  enhancement  |     Status:  new
 Priority:  medium       |  Milestone:
Component:  postgis      |    Version:  2.3.x
 Keywords:               |
-------------------------+---------------------
 This allows doing hard-restore/upgrade from a directory-style (-Fd)
 backups as well as the usual postgres-custom backup (-Fc).
 (You have -f which unnecessarily restricts backup to being an ordinary
 file but pg_restore deals just fine with directories.  Also, you really do
 want to test -r)

 This is literally a one-character change (though you could also fix
 $manifest 4 lines earlier to remove trailing slashes from $dumpfile).


 {{{
 --- /usr/share/postgresql/9.6/contrib/postgis-2.3/postgis_restore.pl
 +++ -
 @@ -90,3 +90,3 @@
  die "$me:\tUnable to find 'pg_restore' on the path.\n" if ! `pg_restore
 --version`;
 -die "$me:\tUnable to open dump file '$dumpfile'.\n" if ! -f $dumpfile;
 +die "$me:\tUnable to open dump file '$dumpfile'.\n" if ! -r $dumpfile;

 }}}

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