pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jan Wieck <jan@wi3ck.info>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: Kevin Grittner <kgrittn@postgresql.org>
Cc: pgsql-hackers@postgresql.org
Subject: Re: [COMMITTERS] pgsql: Fix an O(N^2) problem in foreign key references.
Date: Tue, 15 Sep 2015 11:35:27 -0400
Message-ID: <55F83ABF.2080609@wi3ck.info> (raw)
In-Reply-To: <1935.1442329129@sss.pgh.pa.us>
References: <E1ZaSzE-0007q3-2V@gemulon.postgresql.org>
	<10758.1442239007@sss.pgh.pa.us>
	<55F81C48.4020009@wi3ck.info>
	<22834.1442325108@sss.pgh.pa.us>
	<1935.1442329129@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

On 09/15/2015 10:58 AM, Tom Lane wrote:
> I wrote:
>> Jan Wieck <jan@wi3ck.info> writes:
>>> I'm able to reproduce that failure with CLOBBER_CACHE_ALWAYS and it
>>> definitely is caused by this commit. Do you want to back it out for the
>>> time being? Kevin is on vacation right now.
>
>> I'll take a look today, and either fix it if I can find the problem
>> quickly or back it out.
>
> The answer is "back it out", because this patch is fundamentally and
> irretrievably broken.  You can't just clobber the hashtable like that,
> because there are very possibly active uses of hashtable entries in
> outer function call levels.

Ok.

Would it be appropriate to use (Un)RegisterXactCallback() in case of 
detecting excessive sequential scanning of that cache and remove all 
invalid entries from it at that time?


Regards, Jan

-- 
Jan Wieck
Senior Software Engineer
http://slony.info


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



view thread (19+ messages)  latest in thread

Message-ID: <55F83ABF.2080609@wi3ck.info>
Permalink:  ../55F83ABF.2080609@wi3ck.info/
Also on:    postgresql.org/message-id/55F83ABF.2080609@wi3ck.info

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: jan@wi3ck.info, tgl@sss.pgh.pa.us, kgrittn@postgresql.org, pgsql-hackers@postgresql.org
  Subject: Re: [COMMITTERS] pgsql: Fix an O(N^2) problem in foreign key references.
  In-Reply-To: <55F83ABF.2080609@wi3ck.info>
  References: <E1ZaSzE-0007q3-2V@gemulon.postgresql.org> <10758.1442239007@sss.pgh.pa.us> <55F81C48.4020009@wi3ck.info> <22834.1442325108@sss.pgh.pa.us> <1935.1442329129@sss.pgh.pa.us> <55F83ABF.2080609@wi3ck.info>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox