Repository navigation
Restore 4.20.1 behaviour for multi-character ESCAPE and the names of LIKE ... ESCAPE and ARRAY[...] columns - #2750
Merged
Merged
Conversation
This was referenced Nov 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Three changes merged on
developsince 4.20.1 change answers that existing code may rely on. Backward compatibility comes first in 4.x, so they are taken back here and wait for 5.0:LIKE … ESCAPEwith more than one character throws "ESCAPE expression must be a single character" (it was ignored:ESCAPE '^^'matched every row)s LIKE 'x!%' ESCAPE '!'column is named withESCAPE …, and two aggregates that differ only inESCAPEstop sharing one resultARRAY[1, 2]column is namedARRAY[1, 2](it wasARRAY[])LIKEreused the regular expression of an earlierLIKEwith the same pattern and anotherESCAPE(the cache was keyed on the pattern only). Cache LIKE patterns per escape character #2671 fixed that; the old answer depended on what ran before, so nothing can rely on it.For 5.0: the multi-character
ESCAPEerror is inbreaking.md; the expression names belong to #2675 (expression text used as identity).