]> 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:46 +0000 (07:48 -0700)
commit86737438b2449832371ca8295f8af48630d8481e
tree35fc9269ab85e47bef12e53df5b8abeaee072909
parentbdba067e19a8ee5d9f68b5621b2a8447ed875ad0
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