Make ginbuild's funcCtx be independent of its tmpCtx.
Tom Lane <tgl@sss.pgh.pa.us>
Make ginbuild's funcCtx be independent of its tmpCtx. Previously the funcCtx was a child of the tmpCtx, but that was broken by commit eaa5808e8ec4e82ce1a87103a6b6f687666e4e4c, which made MemoryContextReset() delete, not reset, child contexts. The behavior of having a tmpCtx reset also clear the other context seems rather dubious anyway, so let's just disentangle them. Per report from Erik Rijkers. In passing, fix badly-inaccurate comments about these contexts.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/gin/gininsert.c | modified | +8 −3 |