Print out error position for some more DDLs
Michael Paquier <michael@paquier.xyz>
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
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/typecmds.c | modified | +1 −1 |
| src/backend/parser/parse_utilcmd.c | modified | +1 −1 |
| src/test/regress/expected/float8.out | modified | +2 −0 |
| src/test/regress/expected/typed_table.out | modified | +2 −0 |
Discussion
- Pass ParseState as down to utility functions. 22 messages · 2024-11-28 → 2025-01-27