pgsql: vacuumdb: Fix excluding multiple schemas with -N - Mailing list pgsql-committers

From Daniel Gustafsson
Subject pgsql: vacuumdb: Fix excluding multiple schemas with -N
Date
Msg-id E1qkmDI-005sEd-MW@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
vacuumdb: Fix excluding multiple schemas with -N

When specifying multiple schemas to exclude with -N parameters, none
of the schemas are actually excluded (a single -N worked as expected).
This fixes the catalog query to handle multiple exclusions and adds a
test for this case.

Backpatch to v16 where this was introduced.

Author: Nathan Bossart <nathandbossart@gmail.com>
Author: Kuwamura Masaki <kuwamura@db.is.i.nagoya-u.ac.jp>
Reported-by: Kuwamura Masaki <kuwamura@db.is.i.nagoya-u.ac.jp>
Discussion: https://postgr.es/m/CAMyC8qp9mXPQd5D6s6CJxvmignsbTqGZwDDB6VYJOn1A8WG38w@mail.gmail.com
Backpatch-through: 16

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/fb56a181175bba03a6d4f82cd3c07ec5511ce545

Modified Files
--------------
src/bin/scripts/t/100_vacuumdb.pl | 15 ++++++++++++++-
src/bin/scripts/vacuumdb.c        | 26 ++++++++++++++++----------
2 files changed, 30 insertions(+), 11 deletions(-)


pgsql-committers by date:

Previous
From: Alvaro Herrera
Date:
Subject: pgsql: pg_upgrade: check for types removed in pg12
Next
From: Daniel Gustafsson
Date:
Subject: pgsql: vacuumdb: Reword --help message for clarity