postgresql/src/backend/rewrite
Peter Eisentraut 509199587d Fix assorted bugs related to identity column in partitioned tables
When changing the data type of a column of a partitioned table, craft
the ALTER SEQUENCE command only once.  Partitions do not have identity
sequences of their own and thus do not need a ALTER SEQUENCE command
for each partition.

Fix getIdentitySequence() to fetch the identity sequence associated
with the top-level partitioned table when a Relation of a partition is
passed to it.  While doing so, translate the attribute number of the
partition into the attribute number of the partitioned table.

Author: Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Reported-by: Alexander Lakhin <exclusion@gmail.com>
Reviewed-by: Dmitry Dolgov <9erthalion6@gmail.com>
Discussion: https://www.postgresql.org/message-id/3b8a9dc1-bbc7-0ef5-6863-c432afac7d59@gmail.com
2024-05-07 22:50:00 +02:00
..
Makefile SEARCH and CYCLE clauses 2021-02-01 14:32:51 +01:00
meson.build Update copyright for 2024 2024-01-03 20:49:05 -05:00
rewriteDefine.c Remove unused #include's from backend .c files 2024-03-04 12:02:20 +01:00
rewriteHandler.c Fix assorted bugs related to identity column in partitioned tables 2024-05-07 22:50:00 +02:00
rewriteManip.c Support MERGE into updatable views. 2024-02-29 15:56:59 +00:00
rewriteRemove.c Remove unused #include's from backend .c files 2024-03-04 12:02:20 +01:00
rewriteSearchCycle.c Make the order of the header file includes consistent 2024-03-13 15:07:00 +01:00
rewriteSupport.c Remove unused #include's from backend .c files 2024-03-04 12:02:20 +01:00
rowsecurity.c Add RETURNING support to MERGE. 2024-03-17 13:58:59 +00:00