Re: [BUGS] BUG #3516: Incomplete #ifdef statement in s_lock.h

2007-08-06 Thread Dirk Tilger
On Sun, Aug 05, 2007 at 11:20:18AM -0400, Tom Lane wrote: > "Dirk Tilger" <[EMAIL PROTECTED]> writes: > > Operating system: Linux with Intel compiler on ia64 > > > I have been compiling postgresql 8.0, 8.1 and 8.2.4 with the Intel compiler > > in the past successfully. This time something went w

[BUGS] BUG #3518: ERROR: IN types character varying and integer cannot be matched

2007-08-06 Thread Tomasz Kawczynski
The following bug has been logged online: Bug reference: 3518 Logged by: Tomasz Kawczynski Email address: [EMAIL PROTECTED] PostgreSQL version: 8.2.4 Operating system: Linux Gentoo Description:ERROR: IN types character varying and integer cannot be matched Details:

[BUGS] BUG #3519: Postgres takes the wrong query plan resulting in performance issues

2007-08-06 Thread Mouhamadou DIA
The following bug has been logged online: Bug reference: 3519 Logged by: Mouhamadou DIA Email address: [EMAIL PROTECTED] PostgreSQL version: 8.2.4 Operating system: Solaris 10 and Linux Redhat 4 Description:Postgres takes the wrong query plan resulting in performance

Re: [BUGS] BUG #3516: Incomplete #ifdef statement in s_lock.h

2007-08-06 Thread Tom Lane
Dirk Tilger <[EMAIL PROTECTED]> writes: > FYI: we also apply the attached patch to postgre, so that the > 'configure' script would not add the -mp1, when -mp was already > specified. From the manual: There is absolutely no chance that we will accept this patch, as it is known to break Postgres.

Re: [BUGS] BUG #3518: ERROR: IN types character varying and integer cannot be matched

2007-08-06 Thread Tom Lane
"Tomasz Kawczynski" <[EMAIL PROTECTED]> writes: > SELECT * FROM s_skladnik WHERE kod IN (902,902) > ERROR: IN types character varying and integer cannot be matched > whitch is ok (ive read about this restriction in 8.2.x) > but why after > SELECT * FROM s_skladnik WHERE kod IN (902) > or > SELE

Re: [BUGS] BUG #3519: Postgres takes the wrong query plan resulting in performance issues

2007-08-06 Thread Heikki Linnakangas
Mouhamadou DIA wrote: > I've migrated to Postgres 8.2.4 and run the same query. It takes now 20 > seconds which is still not acceptable. To help you with that, we'd need to see the EXPLAIN ANALYZE output of the query, and the CREATE TABLE statements of the tables involved in the query and their in

Re: RE : [BUGS] BUG #3519: Postgres takes the wrong query plan resulting in performance issues

2007-08-06 Thread Heikki Linnakangas
Mouhamadou Dia wrote: > I'm sending in attachment the output of the explain analyze command and the > create table statements of tables involved in the query. Wait, you said that the query takes 20 seconds on 8.2, but the explain analyze output says that it actually took 50 seconds. Is this the o

Re: RE : RE : [BUGS] BUG #3519: Postgres takes the wrong query plan resulting in performance issues

2007-08-06 Thread Heikki Linnakangas
Hmm. I don't see anything terribly wrong in the planner's estimates. The only estimate that's off is the # of rows in pror_org matching the qual orgt_cd = 'CHAIN', 27 estimated vs 1 actual. You could try increasing the statistics target for that column to get that estimate right. That might tip the

Re: [BUGS] BUG #3504: Some listening sessions never return from writing, problems ensue

2007-08-06 Thread Tom Lane
"Peter Koczan" <[EMAIL PROTECTED]> writes: > So, it looks like the app polls for async notifies every second. Hopefully > you can glean some insight from that. My guess is that some condition causes that to stop happening. One way to monitor this from outside is to use strace to watch the app. Ac

Re: RE : RE : [BUGS] BUG #3519: Postgres takes the wrong query plan resulting in performance issues

2007-08-06 Thread Gregory Stark
"Heikki Linnakangas" <[EMAIL PROTECTED]> writes: > Have you played with enable_seqscan=off or enable_hashjoin=off? That's > not a good long term solution, but it would be interesting to see what > happens. I think this is a case where Postgres just doesn't know it can re-order near an outer join

Re: [BUGS] BUG #3504: Some listening sessions never return from writing, problems ensue

2007-08-06 Thread Tom Lane
"Peter Koczan" <[EMAIL PROTECTED]> writes: > Here's my theory (and feel free to tell me that I'm full of it)...somehow, a > lot of notifies happened at once, or in a very short period of time, to the > point where the app was still processing notifies when the timer clicked off > another second. Th

Re: RE : RE : [BUGS] BUG #3519: Postgres takes the wrong query plan resulting in performance issues

2007-08-06 Thread Tom Lane
Gregory Stark <[EMAIL PROTECTED]> writes: > The structure of your query is a whole series of left outer joins, the result > of which is then (inner) joined with one more table. The outer joins return a > whole lot of records but the inner join is only going to match a few of them. Hmmm ... actuall