summaryrefslogtreecommitdiff
path: root/contrib/intarray/_int_selfuncs.c
diff options
context:
space:
mode:
authorFujii Masao2025-08-08 05:36:39 +0000
committerFujii Masao2025-08-08 05:36:39 +0000
commit85ccd7e30a6dd378e025a918916f7b1d72004001 (patch)
tree2efaacc28a82456928a958cca6720c5b76401573 /contrib/intarray/_int_selfuncs.c
parent62a1211d3389095b685a4f80f7b864794cf114f6 (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 <[email protected]> Reviewed-by: Xuneng Zhou <[email protected]> Reviewed-by: Srinath Reddy <[email protected]> Reviewed-by: Daniel Gustafsson <[email protected]> Discussion: https://postgr.es/m/CAHGQGwFzPKUwiV5C-NLBqz1oK1+z9K8cgrF+LcxFem-p3_Ftug@mail.gmail.com Backpatch-through: 17
Diffstat (limited to 'contrib/intarray/_int_selfuncs.c')
0 files changed, 0 insertions, 0 deletions