Re: CTTAS w/ DISTINCT ON crashes backend - Mailing list pgsql-general

From Tom Lane
Subject Re: CTTAS w/ DISTINCT ON crashes backend
Date
Msg-id 2018.1074729116@sss.pgh.pa.us
Whole thread Raw
In response to Re: CTTAS w/ DISTINCT ON crashes backend  (Mike Mascari <mascarm@mascari.com>)
List pgsql-general
Mike Mascari <mascarm@mascari.com> writes:
> Could you give me a bit of direction?
>  [ same query works in one DB and crashes in another ]

I have a feeling this is a problem with an incorrect plan --- possibly
the same thing I just fixed a few days ago,
http://archives.postgresql.org/pgsql-committers/2004-01/msg00134.php
or perhaps another bug.  Look at EXPLAIN output and see if the two
databases are generating different plans for the query.  If so, perhaps
ANALYZE in the test database is needed?  In any case, don't ANALYZE in
the development DB, for fear of moving the stats enough to make the
problem go away ...

            regards, tom lane

pgsql-general by date:

Previous
From: Mike Mascari
Date:
Subject: Re: CTTAS w/ DISTINCT ON crashes backend
Next
From: "scott.marlowe"
Date:
Subject: Re: postgresql + apache under heavy load