]> granicus.if.org Git - postgresql/commit
Require the schema qualification in pg_temp.type_name(arg).
authorNoah Misch <noah@leadboat.com>
Mon, 5 Aug 2019 14:48:41 +0000 (07:48 -0700)
committerNoah Misch <noah@leadboat.com>
Mon, 5 Aug 2019 14:48:45 +0000 (07:48 -0700)
commit9993fa9dd25d01e99748869b1fb1d6f4dc03960e
tree18c4c213582e77e088bd65904ba4f65519ba6827
parent106c6635b5d9ca37b856bbd27560050c438a8ec9
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
doc/src/sgml/config.sgml
src/backend/catalog/namespace.c
src/backend/parser/parse_func.c
src/backend/parser/parse_type.c
src/backend/utils/adt/ruleutils.c
src/include/catalog/namespace.h
src/include/parser/parse_type.h
src/test/regress/expected/temp.out
src/test/regress/sql/temp.sql