diff options
| author | Alvaro Herrera | 2014-01-23 17:40:29 +0000 |
|---|---|---|
| committer | Alvaro Herrera | 2014-01-23 17:40:29 +0000 |
| commit | b152c6cd0de1827ba58756e24e18110cf902182a (patch) | |
| tree | 82d0ced551764509a60014e9996f3b4d634b4071 /src/include/parser | |
| parent | 9f80f4835a55a1cbffcda5d23a617917f3286c14 (diff) | |
Make DROP IF EXISTS more consistently not fail
Some cases were still reporting errors and aborting, instead of a NOTICE
that the object was being skipped. This makes it more difficult to
cleanly handle pg_dump --clean, so change that to instead skip missing
objects properly.
Per bug #7873 reported by Dave Rolsky; apparently this affects a large
number of users.
Authors: Pavel Stehule and Dean Rasheed. Some tweaks by Álvaro Herrera
Diffstat (limited to 'src/include/parser')
| -rw-r--r-- | src/include/parser/parse_type.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/parser/parse_type.h b/src/include/parser/parse_type.h index 9208bad26d7..ab73148dcaa 100644 --- a/src/include/parser/parse_type.h +++ b/src/include/parser/parse_type.h @@ -20,7 +20,9 @@ typedef HeapTuple Type; extern Type LookupTypeName(ParseState *pstate, const TypeName *typeName, - int32 *typmod_p); + int32 *typmod_p, bool missing_ok); +extern Oid LookupTypeNameOid(ParseState *pstate, const TypeName *typeName, + bool missing_ok); extern Type typenameType(ParseState *pstate, const TypeName *typeName, int32 *typmod_p); extern Oid typenameTypeId(ParseState *pstate, const TypeName *typeName); |
