aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistvacuum.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2012-03-22 14:13:17 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2012-03-22 14:13:45 -0400
commitf318ee848c9a7c3dd289fe67245e4a12ba136bca (patch)
tree8fb59377e15e93d331f7789c893e62de7c3acc0f /src/backend/access/gist/gistvacuum.c
parent5bd06e619c82c3b2e29fed40aae5fc39a9620908 (diff)
downloadpostgresql-f318ee848c9a7c3dd289fe67245e4a12ba136bca.tar.gz
postgresql-f318ee848c9a7c3dd289fe67245e4a12ba136bca.zip
Fix GET DIAGNOSTICS for case of assignment to function's first variable.
An incorrect and entirely unnecessary "safety check" in exec_stmt_getdiag() caused the code to treat an assignment to a variable with dno zero as a no-op. Unfortunately, that's a perfectly valid dno. This has been broken since GET DIAGNOSTICS was invented. It's not terribly surprising that the bug went unnoticed for so long, since in most cases you probably wouldn't use the function's first-created variable (normally its first parameter) as a GET DIAGNOSTICS target. Nonetheless, it's broken. Per bug #6551 from Adam Buraczewski.
Diffstat (limited to 'src/backend/access/gist/gistvacuum.c')
0 files changed, 0 insertions, 0 deletions