pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: vacuumdb: Fix excluding multiple schemas with -N
2+ messages / 1 participants
[nested] [flat]

* pgsql: vacuumdb: Fix excluding multiple schemas with -N
@ 2023-09-25 14:05 Daniel Gustafsson <dgustafsson@postgresql.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Daniel Gustafsson @ 2023-09-25 14:05 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: vacuumdb: Fix excluding multiple schemas with -N
@ 2023-09-25 14:06 Daniel Gustafsson <dgustafsson@postgresql.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Daniel Gustafsson @ 2023-09-25 14:06 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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
------
REL_16_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/2143d96dc7b72b62166d711283d5925b7180bf85

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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2023-09-25 14:06 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2023-09-25 14:05 pgsql: vacuumdb: Fix excluding multiple schemas with -N Daniel Gustafsson <dgustafsson@postgresql.org>
2023-09-25 14:06 pgsql: vacuumdb: Fix excluding multiple schemas with -N Daniel Gustafsson <dgustafsson@postgresql.org>

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