Delete the temporary file used in buffered GiST build, after the build.
Heikki Linnakangas <heikki.linnakangas@iki.fi>
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.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/gist/gistbuildbuffers.c | modified | +1 −1 |
| src/backend/access/gist/gistbuild.c | modified | +1 −0 |