[postgis-tickets] [SCM] PostGIS branch master updated. 3.4.0rc1-693-gef5a742b5

git at osgeo.org git at osgeo.org
Tue Oct 17 13:08:28 PDT 2023


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "PostGIS".

The branch, master has been updated
       via  ef5a742b5b8dae8beae5ede0adaee90919e99069 (commit)
      from  02aa9ed587319440529058426c0a8e10a7ea67bc (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit ef5a742b5b8dae8beae5ede0adaee90919e99069
Author: Sandro Santilli <strk at kbt.io>
Date:   Tue Oct 17 21:57:06 2023 +0200

    Do not print info messages on stderr unless -v is given

diff --git a/utils/postgis_restore.pl.in b/utils/postgis_restore.pl.in
index dfbbdfad5..906b0a684 100644
--- a/utils/postgis_restore.pl.in
+++ b/utils/postgis_restore.pl.in
@@ -92,7 +92,8 @@ die "$me:\tUnable to find 'pg_dump' on the path.\n" if ! `pg_dump --version`;
 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 ! -r $dumpfile;
 
-print STDERR "Converting $dumpfile to ASCII on stdout...\n";
+print STDERR "Converting $dumpfile to ASCII on stdout...\n"
+  if $DEBUG;
 
 STDOUT->autoflush(1);
 
@@ -100,7 +101,8 @@ STDOUT->autoflush(1);
 # Load the signatures of things to skip.
 #
 
-print STDERR "  Reading list of functions to ignore...\n";
+print STDERR "  Reading list of functions to ignore...\n"
+  if $DEBUG;
 
 my %skip = ();
 while(my $l = <DATA>) {
@@ -116,7 +118,8 @@ while(my $l = <DATA>) {
 #
 
 if(!defined($POSTGIS_TOC)) {
-  print STDERR "  Writing manifest of things to read from dump file...\n";
+  print STDERR "  Writing manifest of things to read from dump file...\n"
+    if $DEBUG;
 
   open( DUMP, "pg_restore -f - -l $dumpfile |" ) || die "$me:\tCannot open dump file '$dumpfile'\n";
 } else {
@@ -135,7 +138,8 @@ while( my $l = <DUMP> ) {
 		if ( $l =~ / TABLE DATA ([^ ]*) spatial_ref_sys / )
 		{
 			$POSTGIS_SCHEMA = $1;
-			print STDERR "Setting postgis schema to $POSTGIS_SCHEMA, as found in the dump";
+			print STDERR "  Setting postgis schema to $POSTGIS_SCHEMA, as found in the dump\n"
+			  if $DEBUG;
 		}
 	}
 
@@ -154,7 +158,8 @@ close(DUMP) || die "$me: pg_restore returned an error\n";
 # Convert the dump file into an ASCII file, stripping out the
 # unwanted bits.
 #
-print STDERR "  Writing ASCII to stdout...\n";
+print STDERR "  Writing ASCII to stdout...\n"
+  if $DEBUG;
 open( INPUT, "pg_restore -f - -L $manifest $dumpfile |") || die "$me:\tCan't run pg_restore\n";
 
 if ( defined $POSTGIS_SCHEMA ) {

-----------------------------------------------------------------------

Summary of changes:
 utils/postgis_restore.pl.in | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list