mirror of
https://github.com/postgres/postgres.git
synced 2025-06-25 01:02:05 +03:00
Require the schema qualification in pg_temp.type_name(arg).
Commit aa27977fe2
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
This commit is contained in:
@ -5967,6 +5967,10 @@ COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv;
|
||||
be searched <emphasis>before</> searching any of the path items.
|
||||
</para>
|
||||
|
||||
<!-- To further split hairs, funcname('foo') does not use the temporary
|
||||
schema, even when it considers typname='funcname'. This paragraph
|
||||
refers to function names in a loose sense, "pg_proc.proname or
|
||||
func_name grammar production". -->
|
||||
<para>
|
||||
Likewise, the current session's temporary-table schema,
|
||||
<literal>pg_temp_<replaceable>nnn</></>, is always searched if it
|
||||
|
Reference in New Issue
Block a user