]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Correct comment and some documentation about REPLICA_IDENTITY_INDEX
authorMichael Paquier <michael@paquier.xyz>
Wed, 22 Dec 2021 07:38:53 +0000 (16:38 +0900)
committerMichael Paquier <michael@paquier.xyz>
Wed, 22 Dec 2021 07:38:53 +0000 (16:38 +0900)
commit1a0ef5e2cc63797feec1bbbf2ca89906fed76bfb
tree189c0e7f82ddeecb3988a2211e1b6a9d4c4d86cb
parentc43d72b245ecfac9fed68363b5c682fc8958bf86
Correct comment and some documentation about REPLICA_IDENTITY_INDEX

catalog/pg_class.h was stating that REPLICA_IDENTITY_INDEX with a
dropped index is equivalent to REPLICA_IDENTITY_DEFAULT.  The code tells
a different story, as it is equivalent to REPLICA_IDENTITY_NOTHING.

The behavior exists since the introduction of replica identities, and
fe7fd4e even added tests for this case but I somewhat forgot to fix this
comment.

While on it, this commit reorganizes the documentation about replica
identities on the ALTER TABLE page, and a note is added about the case
of dropped indexes with REPLICA_IDENTITY_INDEX.

Author: Michael Paquier, Wei Wang
Reviewed-by: Euler Taveira
Discussion: https://postgr.es/m/OS3PR01MB6275464AD0A681A0793F56879E759@OS3PR01MB6275.jpnprd01.prod.outlook.com
Backpatch-through: 10
doc/src/sgml/ref/alter_table.sgml
src/include/catalog/pg_class.h