aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistsplit.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2008-02-07 22:58:35 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2008-02-07 22:58:35 +0000
commit9b43c245e382a1486cba65ec71883dbc9a3c74ac (patch)
treeacf6cef715d8f4a85228633f496cab43945e11ce /src/backend/access/gist/gistsplit.c
parentd9c7f632448d0e9c68b7b38388d399978be503cf (diff)
downloadpostgresql-9b43c245e382a1486cba65ec71883dbc9a3c74ac.tar.gz
postgresql-9b43c245e382a1486cba65ec71883dbc9a3c74ac.zip
Avoid misbehavior in foreign key checks when casting to a datatype for which
the parser supplies a default typmod that can result in data loss (ie, truncation). Currently that appears to be only CHARACTER and BIT. We can avoid the problem by specifying the type's internal name instead of using SQL-spec syntax. Since the queries generated here are only used internally, there's no need to worry about portability. This problem is new in 8.3; before we just let the parser do whatever it wanted to resolve the operator, but 8.3 is trying to be sure that the semantics of FK checks are consistent. Per report from Harald Fuchs.
Diffstat (limited to 'src/backend/access/gist/gistsplit.c')
0 files changed, 0 insertions, 0 deletions