citus/src
Onur Tirtir b14bae6311 Not allow ON DELETE/UPDATE SET DEFAULT actions on columns that default to sequences (#6340)
Given that we drop DEFAULT nextval('sequence') expressions from
shard relation columns, allowing `ON DELETE/UPDATE SET DEFAULT`
on such columns might cause inserting NULL values as a result
of a delete/update operation.

For this reason, we disallow ON DELETE/UPDATE SET DEFAULT actions
on columns that default to sequences.

DESCRIPTION: Disallows having ON DELETE/UPDATE SET DEFAULT actions on
columns that default to sequences

Fixes #6339.

(cherry picked from commit a868cc049a)

 Conflicts (dropped those changes since pg15 is not supported on 11.0):
	src/test/regress/expected/pg15.out
	src/test/regress/sql/pg15.sql
2022-09-23 14:24:29 +03:00
..
backend Not allow ON DELETE/UPDATE SET DEFAULT actions on columns that default to sequences (#6340) 2022-09-23 14:24:29 +03:00
bin/pg_send_cancellation Make enterprise features open source 2022-06-16 08:09:45 +02:00
include Include IntegerArrayTypeToList from worker_protocol.h instead of array_type.h 2022-09-23 14:24:22 +03:00
test Not allow ON DELETE/UPDATE SET DEFAULT actions on columns that default to sequences (#6340) 2022-09-23 14:24:29 +03:00