I am sending minor update - cleaning formatting and white spaces, error messages + few more tests
Maybe correspondingClause needs own node type with attached location. Then context can be much better positioned.
I think we can solve it by using your option or using expr_list for corresponding column and check the syntax manually.
In my opinion, the last option eliminate the introduction of new node for only the sake of error position.
What did you think about the second option?
Regards
Surafel
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных