Re: WEIRD! postmaster: segfault with sub select??!

From: Alban Hertroys <dalroi(at)solfertje(dot)student(dot)utwente(dot)nl>
To: Reto <primzahl(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: WEIRD! postmaster: segfault with sub select??!
Date: 2010-01-03 18:50:11
Message-ID: 28B5F03E-76BD-45C8-AE10-A55FA0F00E49@solfertje.student.utwente.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 3 Jan 2010, at 9:31, Reto wrote:

> Hi everybody,
>
> I'm facing a strange problem with a relatively simple sub select
> whereas everything else runs perfect on this machine (PG 8.4.2 @
> Fedora 12, Core2 E4600, 4GB, 2 x 320GB).
>
> # SELECT DISTINCT name FROM bbr_parts WHERE id IN (SELECT part_id FROM
> bbr_v_office_to_parts WHERE office_id=39 AND office_type=9);
>
> server closed the connection unexpectedly
> This probably means the server terminated abnormally
> before or while processing the request.
> The connection to the server was lost. Attempting reset: Failed.

Did you verify the problem is indeed a segmentation fault? There are other reasons backend processes terminate, for example the OS doing silly things. I'd check that your hardware is working properly and that you don't have things like memory overcommit (I believe that's what Linux calls it) turned on.

> When nothing else helps, I will downgrade from PostgreSQL 8.4.2 to
> 8.3.7. Thank you for your comments.

If that helps, then that's a strong pointer to a bug in Postgres or in a stored procedure in your application. There are tons of people running sub-queries on 8.4 though, so I strongly doubt Postgres is to blame here.

Alban Hertroys

--
If you can't see the forest for the trees,
cut the trees and you'll see there is no forest.

!DSPAM:737,4b40e6e69954031810539!

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Greg Stark 2010-01-03 18:58:11 Re: WEIRD! postmaster: segfault with sub select??!
Previous Message David Fetter 2010-01-03 18:02:39 Re: set-level update fails with unique constraint violation