pgsql: Prevent setting a column as identity if its not-null constraint

2025-11-03 Thread Álvaro Herrera
Prevent setting a column as identity if its not-null constraint is invalid We don't allow null values to appear in identity-generated columns in other ways, so we shouldn't let unvalidated not-null constraints do it either. Oversight in commit a379061a22a8. Author: jian he Backpatch-through: 18

pgsql: Prevent setting a column as identity if its not-null constraint

2025-11-03 Thread Álvaro Herrera
Prevent setting a column as identity if its not-null constraint is invalid We don't allow null values to appear in identity-generated columns in other ways, so we shouldn't let unvalidated not-null constraints do it either. Oversight in commit a379061a22a8. Author: jian he Backpatch-through: 18