postgresql/src/backend
David Rowley 3cb02e307e Fix possible crash with GENERATED ALWAYS columns
In some corner cases, this could also lead to corrupted values being
included in the tuple.

Users who are concerned that they are affected by this should first
upgrade and then perform a base backup of their database and restore onto
an off-line server. They should then query each table with generated
columns to ensure there are no rows where the generated expression does
not match a newly calculated version of the GENERATED ALWAYS expression.
If no crashes occur and no rows are returned then you're not affected.

Fixes bug #16369.

Reported-by: Cameron Ezell
Discussion: https://postgr.es/m/16369-5845a6f1bef59884@postgresql.org
Backpatch-through: 12 (where GENERATED ALWAYS columns were added.)
2020-04-18 14:10:37 +12:00
..
access Slightly simplify nbtree split point choice loop. 2020-04-15 15:47:26 -07:00
bootstrap Skip WAL for new relfilenodes, under wal_level=minimal. 2020-04-04 12:25:34 -07:00
catalog Fix possible future cache reference leak in ALTER EXTENSION ADD/DROP. 2020-04-17 13:41:59 -04:00
commands Fix the usage of parallel and full options of vacuum command. 2020-04-16 10:55:02 +05:30
executor Fix possible crash with GENERATED ALWAYS columns 2020-04-18 14:10:37 +12:00
foreign Update copyrights for 2020 2020-01-01 12:21:45 -05:00
jit Extend ExecBuildAggTrans() to support a NULL pointer check. 2020-03-04 17:29:18 -08:00
lib Move src/backend/utils/hash/hashfn.c to src/common 2020-02-27 09:25:41 +05:30
libpq Improve error messages after LoadLibrary() 2020-04-13 10:24:46 +02:00
main Add PostgreSQL home page to --help output 2020-02-28 13:12:21 +01:00
nodes Revert 0f5ca02f53 2020-04-08 11:37:27 +03:00
optimizer Remove unneeded constraint dependency tracking 2020-04-17 10:29:49 +12:00
parser Fix CREATE TABLE LIKE INCLUDING GENERATED column order issue 2020-04-09 16:36:45 +02:00
partitioning Suppress unused-variable warning. 2020-04-10 12:00:28 -04:00
po Translation updates 2019-06-17 15:30:20 +02:00
port Update copyrights for 2020 2020-01-01 12:21:45 -05:00
postmaster Fix collection of typos and grammar mistakes in the tree 2020-04-10 11:18:39 +09:00
regex Update copyrights for 2020 2020-01-01 12:21:45 -05:00
replication Fix collection of typos and grammar mistakes in the tree, volume 2 2020-04-14 14:45:43 +09:00
rewrite Fix INSERT OVERRIDING USER VALUE behavior 2020-03-31 08:50:39 +02:00
snowball Update copyrights for 2020 2020-01-01 12:21:45 -05:00
statistics Modify additional power 2 calculations to use new helper functions 2020-04-08 18:29:51 +12:00
storage Revert 0f5ca02f53 2020-04-08 11:37:27 +03:00
tcop Revert 0f5ca02f53 2020-04-08 11:37:27 +03:00
tsearch Further cleanup of ts_headline code. 2020-04-09 15:38:43 -04:00
utils Fix collection of typos and grammar mistakes in the tree, volume 2 2020-04-14 14:45:43 +09:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
common.mk Remove PARTIAL_LINKING build mode. 2018-03-30 17:33:04 -07:00
Makefile Update copyrights for 2020 2020-01-01 12:21:45 -05:00
nls.mk Translation updates 2019-05-20 16:00:53 +02:00