Improve wording of two error messages related to generated columns.
Tom Lane <tgl@sss.pgh.pa.us>
Improve wording of two error messages related to generated columns. Clarify that you can "insert" into a generated column as long as what you're inserting is a DEFAULT placeholder. Also, use ERRCODE_GENERATED_ALWAYS in place of ERRCODE_SYNTAX_ERROR; there doesn't seem to be any reason to use the less specific errcode. Discussion: https://postgr.es/m/9q0sgcr416t.fsf@gmx.us
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/rewrite/rewriteHandler.c | modified | +10 −7 |
| src/test/regress/expected/generated.out | modified | +10 −10 |
| src/test/regress/expected/identity.out | modified | +6 −6 |
| src/test/regress/expected/updatable_views.out | modified | +2 −2 |
Discussion
- [bug+patch] Inserting DEFAULT into generated columns from VALUES RTE 8 messages · 2020-08-13 → 2020-11-23