Throw an error when using -C and -1 at the same time in pg_restore.

Magnus Hagander <magnus@hagander.net>

Commit: 4d4b0f35210bc7c83b73fc4e001e8873982de722
Author: Magnus Hagander <magnus@hagander.net>
Date: 2009-01-13T11:45:03Z
Releases: 8.3.6
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.

Files

PathChange+/−
src/bin/pg_dump/pg_backup_archiver.c modified +7 −1