git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 478846e) | patch
Disallow USING clause when altering type of generated column
2024年8月29日 06:38:29 +0000 (08:38 +0200)
2024年8月29日 07:06:15 +0000 (09:06 +0200)
commit 4d68a043245a6947d676a216aaac0714bcaf97d5
Disallow USING clause when altering type of generated column

This does not make sense. It would write the output of the USING
clause into the converted column, which would violate the generation
expression. This adds a check to error out if this is specified.

There was a test for this, but that test errored out for a different
reason, so it was not effective.

Reported-by: Jian He <jian.universality@gmail.com>
Reviewed-by: Yugo NAGATA <nagata@sraoss.co.jp>
Discussion: https://www.postgresql.org/message-id/flat/c7083982-69f4-4b14-8315-f9ddb20b9834%40eisentraut.org
src/backend/commands/tablecmds.c diff | blob | blame | history
src/test/regress/expected/generated.out diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /