[Pkg-postgresql-public] Bug#886454: pg_dump: invalid option -- 'i'

Christoph Berg myon at debian.org
Sat Jan 6 07:56:59 UTC 2018

Package: phppgadmin
Version: 5.1-1.1

Date: Sat, 6 Jan 2018 06:20:56 +0100
From: roger21 <roger21 at free.fr>
To: pkg-postgresql-public at lists.alioth.debian.org
Subject: [Pkg-postgresql-public] bug in the export feature of phpPgAdmin


i can't do a descent bug report but still i'm trying to report that :

the export feature of phpPgAdmin fails since it uses an obsolete parameter
(-i) for pg_dump as reported by the apache/php error log :

error.log:/usr/lib/postgresql/9.6/bin/pg_dump: invalid option -- 'i'
error.log:Try "pg_dump --help" for more information.

the bug is in the file /usr/share/phppgadmin/dbexport.php :

at line 76 :

$cmd = $exe . " -i";"

must be replaced by :

"$cmd = $exe;"

the -i parameters does not need to be replaced by anything.

the bug is well known, there are even youtube video about the fix ...

the phpPgAdmin development seems discontinued but i hope this could be patched
since it is so minor.


More information about the Pkg-postgresql-public mailing list