aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistxlog.c
diff options
context:
space:
mode:
authorStephen Frost <sfrost@snowman.net>2016-04-15 21:57:15 -0400
committerStephen Frost <sfrost@snowman.net>2016-04-15 21:57:15 -0400
commit99f2f3c19ae7d6aa2950a9bdb549217c5a60d941 (patch)
tree703eb73dea293b1cc79888cb9ebabafaaee9b17d /src/backend/access/gist/gistxlog.c
parentd2de44c2ce5c697a2de8089fb377816b2387107a (diff)
downloadpostgresql-99f2f3c19ae7d6aa2950a9bdb549217c5a60d941.tar.gz
postgresql-99f2f3c19ae7d6aa2950a9bdb549217c5a60d941.zip
In recordExtensionInitPriv(), keep the scan til we're done with it
For reasons of sheer brain fade, we (I) was calling systable_endscan() immediately after systable_getnext() and expecting the tuple returned by systable_getnext() to still be valid. That's clearly wrong. Move the systable_endscan() down below the tuple usage. Discovered initially by Pavel Stehule and then also by Alvaro. Add a regression test based on Alvaro's testing.
Diffstat (limited to 'src/backend/access/gist/gistxlog.c')
0 files changed, 0 insertions, 0 deletions