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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 3c40594) | patch
Get rid of ParseState.p_value_substitute; use a columnref hook instead.
Sat, 7 Jan 2017 21:02:16 +0000 (16:02 -0500)
Sat, 7 Jan 2017 21:02:16 +0000 (16:02 -0500)
commit 7c3abe3c92fd3a14a70bc2f888f936cd6fe28c0f
Get rid of ParseState.p_value_substitute; use a columnref hook instead.

I noticed that p_value_substitute, which is a single-purpose kluge I added
in 2002 (commit b0422b215), could be replaced by having domainAddConstraint
install a parser hook that looks for the name "value". The parser hook
code only dates back to 2009, so it's not surprising that we had to kluge
this in 2002, but we can do it more cleanly now.
src/backend/commands/typecmds.c diff | blob | blame | history
src/backend/parser/parse_expr.c diff | blob | blame | history
src/include/parser/parse_node.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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