aboutsummaryrefslogtreecommitdiff
path: root/src/backend/parser/parse_oper.c
diff options
context:
space:
mode:
authorDean Rasheed <dean.a.rasheed@gmail.com>2025-01-17 10:35:07 +0000
committerDean Rasheed <dean.a.rasheed@gmail.com>2025-01-17 10:35:07 +0000
commit43830ecb8a9b6a1bc322298a77a5e0d87c2e83d4 (patch)
tree6efc114c5325a5688249f25ed10b3ec6348350c7 /src/backend/parser/parse_oper.c
parente24d77080b365265f3c854f64e71518622883678 (diff)
downloadpostgresql-43830ecb8a9b6a1bc322298a77a5e0d87c2e83d4.tar.gz
postgresql-43830ecb8a9b6a1bc322298a77a5e0d87c2e83d4.zip
Fix parsing of qualified relation names in RETURNING.
Given a qualified refname, refnameNamespaceItem() will search for a matching namespace item by relation OID, rather than by name. Commit 80feb727c8 broke this by adding additional namespace items for OLD and NEW in the RETURNING list, which have the same relation OID, causing ambiguity. Fix this by ignoring these in the search, which is correct since they don't match the qualified relation name, and so there is no real ambiguity. Reported by Richard Guo. Discussion: https://postgr.es/m/CAMbWs49MBjWYWDROJ8MZ%3DY%2B4UgRQa10wzik1tWrD5yto9eoGXg%40mail.gmail.com
Diffstat (limited to 'src/backend/parser/parse_oper.c')
0 files changed, 0 insertions, 0 deletions