From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Make ginbuild's funcCtx be independent of its tmpCtx. |
Date: | 2015-03-29 18:03:04 |
Message-ID: | E1YcHY8-0001Ie-JG@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/1601830ec20d56dc7bf6b60a34f69841429e4825
Modified Files
--------------
src/backend/access/gin/gininsert.c | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2015-03-29 19:05:55 | pgsql: Add vacuum_delay_point call in compute_index_stats's per-sample- |
Previous Message | Tom Lane | 2015-03-29 17:12:33 | pgsql: Remove a couple other vestigial yylex() declarations. |