On 11/10/2014 12:13 PM, Jeff Janes wrote: > The related problem where the "end" rows are actually needed (e.g. ORDER > BY...LIMIT) has not been fixed. > > My idea to fix that was to check if the row's creation-transaction was in > the MVCC snapshot (which just uses local memory) before checking if that > creation-transaction had committed (which uses shared memory). But I > didn't really have the confidence to push that given the fragility of that > part of the code and my lack of experience with it. See "In progress > INSERT wrecks plans on table" thread. Oh! I thought this issue had been fixed by Tom's patch as well. It could very well describe what I'm seeing (in the other thread), since some of the waiting queries are INSERTs, and other queries do selects against the same tables concurrently. Although ... given that I'm seeing preposterously long BIND times (like 50 seconds), I don't think that's explained just by bad plans. -- Josh Berkus PostgreSQL Experts Inc. http://pgexperts.com -- Sent via pgsql-performance mailing list (pgsql-performance@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance