diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2014-03-03 15:02:18 -0300 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2014-03-03 15:02:18 -0300 |
commit | 9067310cc5dd590e36c2c3219dbf3961d7c9f8cb (patch) | |
tree | e459d434c156d80a8b51fba86308d637fce6bfac /src/backend/commands/dbcommands.c | |
parent | 34c6d9611d23178539ed09b8f2ce40c5788a21cb (diff) | |
download | postgresql-9067310cc5dd590e36c2c3219dbf3961d7c9f8cb.tar.gz postgresql-9067310cc5dd590e36c2c3219dbf3961d7c9f8cb.zip |
pg_dump et al: Add --if-exists option
This option makes pg_dump, pg_dumpall and pg_restore inject an IF EXISTS
clause to each DROP command they emit. (In pg_dumpall, the clause is
not added to individual objects drops, but rather to the CREATE DATABASE
commands, as well as CREATE ROLE and CREATE TABLESPACE.)
This allows for a better user dump experience when using --clean in case
some objects do not already exist. Per bug #7873 by Dave Rolsky.
Author: Pavel Stěhule
Reviewed-by: Jeevan Chalke, Álvaro Herrera, Josh Kupershmidt
Diffstat (limited to 'src/backend/commands/dbcommands.c')
0 files changed, 0 insertions, 0 deletions