]> 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)
commit21f94c51f680cefa2ea6b0d94aa8a967a375afc6
treeff1baabd21288b58c9fce838532df93be15cca47
parentb0fb44eacd8f96f48d3589f1a066fdd75947b4bd
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