forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit74739d1
committed
Avoid harmless warning from pg_dump --if-exists mode.
If the public schema has a non-default owner (perhaps due todropping and recreating it) then use of pg_dump's "--if-exists"option results in a warning message:warning: could not find where to insert IF EXISTS in statement "-- *not* dropping schema, since initdb creates it"This is harmless since the dump output is the same either way,but nonetheless it's undesirable. It's the fault of commita7a7be1, which created situations where a TOC entry's "defn"or "dropStmt" fields could be just comments. Although thatcommit fixed up the kluges in pg_backup_archiver.c that munge defnstrings, it missed doing so for the one that munges dropStmts.Per bug# 17753 from Justin Zhang.Discussion:https://postgr.es/m/17753-9c8773631747ee1c@postgresql.org1 parent9f1ca6c commit74739d1
1 file changed
+7
-2
lines changedLines changed: 7 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
538 | 538 |
| |
539 | 539 |
| |
540 | 540 |
| |
541 |
| - | |
| 541 | + | |
| 542 | + | |
542 | 543 |
| |
543 |
| - | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
544 | 549 |
| |
545 | 550 |
| |
546 | 551 |
| |
|
0 commit comments
Comments
(0)