vacuumdb: Schema-qualify operator in catalog query's WHERE clause.

Nathan Bossart <nathan@postgresql.org>

Commit: eba8cc1af8ec57aff99f11ef9cdf24a641c159b0
Author: Nathan Bossart <nathan@postgresql.org>
Date: 2024-10-07T21:49:20Z
Releases: 16.5
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

Files

PathChange+/−
src/bin/scripts/vacuumdb.c modified +2 −1

Discussion