vacuumdb: Schema-qualify operator in catalog query's WHERE clause.
authorNathan Bossart
Mon, 7 Oct 2024 21:49:20 +0000 (16:49 -0500)
committerNathan Bossart
Mon, 7 Oct 2024 21:49:20 +0000 (16:49 -0500)
commit5bd26e6527800749641dcb6a4409c0eb0ec1ba8d
tree9f2bc54b64379b9de9f114d68a5210973bf1f626
parenta356d23fd3ad7884895a68d4f9c9fdd643d686ae
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