Re: Disallow UPDATE/DELETE on table with unpublished generated column as REPLICA IDENTITY
Aleksander Alekseev <aleksander@timescale.com>
From: Aleksander Alekseev <aleksander@timescale.com>
To: PostgreSQL-development <pgsql-hackers@postgresql.org>
Cc: Shlok Kyal <shlok.kyal.oss@gmail.com>
Date: 2024-11-06T12:18:32Z
Lists: pgsql-hackers
Hi Shlok, > So, I think this behavior would be acceptable. Thoughts? That's a fair point, thanks for sharing. Personally I find this behavior somewhat suboptimal but since we already have it in certain cases I guess what you propose might be acceptable. I'm still not entirely happy about breaking the existing behavior in the discussed case. Not sure what the lesser evil would be - breaking it or keeping it as is. Some input from other people on the mailing list would be appreciated. -- Best regards, Aleksander Alekseev
Commits
-
Improve the error message introduced in commit 87ce27de696.
- 2d0152d6147b 18.0 landed
-
Ensure stored generated columns must be published when required.
- 87ce27de6963 18.0 landed
-
Replicate generated columns when 'publish_generated_columns' is set.
- 7054186c4ebe 18.0 cited
-
Ignore generated columns during apply of update/delete.
- adedf54e659e 16.0 cited
-
Ignore dropped columns during apply of update/delete.
- b797def5951f 16.0 cited