Throw an error when using -C and -1 at the same time in pg_restore.
authorMagnus Hagander <magnus@hagander.net>
Tue, 13 Jan 2009 11:44:56 +0000 (11:44 +0000)
committerMagnus Hagander <magnus@hagander.net>
Tue, 13 Jan 2009 11:44:56 +0000 (11:44 +0000)
commit168ede6b26c010ae101e7cbb4bc3c6a10d37d500
treee7b502224575b7dd98e86d2498de00496aa8db9e
parent9e3ea2203a31d71f9b23c191553ee1d968f3642f
Throw an error when using -C and -1 at the same time in pg_restore.

It's not possible to do CREATE DATABASE inside a transaction, so previously
we just got a server error instead.

Backpatch to 8.2, which is where the -1 feature appeared.
src/bin/pg_dump/pg_backup_archiver.c