pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mario Jorge Nunes Filipe <mjnf@uevora.pt>
Cc: pgsql-admin@postgresql.org
Subject: Re: A crashing query
Date: Wed, 28 Mar 2001 11:27:48 -0500
Message-ID: <18397.985796868@sss.pgh.pa.us> (raw)
In-Reply-To: <985779672.15767.4.camel@neptuno>
References: <985779672.15767.4.camel@neptuno>

Mario Jorge Nunes Filipe <mjnf@uevora.pt> writes:
> Yestrday a new class was added (this is the only difference from before,
> and since then the following query no longer works:

>  select distinct disciplina from lecciona* l where l.docente='$id' and
> l.ano_lectivo<= $ano_lectivo and l.classe in ('lecciona','responsável')
> and not exists (select 1 from lecciona* l1 where
> l1.disciplina=l.disciplina and l1.docente <> l.docente and
> l1.ano_lectivo <= $ano_lectivo and l1.ano_lectivo > l.ano_lectivo and
> l.classe = l1.classe ) order by disciplina";

Subselects in inherited queries are a tricky area (in fact I just
yesterday fixed a bug in 7.1RC1 in that specific area).

> this system is a 6.4.2,

Try updating to something less ancient --- there are tons of bugs in
6.4.*'s subselect implementation.  I'm amazed not that this crashes,
but that it ever worked at all.  You really should be on 7.0.3, if
not experimenting with 7.1.

			regards, tom lane



view thread (3+ messages)

Message-ID: <18397.985796868@sss.pgh.pa.us>
Permalink:  ../18397.985796868@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/18397.985796868@sss.pgh.pa.us

 · 

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-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, mjnf@uevora.pt
  Subject: Re: A crashing query
  In-Reply-To: <18397.985796868@sss.pgh.pa.us>
  References: <985779672.15767.4.camel@neptuno> <18397.985796868@sss.pgh.pa.us>

* 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