pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Preserve replica identity index across ALTER TABLE rewrite
6+ messages / 1 participants
[nested] [flat]

* pgsql: Preserve replica identity index across ALTER TABLE rewrite
@ 2020-03-13 12:31  Peter Eisentraut <peter@eisentraut.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Peter Eisentraut @ 2020-03-13 12:31 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Preserve replica identity index across ALTER TABLE rewrite

If an index was explicitly set as replica identity index, this setting
was lost when a table was rewritten by ALTER TABLE.  Because this
setting is part of pg_index but actually controlled by ALTER
TABLE (not part of CREATE INDEX, say), we have to do some extra work
to restore it.

Based-on-patch-by: Quan Zongliang <quanzongliang@gmail.com>
Reviewed-by: Euler Taveira <euler.taveira@2ndquadrant.com>
Discussion: https://www.postgresql.org/message-id/flat/c70fcab2-4866-0d9f-1d01-e75e189db342@gmail.com

Branch
------
REL9_5_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/c15d35041206dbe2fd8f57a18c6227a2312ddf0d

Modified Files
--------------
src/backend/commands/tablecmds.c               | 42 +++++++++++++++++++++++
src/backend/utils/cache/lsyscache.c            | 25 ++++++++++++++
src/include/utils/lsyscache.h                  |  1 +
src/test/regress/expected/replica_identity.out | 46 ++++++++++++++++++++++++++
src/test/regress/sql/replica_identity.sql      | 21 ++++++++++++
5 files changed, 135 insertions(+)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Preserve replica identity index across ALTER TABLE rewrite
@ 2020-03-13 12:31  Peter Eisentraut <peter@eisentraut.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Peter Eisentraut @ 2020-03-13 12:31 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Preserve replica identity index across ALTER TABLE rewrite

If an index was explicitly set as replica identity index, this setting
was lost when a table was rewritten by ALTER TABLE.  Because this
setting is part of pg_index but actually controlled by ALTER
TABLE (not part of CREATE INDEX, say), we have to do some extra work
to restore it.

Based-on-patch-by: Quan Zongliang <quanzongliang@gmail.com>
Reviewed-by: Euler Taveira <euler.taveira@2ndquadrant.com>
Discussion: https://www.postgresql.org/message-id/flat/c70fcab2-4866-0d9f-1d01-e75e189db342@gmail.com

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/02530da73f0438f7c2073267de6fe2be84f592d7

Modified Files
--------------
src/backend/commands/tablecmds.c               | 42 +++++++++++++++++++++++
src/backend/utils/cache/lsyscache.c            | 25 ++++++++++++++
src/include/utils/lsyscache.h                  |  1 +
src/test/regress/expected/replica_identity.out | 46 ++++++++++++++++++++++++++
src/test/regress/sql/replica_identity.sql      | 21 ++++++++++++
5 files changed, 135 insertions(+)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Preserve replica identity index across ALTER TABLE rewrite
@ 2020-03-13 12:31  Peter Eisentraut <peter@eisentraut.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Peter Eisentraut @ 2020-03-13 12:31 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Preserve replica identity index across ALTER TABLE rewrite

If an index was explicitly set as replica identity index, this setting
was lost when a table was rewritten by ALTER TABLE.  Because this
setting is part of pg_index but actually controlled by ALTER
TABLE (not part of CREATE INDEX, say), we have to do some extra work
to restore it.

Based-on-patch-by: Quan Zongliang <quanzongliang@gmail.com>
Reviewed-by: Euler Taveira <euler.taveira@2ndquadrant.com>
Discussion: https://www.postgresql.org/message-id/flat/c70fcab2-4866-0d9f-1d01-e75e189db342@gmail.com

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/15cbbf81a58fd04479c0e5ff134838492473e935

Modified Files
--------------
src/backend/commands/tablecmds.c               | 42 +++++++++++++++++++++++
src/backend/utils/cache/lsyscache.c            | 25 ++++++++++++++
src/include/utils/lsyscache.h                  |  1 +
src/test/regress/expected/replica_identity.out | 46 ++++++++++++++++++++++++++
src/test/regress/sql/replica_identity.sql      | 21 ++++++++++++
5 files changed, 135 insertions(+)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Preserve replica identity index across ALTER TABLE rewrite
@ 2020-03-13 12:31  Peter Eisentraut <peter@eisentraut.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Peter Eisentraut @ 2020-03-13 12:31 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Preserve replica identity index across ALTER TABLE rewrite

If an index was explicitly set as replica identity index, this setting
was lost when a table was rewritten by ALTER TABLE.  Because this
setting is part of pg_index but actually controlled by ALTER
TABLE (not part of CREATE INDEX, say), we have to do some extra work
to restore it.

Based-on-patch-by: Quan Zongliang <quanzongliang@gmail.com>
Reviewed-by: Euler Taveira <euler.taveira@2ndquadrant.com>
Discussion: https://www.postgresql.org/message-id/flat/c70fcab2-4866-0d9f-1d01-e75e189db342@gmail.com

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/2f0dd9d93efe0d2e41585f804a38b2db5b7f429d

Modified Files
--------------
src/backend/commands/tablecmds.c               | 42 +++++++++++++++++++++++
src/backend/utils/cache/lsyscache.c            | 25 ++++++++++++++
src/include/utils/lsyscache.h                  |  1 +
src/test/regress/expected/replica_identity.out | 46 ++++++++++++++++++++++++++
src/test/regress/sql/replica_identity.sql      | 21 ++++++++++++
5 files changed, 135 insertions(+)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Preserve replica identity index across ALTER TABLE rewrite
@ 2020-03-13 12:31  Peter Eisentraut <peter@eisentraut.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Peter Eisentraut @ 2020-03-13 12:31 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Preserve replica identity index across ALTER TABLE rewrite

If an index was explicitly set as replica identity index, this setting
was lost when a table was rewritten by ALTER TABLE.  Because this
setting is part of pg_index but actually controlled by ALTER
TABLE (not part of CREATE INDEX, say), we have to do some extra work
to restore it.

Based-on-patch-by: Quan Zongliang <quanzongliang@gmail.com>
Reviewed-by: Euler Taveira <euler.taveira@2ndquadrant.com>
Discussion: https://www.postgresql.org/message-id/flat/c70fcab2-4866-0d9f-1d01-e75e189db342@gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1cc9c2412cc9a2fbe6a381170097d315fd40ccca

Modified Files
--------------
src/backend/commands/tablecmds.c               | 42 +++++++++++++++++++++++
src/backend/utils/cache/lsyscache.c            | 23 +++++++++++++
src/include/utils/lsyscache.h                  |  1 +
src/test/regress/expected/replica_identity.out | 46 ++++++++++++++++++++++++++
src/test/regress/sql/replica_identity.sql      | 21 ++++++++++++
5 files changed, 133 insertions(+)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Preserve replica identity index across ALTER TABLE rewrite
@ 2020-03-13 12:31  Peter Eisentraut <peter@eisentraut.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Peter Eisentraut @ 2020-03-13 12:31 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Preserve replica identity index across ALTER TABLE rewrite

If an index was explicitly set as replica identity index, this setting
was lost when a table was rewritten by ALTER TABLE.  Because this
setting is part of pg_index but actually controlled by ALTER
TABLE (not part of CREATE INDEX, say), we have to do some extra work
to restore it.

Based-on-patch-by: Quan Zongliang <quanzongliang@gmail.com>
Reviewed-by: Euler Taveira <euler.taveira@2ndquadrant.com>
Discussion: https://www.postgresql.org/message-id/flat/c70fcab2-4866-0d9f-1d01-e75e189db342@gmail.com

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/c9ef507e82ebb2bffc50e531edd6fb4593dd5146

Modified Files
--------------
src/backend/commands/tablecmds.c               | 42 +++++++++++++++++++++++
src/backend/utils/cache/lsyscache.c            | 23 +++++++++++++
src/include/utils/lsyscache.h                  |  1 +
src/test/regress/expected/replica_identity.out | 46 ++++++++++++++++++++++++++
src/test/regress/sql/replica_identity.sql      | 21 ++++++++++++
5 files changed, 133 insertions(+)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2020-03-13 12:31 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-03-13 12:31 pgsql: Preserve replica identity index across ALTER TABLE rewrite Peter Eisentraut <peter@eisentraut.org>
2020-03-13 12:31 pgsql: Preserve replica identity index across ALTER TABLE rewrite Peter Eisentraut <peter@eisentraut.org>
2020-03-13 12:31 pgsql: Preserve replica identity index across ALTER TABLE rewrite Peter Eisentraut <peter@eisentraut.org>
2020-03-13 12:31 pgsql: Preserve replica identity index across ALTER TABLE rewrite Peter Eisentraut <peter@eisentraut.org>
2020-03-13 12:31 pgsql: Preserve replica identity index across ALTER TABLE rewrite Peter Eisentraut <peter@eisentraut.org>
2020-03-13 12:31 pgsql: Preserve replica identity index across ALTER TABLE rewrite Peter Eisentraut <peter@eisentraut.org>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox