pgsql: Fix misbehavior in contrib/pg_trgm with an unsatisfiable regex.

2023-03-11 Thread Tom Lane
Fix misbehavior in contrib/pg_trgm with an unsatisfiable regex. If the regex compiler can see that a regex is unsatisfiable (for example, '$foo') then it may emit an NFA having no arcs. pg_trgm's packGraph function did the wrong thing in this case; it would access off the end of a work array, and

pgsql: Fix misbehavior in contrib/pg_trgm with an unsatisfiable regex.

2023-03-11 Thread Tom Lane
Fix misbehavior in contrib/pg_trgm with an unsatisfiable regex. If the regex compiler can see that a regex is unsatisfiable (for example, '$foo') then it may emit an NFA having no arcs. pg_trgm's packGraph function did the wrong thing in this case; it would access off the end of a work array, and

pgsql: Fix misbehavior in contrib/pg_trgm with an unsatisfiable regex.

2023-03-11 Thread Tom Lane
Fix misbehavior in contrib/pg_trgm with an unsatisfiable regex. If the regex compiler can see that a regex is unsatisfiable (for example, '$foo') then it may emit an NFA having no arcs. pg_trgm's packGraph function did the wrong thing in this case; it would access off the end of a work array, and

pgsql: Fix misbehavior in contrib/pg_trgm with an unsatisfiable regex.

2023-03-11 Thread Tom Lane
Fix misbehavior in contrib/pg_trgm with an unsatisfiable regex. If the regex compiler can see that a regex is unsatisfiable (for example, '$foo') then it may emit an NFA having no arcs. pg_trgm's packGraph function did the wrong thing in this case; it would access off the end of a work array, and

pgsql: Fix misbehavior in contrib/pg_trgm with an unsatisfiable regex.

2023-03-11 Thread Tom Lane
Fix misbehavior in contrib/pg_trgm with an unsatisfiable regex. If the regex compiler can see that a regex is unsatisfiable (for example, '$foo') then it may emit an NFA having no arcs. pg_trgm's packGraph function did the wrong thing in this case; it would access off the end of a work array, and

pgsql: Fix misbehavior in contrib/pg_trgm with an unsatisfiable regex.

2023-03-11 Thread Tom Lane
Fix misbehavior in contrib/pg_trgm with an unsatisfiable regex. If the regex compiler can see that a regex is unsatisfiable (for example, '$foo') then it may emit an NFA having no arcs. pg_trgm's packGraph function did the wrong thing in this case; it would access off the end of a work array, and