pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nathan Bossart <nathan@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: vacuumdb: Schema-qualify operator in catalog query's WHERE claus
Date: Mon, 07 Oct 2024 21:50:11 +0000
Message-ID: <E1sxvcJ-002bVI-PS@gemulon.postgresql.org> (raw)

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

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/5e0431c32a8f723fcf5b0eea77a4b6144b6abdff

Modified Files
--------------
src/bin/scripts/vacuumdb.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)



view thread (7+ messages)  latest in thread

Message-ID: <E1sxvcJ-002bVI-PS@gemulon.postgresql.org>
Permalink:  ../E1sxvcJ-002bVI-PS@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1sxvcJ-002bVI-PS@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: nathan@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: vacuumdb: Schema-qualify operator in catalog query's WHERE claus
  In-Reply-To: <E1sxvcJ-002bVI-PS@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox