pgsql: Fix Assert failure in XMLTABLE parser

2025-05-15 Thread Richard Guo
Fix Assert failure in XMLTABLE parser In an XMLTABLE expression, columns can be marked NOT NULL, and the parser internally fabricates an option named "is_not_null" to represent this. However, the parser also allows users to specify arbitrary option names. This creates a conflict: a user can expl

pgsql: Fix Assert failure in XMLTABLE parser

2025-05-15 Thread Richard Guo
Fix Assert failure in XMLTABLE parser In an XMLTABLE expression, columns can be marked NOT NULL, and the parser internally fabricates an option named "is_not_null" to represent this. However, the parser also allows users to specify arbitrary option names. This creates a conflict: a user can expl

pgsql: Fix Assert failure in XMLTABLE parser

2025-05-15 Thread Richard Guo
Fix Assert failure in XMLTABLE parser In an XMLTABLE expression, columns can be marked NOT NULL, and the parser internally fabricates an option named "is_not_null" to represent this. However, the parser also allows users to specify arbitrary option names. This creates a conflict: a user can expl

pgsql: Fix Assert failure in XMLTABLE parser

2025-05-15 Thread Richard Guo
Fix Assert failure in XMLTABLE parser In an XMLTABLE expression, columns can be marked NOT NULL, and the parser internally fabricates an option named "is_not_null" to represent this. However, the parser also allows users to specify arbitrary option names. This creates a conflict: a user can expl

Re: pgsql: With GB18030, prevent SIGSEGV from reading past end of allocatio

2025-05-15 Thread Noah Misch
On Wed, May 14, 2025 at 04:38:06PM +0800, sean wrote: >I read the patch you commit to pgsql, and i found there also some other > routine which >will still call pg_encoding_mblen to get char length. >I have no idea why these routine don't have to replaced by call > pg_encoding_mblen_or