]> granicus.if.org Git - postgresql/commit
Fix pg_dump/pg_restore's ExecuteSqlCommand() to behave suitably if PQexec
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 16 Aug 2008 02:25:38 +0000 (02:25 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 16 Aug 2008 02:25:38 +0000 (02:25 +0000)
commit7eb9f613c3fdc33b2ea19177e7e0b210f38f194c
treef955d0aa43756fbea5bd548aa0656d4433919f8f
parent45b8e6ed687c7a7c595d116ecb6fe898041fd7c5
Fix pg_dump/pg_restore's ExecuteSqlCommand() to behave suitably if PQexec
returns NULL instead of a PGresult.  The former coding would fail, which
is OK, but it neglected to give you the PQerrorMessage that might tell
you why.  In the oldest branches, there was another problem: it'd sometimes
report PQerrorMessage from the wrong connection.
src/bin/pg_dump/pg_backup_db.c