From: | Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> |
---|---|
To: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: assertion failure 9.3.4 |
Date: | 2014-04-17 02:36:02 |
Message-ID: | 20140417023602.GU5822@eldon.alvh.no-ip.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Andrew Dunstan wrote:
>
> On 04/16/2014 07:19 PM, Tom Lane wrote:
> >Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> writes:
> >>I'm not quite clear on why the third query, the one in ri_PerformCheck,
> >>is invoking a sequence.
> >It's not --- SeqNext is the next-tuple function for a sequential scan.
> >Nothing to do with sequences.
> >
> >Now, it *is* worth wondering why the heck a query on the table's primary
> >key is using a seqscan and not an indexscan. Maybe the planner thinks
> >there are just a few rows in the table? But the stack trace seems
> >unexceptional other than that.
> >
> >I'm wondering if the combination of autoexplain and pg_stat_statements
> >is causing trouble.
> >
> >Yeah, it would be real nice to see a self-contained test case for this.
>
> Well, that might be hard to put together, but I did try running
> without pg_stat_statements and auto_explain loaded and the error did
> not occur.
Well, can you get us the queries that are being run, and the schemas
involved in those queries?
> Not sure where that gets us in terms of deciding on a
> culprit.
I suspect, in the blind, that autoexplain is executing a query that
causes a second update XID to be added to a multixact (which already has
another one), perhaps with the same snapshot as the original update.
Why would this be happening in a FK-check query? No idea.
--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
From | Date | Subject | |
---|---|---|---|
Next Message | Fabrízio de Royes Mello | 2014-04-17 02:41:52 | Verbose output of pg_dump not show schema name |
Previous Message | Tom Lane | 2014-04-17 02:28:32 | Re: assertion failure 9.3.4 |