postgresql/src/test/regress
Tom Lane 4ac8aaa36f Fix handling of generated columns in ALTER TABLE.
ALTER TABLE failed if a column referenced in a GENERATED expression
had been added or changed in type earlier in the ALTER command.
That's because the GENERATED expression needs to be evaluated
against the table's updated tuples, but it was being evaluated
against the original tuples.  (Fortunately the executor has adequate
cross-checks to notice the mismatch, so we just got an obscure error
message and not anything more dangerous.)

Per report from Andreas Joseph Krogh.  Back-patch to v12 where
GENERATED was added.

Discussion: https://postgr.es/m/VisenaEmail.200.231b0a41523275d0.16ea7f800c7@tc7-visena
2020-01-08 09:42:53 -05:00
..
data Improve key representation for GIN jsonb_ops, and fix existence-search bug. 2014-05-09 08:41:26 -04:00
expected Fix handling of generated columns in ALTER TABLE. 2020-01-08 09:42:53 -05:00
input Improve psql's \d output for partitioned indexes. 2019-07-23 17:04:21 -04:00
output Improve psql's \d output for partitioned indexes. 2019-07-23 17:04:21 -04:00
sql Fix handling of generated columns in ALTER TABLE. 2020-01-08 09:42:53 -05:00
.gitignore Fix inconsistencies and typos in the tree, take 10 2019-08-13 13:53:41 +09:00
GNUmakefile Update copyrights for 2020 2020-01-01 12:21:45 -05:00
Makefile Fix non-GNU makefiles for AIX make. 2017-11-30 00:57:22 -08:00
parallel_schedule Add tests for tuplesort.c. 2019-11-13 15:52:13 -08:00
pg_regress_main.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
pg_regress.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
pg_regress.h Update copyrights for 2020 2020-01-01 12:21:45 -05:00
README Don't generate plain-text HISTORY and src/test/regress/README anymore. 2014-02-10 20:48:04 -05:00
regress.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
regressplans.sh Fix inconsistencies in the code 2019-07-08 13:15:09 +09:00
resultmap Cygwin and Mingw floating-point fixes. 2019-02-16 01:50:16 +00:00
serial_schedule Add tuplesort test to serial_schedule. 2019-11-16 10:51:03 -08:00
standby_schedule Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00

Documentation concerning how to run these regression tests and interpret
the results can be found in the PostgreSQL manual, in the chapter
"Regression Tests".