summaryrefslogtreecommitdiff
path: root/src/include/parser
diff options
context:
space:
mode:
authorNoah Misch2019-08-05 14:48:41 +0000
committerNoah Misch2019-08-05 14:48:41 +0000
commitffa2d37e5fbd1243f918f622113d6e371667e5a0 (patch)
tree7aabe10a381daa622faa5a3dd00a3c569ef49345 /src/include/parser
parenta76cfba663ceab79b891cc81a5f941051755b3b0 (diff)
Require the schema qualification in pg_temp.type_name(arg).
Commit aa27977fe21a7dfa4da4376ad66ae37cb8f0d0b5 introduced this restriction for pg_temp.function_name(arg); do likewise for types created in temporary schemas. Programs that this breaks should add "pg_temp." schema qualification or switch to arg::type_name syntax. Back-patch to 9.4 (all supported versions). Reviewed by Tom Lane. Reported by Tom Lane. Security: CVE-2019-10208
Diffstat (limited to 'src/include/parser')
-rw-r--r--src/include/parser/parse_type.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/parser/parse_type.h b/src/include/parser/parse_type.h
index f90ea9b7ecf..b243c64383d 100644
--- a/src/include/parser/parse_type.h
+++ b/src/include/parser/parse_type.h
@@ -21,6 +21,9 @@ typedef HeapTuple Type;
extern Type LookupTypeName(ParseState *pstate, const TypeName *typeName,
int32 *typmod_p, bool missing_ok);
+extern Type LookupTypeNameExtended(ParseState *pstate,
+ const TypeName *typeName, int32 *typmod_p,
+ bool temp_ok, bool missing_ok);
extern Oid LookupTypeNameOid(ParseState *pstate, const TypeName *typeName,
bool missing_ok);
extern Type typenameType(ParseState *pstate, const TypeName *typeName,