]> granicus.if.org Git - postgresql/commit
Delete the temporary file used in buffered GiST build, after the build.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 30 May 2012 08:58:54 +0000 (11:58 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 30 May 2012 09:05:57 +0000 (12:05 +0300)
commitbe02b16826ec9789ed3cb06e4e7531c94e497118
tree987ac3b1a0b7d321a04a79caf6ba96baaf8a5970
parent4317e0246c645f60c39e6572644cff1cb03b4c65
Delete the temporary file used in buffered GiST build, after the build.

There were two bugs here: We forgot to call gistFreeBuildBuffers() function
at the end of build, and we passed interXact == true to BufFileCreateTemp,
so the file wasn't automatically cleaned up at end-of-transaction either.
src/backend/access/gist/gistbuild.c
src/backend/access/gist/gistbuildbuffers.c