From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Heikki Linnakangas <heikki(at)enterprisedb(dot)com> |
Cc: | "Dorochevsky, Michel" <michel(dot)dorochevsky(at)softcon(dot)de>, pgsql-bugs(at)postgresql(dot)org, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: BUG #3245: PANIC: failed to re-find shared loc k o b j ect |
Date: | 2007-04-25 21:46:47 |
Message-ID: | 6205.1177537607@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs pgsql-hackers pgsql-patches |
Heikki Linnakangas <heikki(at)enterprisedb(dot)com> writes:
> Tom Lane wrote:
>> I still don't want to introduce more checking overhead into
>> hash_seq_search, though, so what I'm now thinking about is a new
>> dynahash primitive named something like "hash_freeze", which'd mark a
>> hashtable as disallowing insertions. If the hashtable is frozen before
>> hash_seq_init then we don't add it to the central list of scans, and
>> therefore there is no cleanup to do at the end. nodeAgg can use this
>> mode since it doesn't modify its hashtable anymore after beginning its
>> readout scan.
> This plan includes having the list of hash tables that mustn't be
> expanded? And the list would be cleaned up at the end of transaction, to
> avoid leaks.
Right, all that's still the same. This is just a way to exempt certain
scans from that machinery, by allowing the caller to declare he doesn't
need to modify the hashtable anymore. AFAICS that covers our needs,
at least for the present.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Lee Chua | 2007-04-26 01:07:06 | Re: BUG #3252: Select Order by time |
Previous Message | Heikki Linnakangas | 2007-04-25 21:14:17 | Re: BUG #3245: PANIC: failed to re-find shared loc k o b j ect |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2007-04-25 21:49:42 | Re: Avoiding unnecessary reads in recovery |
Previous Message | Heikki Linnakangas | 2007-04-25 21:44:25 | Re: Avoiding unnecessary reads in recovery |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2007-04-25 21:55:04 | Re: [HACKERS] Full page writes improvement, code update |
Previous Message | Dave Page | 2007-04-25 21:44:19 | Re: Fix for MSVC header installation |