pgsql: Avoid assertion due to disconnected NFA sub-graphs in regex pars

2024-11-15 Thread Tom Lane
Avoid assertion due to disconnected NFA sub-graphs in regex parsing. In commit 08c0d6ad6 which introduced "rainbow" arcs in regex NFAs, I didn't think terribly hard about what to do when creating the color complement of a rainbow arc. Clearly, the complement cannot match any characters, and I too

pgsql: Avoid assertion due to disconnected NFA sub-graphs in regex pars

2024-11-15 Thread Tom Lane
Avoid assertion due to disconnected NFA sub-graphs in regex parsing. In commit 08c0d6ad6 which introduced "rainbow" arcs in regex NFAs, I didn't think terribly hard about what to do when creating the color complement of a rainbow arc. Clearly, the complement cannot match any characters, and I too

pgsql: Avoid assertion due to disconnected NFA sub-graphs in regex pars

2024-11-15 Thread Tom Lane
Avoid assertion due to disconnected NFA sub-graphs in regex parsing. In commit 08c0d6ad6 which introduced "rainbow" arcs in regex NFAs, I didn't think terribly hard about what to do when creating the color complement of a rainbow arc. Clearly, the complement cannot match any characters, and I too

pgsql: Avoid assertion due to disconnected NFA sub-graphs in regex pars

2024-11-15 Thread Tom Lane
Avoid assertion due to disconnected NFA sub-graphs in regex parsing. In commit 08c0d6ad6 which introduced "rainbow" arcs in regex NFAs, I didn't think terribly hard about what to do when creating the color complement of a rainbow arc. Clearly, the complement cannot match any characters, and I too

pgsql: Avoid assertion due to disconnected NFA sub-graphs in regex pars

2024-11-15 Thread Tom Lane
Avoid assertion due to disconnected NFA sub-graphs in regex parsing. In commit 08c0d6ad6 which introduced "rainbow" arcs in regex NFAs, I didn't think terribly hard about what to do when creating the color complement of a rainbow arc. Clearly, the complement cannot match any characters, and I too