diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2019-04-01 10:46:37 +0200 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2019-04-01 10:46:37 +0200 |
commit | 7241911782a7420e38b6e50b57d304ea48bc5362 (patch) | |
tree | 687e642d5b3256ab24d35cb4d16f86002c6f1df9 /src/backend/access/gist/gistxlog.c | |
parent | 4ae7f02b0364ccba49a82efbfff46125fb357d6c (diff) | |
download | postgresql-7241911782a7420e38b6e50b57d304ea48bc5362.tar.gz |
Catch syntax error in generated column definition
The syntax
GENERATED BY DEFAULT AS (expr)
is not allowed but we have to accept it in the grammar to avoid
shift/reduce conflicts because of the similar syntax for identity
columns. The existing code just ignored this, incorrectly. Add an
explicit error check and a bespoke error message.
Reported-by: Justin Pryzby <pryzby@telsasoft.com>
Diffstat (limited to 'src/backend/access/gist/gistxlog.c')
0 files changed, 0 insertions, 0 deletions