postgresql/src/backend
Michael Paquier a40caf5f86 Preserve clustered index after rewrites with ALTER TABLE
A table rewritten by ALTER TABLE would lose tracking of an index usable
for CLUSTER.  This setting is tracked by pg_index.indisclustered and is
controlled by ALTER TABLE, so some extra work was needed to restore it
properly.  Note that ALTER TABLE only marks the index that can be used
for clustering, and does not do the actual operation.

Author: Amit Langote, Justin Pryzby
Reviewed-by: Ibrar Ahmed, Michael Paquier
Discussion: https://postgr.es/m/20200202161718.GI13621@telsasoft.com
Backpatch-through: 9.5
2020-04-06 11:03:49 +09:00
..
access Use TransactionXmin instead of RecentGlobalXmin in heap_abort_speculative(). 2020-04-05 17:47:30 -07:00
bootstrap Skip WAL for new relfilenodes, under wal_level=minimal. 2020-04-04 12:25:34 -07:00
catalog Skip WAL for new relfilenodes, under wal_level=minimal. 2020-04-04 12:25:34 -07:00
commands Preserve clustered index after rewrites with ALTER TABLE 2020-04-06 11:03:49 +09:00
executor Add infrastructure to track WAL usage. 2020-04-04 10:02:08 +05:30
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 Provide a TLS init hook 2020-03-25 17:13:17 -04:00
main Add PostgreSQL home page to --help output 2020-02-28 13:12:21 +01:00
nodes Skip WAL for new relfilenodes, under wal_level=minimal. 2020-04-04 12:25:34 -07:00
optimizer Cosmetic improvements for code related to partitionwise join. 2020-04-03 17:00:35 -04:00
parser Remove bogus Assert, add some regression test cases showing why. 2020-04-04 18:03:30 -04:00
partitioning Add object names to partition integrity violations. 2020-03-23 08:09:15 +05:30
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 Recompute stack base in forked postmaster children. 2020-04-05 18:23:30 -07:00
regex Update copyrights for 2020 2020-01-01 12:21:45 -05:00
replication Save errno across LWLockRelease() calls 2020-04-05 10:02:00 +02: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 Fix race condition in statext_store(). 2020-03-31 17:06:22 -04:00
storage Skip WAL for new relfilenodes, under wal_level=minimal. 2020-04-04 12:25:34 -07:00
tcop Improve user control over truncation of logged bind-parameter values. 2020-04-02 15:04:51 -04:00
tsearch Remove useless pfree()s at the ends of various ValuePerCall SRFs. 2020-03-16 21:36:53 -04:00
utils Preserve clustered index after rewrites with ALTER TABLE 2020-04-06 11:03:49 +09:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
Makefile Update copyrights for 2020 2020-01-01 12:21:45 -05:00
common.mk Remove PARTIAL_LINKING build mode. 2018-03-30 17:33:04 -07:00
nls.mk Translation updates 2019-05-20 16:00:53 +02:00