Remove "-i" flag from pg_dump
authorMassimiliano Arione <garakkio@gmail.com>
Mon, 11 Apr 2016 13:52:46 +0000 (15:52 +0200)
committerRobert Treat <robert@omniti.com>
Mon, 30 Oct 2017 22:31:50 +0000 (18:31 -0400)
With Postgres 9.5 (that is default on new Ubuntu LTS, so likely to spread soon) the `-i` option is causing an error, since it has been removed.
Anyway, such option has been deprecated since Postgres 8.4 (so about 6 years ago)

dbexport.php

index de241fba640d0f137b096824e5392af887b4424e..d7320817988df3ee1e2d01be9b8d542179acbd1b 100644 (file)
@@ -72,8 +72,8 @@
                        putenv('PGPORT=' . $port);
                }
 
-               // Build command for executing pg_dump.  '-i' means ignore version differences.
-               $cmd = $exe . " -i";
+               // Build command for executing pg_dump.
+               $cmd = $exe;
                
                // we are PG 7.4+, so we always have a schema
                if (isset($_REQUEST['schema'])) {