Improve wording of two error messages related to generated columns.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: d36228a9fcdccd57a7dc332572eb9837c7c301e6
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2020-11-23T16:15:12Z
Releases: 14.0
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

Discussion