vacuumdb: Schema-qualify operator in catalog query's WHERE clause.
authorNathan Bossart <[email protected]>
Mon, 7 Oct 2024 21:49:20 +0000 (16:49 -0500)
committerNathan Bossart <[email protected]>
Mon, 7 Oct 2024 21:49:20 +0000 (16:49 -0500)
commit6d047c6a9192df34670a503c4d289a93e4909033
tree235d9e378519b5cfe169452499db6c02cc53a8b1
parent01731eeeaa9665b47a45b7d2c967ef4c06a56d1b
vacuumdb: Schema-qualify operator in catalog query's WHERE clause.

Commit 1ab67c9dfa, which modified this catalog query so that it
doesn't return temporary relations, forgot to schema-qualify the
operator.  A comment earlier in the function implores us to fully
qualify everything in the query:

 * Since we execute the constructed query with the default search_path
 * (which could be unsafe), everything in this query MUST be fully
 * qualified.

This commit fixes that.  While at it, add a newline for consistency
with surrounding code.

Reviewed-by: Noah Misch
Discussion: https://postgr.es/m/ZwQJYcuPPUsF0reU%40nathan
Backpatch-through: 12
src/bin/scripts/vacuumdb.c