git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 975768f) | patch
Add location field to DefElem
Tue, 6 Sep 2016 16:00:00 +0000 (12:00 -0400)
Tue, 6 Sep 2016 16:00:00 +0000 (12:00 -0400)
commit 49eb0fd0972d14014dd3533b1f1bf8c94c899883
Add location field to DefElem

Add a location field to the DefElem struct, used to parse many utility
commands. Update various error messages to supply error position
information.

To propogate the error position information in a more systematic way,
create a ParseState in standard_ProcessUtility() and pass that to
interested functions implementing the utility commands. This seems
better than passing the query string and then reassembling a parse state
ad hoc, which violates the encapsulation of the ParseState type.

Reviewed-by: Pavel Stehule <pavel.stehule@gmail.com>
38 files changed:
contrib/file_fdw/file_fdw.c diff | blob | blame | history
src/backend/access/common/reloptions.c diff | blob | blame | history
src/backend/catalog/aclchk.c diff | blob | blame | history
src/backend/commands/aggregatecmds.c diff | blob | blame | history
src/backend/commands/collationcmds.c diff | blob | blame | history
src/backend/commands/copy.c diff | blob | blame | history
src/backend/commands/dbcommands.c diff | blob | blame | history
src/backend/commands/define.c diff | blob | blame | history
src/backend/commands/explain.c diff | blob | blame | history
src/backend/commands/extension.c diff | blob | blame | history
src/backend/commands/functioncmds.c diff | blob | blame | history
src/backend/commands/sequence.c diff | blob | blame | history
src/backend/commands/tsearchcmds.c diff | blob | blame | history
src/backend/commands/typecmds.c diff | blob | blame | history
src/backend/commands/user.c diff | blob | blame | history
src/backend/commands/view.c diff | blob | blame | history
src/backend/nodes/copyfuncs.c diff | blob | blame | history
src/backend/nodes/equalfuncs.c diff | blob | blame | history
src/backend/nodes/makefuncs.c diff | blob | blame | history
src/backend/nodes/outfuncs.c diff | blob | blame | history
src/backend/nodes/readfuncs.c diff | blob | blame | history
src/backend/parser/gram.y diff | blob | blame | history
src/backend/parser/parse_utilcmd.c diff | blob | blame | history
src/backend/replication/logical/logicalfuncs.c diff | blob | blame | history
src/backend/replication/repl_gram.y diff | blob | blame | history
src/backend/tcop/utility.c diff | blob | blame | history
src/include/commands/collationcmds.h diff | blob | blame | history
src/include/commands/copy.h diff | blob | blame | history
src/include/commands/dbcommands.h diff | blob | blame | history
src/include/commands/defrem.h diff | blob | blame | history
src/include/commands/explain.h diff | blob | blame | history
src/include/commands/extension.h diff | blob | blame | history
src/include/commands/sequence.h diff | blob | blame | history
src/include/commands/typecmds.h diff | blob | blame | history
src/include/commands/user.h diff | blob | blame | history
src/include/nodes/makefuncs.h diff | blob | blame | history
src/include/nodes/parsenodes.h diff | blob | blame | history
src/include/utils/acl.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /