Print out error position for some ALTER TABLE ALTER COLUMN type
authorMichael Paquier <michael@paquier.xyz>
Mon, 27 Jan 2025 04:51:23 +0000 (13:51 +0900)
committerMichael Paquier <michael@paquier.xyz>
Mon, 27 Jan 2025 04:51:23 +0000 (13:51 +0900)
commit65281391a937293db7fa747be218def0e9794550
treeb42ae0ac950e5ae92f5e7a8d714001b69560dc3f
parent14793f47192b5eb02197cd03afb88559d7514b76
Print out error position for some ALTER TABLE ALTER COLUMN type

A ParseState exists in ATPrepAlterColumnType() since its introduction
in 077db40fa1f3, and it has never relied on a query string that could be
used to point at a location in the origin string on error.

The output of some regression tests are updated, showing the error
location where applicable.  Six error strings are upgraded with the
error location.

Author: Jian He
Discussion: https://postgr.es/m/CACJufxGfbPfWLjcEz33G9eW_epDW0UDi2H05i9eSTPKGJ4rxSA@mail.gmail.com
src/backend/commands/tablecmds.c
src/test/regress/expected/alter_table.out
src/test/regress/expected/generated_stored.out
src/test/regress/expected/typed_table.out