]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Schema-qualify unnest() in ALTER DATABASE ... RESET
authorTomas Vondra <tomas.vondra@postgresql.org>
Thu, 31 Jul 2025 13:15:44 +0000 (15:15 +0200)
committerTomas Vondra <tomas.vondra@postgresql.org>
Thu, 31 Jul 2025 14:04:55 +0000 (16:04 +0200)
commit72c437f6e464e6fd35a84d3fde7795cb13a7b453
tree0de98df8c085fd491c1bb4fc54cd5107e2719bb6
parentc0ae03384fa3ffc79423f07ce369455ea9086da9
Schema-qualify unnest() in ALTER DATABASE ... RESET

Commit 9df8727c5067 failed to schema-quality the unnest() call in the
query used to list the variables in ALTER DATABASE ... RESET. If there's
another unnest() function in the search_path, this could cause either
failures, or even security issues (when the tab-completion gets used by
privileged accounts).

Report and fix by Dagfinn Ilmari MannsÃ¥ker. Backpatch to 18, same as
9df8727c5067.

Author: Dagfinn Ilmari MannsÃ¥ker <ilmari@ilmari.org>
Reviewed-by: jian he <jian.universality@gmail.com>
Discussion: https://postgr.es/m/87qzyghw2x.fsf%40wibble.ilmari.org
Discussion: https://postgr.es/m/87tt4lumqz.fsf%40wibble.ilmari.org
Backpatch-through: 18
src/bin/psql/tab-complete.in.c