diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2021-05-21 15:12:08 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2021-05-21 15:12:37 -0400 |
commit | 61feb8670824c8dfb66094f2a87df2395be0665c (patch) | |
tree | 51a50db998d50b3967b69a7388e478216f30a4a5 /src/bin/psql/stringutils.c | |
parent | dfe51ffbe78a16368073c2838c04e603d3d76915 (diff) | |
download | postgresql-61feb8670824c8dfb66094f2a87df2395be0665c.tar.gz postgresql-61feb8670824c8dfb66094f2a87df2395be0665c.zip |
Disallow whole-row variables in GENERATED expressions.
This was previously allowed, but I think that was just an oversight.
It's a clear violation of the rule that a generated column cannot
depend on itself or other generated columns. Moreover, because the
code was relying on the assumption that no such cross-references
exist, it was pretty easy to crash ALTER TABLE and perhaps other
places. Even if you managed not to crash, you got quite unstable,
implementation-dependent results.
Per report from Vitaly Ustinov.
Back-patch to v12 where GENERATED came in.
Discussion: https://postgr.es/m/CAM_DEiWR2DPT6U4xb-Ehigozzd3n3G37ZB1+867zbsEVtYoJww@mail.gmail.com
Diffstat (limited to 'src/bin/psql/stringutils.c')
0 files changed, 0 insertions, 0 deletions