Print out error position for some more DDLs

Michael Paquier <michael@paquier.xyz>

Commit: 0f23dedc91760271aefe9e3c52d677c079bb7bce
Author: Michael Paquier <michael@paquier.xyz>
Date: 2024-12-17T00:44:06Z
Releases: 18.0
Print out error position for some more DDLs

The following commands gain some information about the error position in
the query, should they fail when looking at the type used:
- CREATE TYPE (LIKE)
- CREATE TABLE OF

Both are related to typenameType() where the type name lookup is done.
These calls gain the ParseState that already exists in these paths.

Author: Kirill Reshke, Jian He
Reviewed-by: Álvaro Herrera, Michael Paquier
Discussion: https://postgr.es/m/CALdSSPhqfvKbDwqJaY=yEePi_aq61GmMpW88i6ZH7CMG_2Z4Cg@mail.gmail.com

Files

Discussion