]> 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)
commit7da46192dd7e95326d1b83a2ddcda420c1cefcae
treeb2cde0f9a603a10d8518aa75865115846e358865
parent76c096bc06af053bc17be2c3ac99577cef52546a
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