Print out error position for CREATE DOMAIN
commit39240bcad56dc51a7896d04a1e066efcf988b58f
authorMichael Paquier <michael@paquier.xyz>
Mon, 16 Dec 2024 05:52:11 +0000 (16 14:52 +0900)
committerMichael Paquier <michael@paquier.xyz>
Mon, 16 Dec 2024 05:52:11 +0000 (16 14:52 +0900)
treee85b9529dd7f21273581e7b78cd868c4b648c38c
parent3ad8b840ce8b1d7279f2d0d5fb7d346c0a6a3e8d
Print out error position for CREATE DOMAIN

This is simply done by pushing down the ParseState available in
ProcessUtility() to DefineDomain(), giving more information about the
position of an error when running a CREATE DOMAIN query.

Most of the queries impacted by this change have been added previously
in 0172b4c9449e.

Author: Kirill Reshke, Jian He
Reviewed-by: Álvaro Herrera, Tom Lane, Michael Paquier
Discussion: https://postgr.es/m/CALdSSPhqfvKbDwqJaY=yEePi_aq61GmMpW88i6ZH7CMG_2Z4Cg@mail.gmail.com
src/backend/commands/typecmds.c
src/backend/tcop/utility.c
src/include/commands/typecmds.h
src/test/regress/expected/collate.icu.utf8.out
src/test/regress/expected/collate.linux.utf8.out
src/test/regress/expected/collate.out
src/test/regress/expected/collate.windows.win1252.out
src/test/regress/expected/domain.out