diff options
author | Fujii Masao <fujii@postgresql.org> | 2025-08-08 14:36:39 +0900 |
---|---|---|
committer | Fujii Masao <fujii@postgresql.org> | 2025-08-08 14:37:41 +0900 |
commit | 7dafc4a413f42a6c0e13c91e50e05329f91e954f (patch) | |
tree | d0ad56d37ee955d5edaa578c0d991d206a26f1d0 /src/bin/psql/help.c | |
parent | 9048a83c7a2d099304dca3d2e1f41f1b26926f72 (diff) |
pg_dump: Fix incorrect parsing of object types in pg_dump --filter.
Previously, pg_dump --filter could misinterpret invalid object types
in the filter file as valid ones. For example, the invalid object type
"table-data" (likely a typo for the valid "table_data") could be
mistakenly recognized as "table", causing pg_dump to succeed
when it should have failed.
This happened because pg_dump identified keywords as sequences of
ASCII alphabetic characters, treating non-alphabetic characters
(like hyphens) as keyword boundaries. As a result, "table-data" was
parsed as "table".
To fix this, pg_dump --filter now treats keywords as strings of
non-whitespace characters, ensuring invalid types like "table-data"
are correctly rejected.
Back-patch to v17, where the --filter option was introduced.
Author: Fujii Masao <masao.fujii@gmail.com>
Reviewed-by: Xuneng Zhou <xunengzhou@gmail.com>
Reviewed-by: Srinath Reddy <srinath2133@gmail.com>
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Discussion: https://postgr.es/m/CAHGQGwFzPKUwiV5C-NLBqz1oK1+z9K8cgrF+LcxFem-p3_Ftug@mail.gmail.com
Backpatch-through: 17
Diffstat (limited to 'src/bin/psql/help.c')
0 files changed, 0 insertions, 0 deletions