Skip site navigation (1) Skip section navigation (2)

Re: Trying to track down weird query stalls

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: dan(at)sidhe(dot)org
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>, pgsql-performance(at)postgresql(dot)org
Subject: Re: Trying to track down weird query stalls
Date: 2009-03-30 21:00:22
Message-ID: 20090330210022.GG23023@alvh.no-ip.org (view raw or flat)
Thread:
Lists: pgsql-performance
dan(at)sidhe(dot)org escribió:
> > dan(at)sidhe(dot)org escribió:
> >
> >> where libinstance.libdate <= 1238445044
> >>    and libinstance.enddate > 1238445044
> >>    and libinstance.libinstanceid = libobject.libinstanceid
> >>    and libinstance.architecture = ?
> >
> > How are you generating the explain?  My bet is that you're just
> > substituting a literal in the architecture condition, but if the driver
> > is smart then maybe it's preparating the query beforehand.  You'll get a
> > different plan in that case.
> 
> I don't think so. Perl's DBI is involved, but the statement's in a
> variable.

So what's the "?" in the query you pasted earlier?

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Responses

pgsql-performance by date

Next:From: danDate: 2009-03-30 21:07:36
Subject: Re: Trying to track down weird query stalls
Previous:From: danDate: 2009-03-30 20:49:55
Subject: Re: Trying to track down weird query stalls

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group