]> git.ipfire.org Git - thirdparty/postgresql.git/commit
vacuumdb: Fix excluding multiple schemas with -N
authorDaniel Gustafsson <dgustafsson@postgresql.org>
Mon, 25 Sep 2023 14:03:17 +0000 (16:03 +0200)
committerDaniel Gustafsson <dgustafsson@postgresql.org>
Mon, 25 Sep 2023 14:03:17 +0000 (16:03 +0200)
commit2143d96dc7b72b62166d711283d5925b7180bf85
tree9850aebbd5ce6913719107b1369b591229b0e260
parentfb9ddd0fafeaacb8d382c66ae545cba1a4ed7886
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
src/bin/scripts/t/100_vacuumdb.pl
src/bin/scripts/vacuumdb.c