BUG #2106: EXPLAIN ANALYZE with SELECT query causes a single backend server process to segfault - Mailing list pgsql-bugs

From
Subject BUG #2106: EXPLAIN ANALYZE with SELECT query causes a single backend server process to segfault
Date
Msg-id 20051209190348.2139BF0B5B@svr2.postgresql.org
Whole thread Raw
Responses Re: BUG #2106: EXPLAIN ANALYZE with SELECT query causes a single backend server process to segfault
List pgsql-bugs
The following bug has been logged online:

Bug reference:      2106
Logged by:
Email address:      bugrep@oldanygroup.cz
PostgreSQL version: 8.1.0, 8.2devel
Operating system:   CentOS 4.2 with 2.6.13.4-SMP kernel
Description:        EXPLAIN ANALYZE with SELECT query causes a single
backend server process to segfault
Details:

Hello,

while testing the 8.1.0 version of PostgreSQL (we've been using version
7.4.8 for a long time), the EXPLAIN ANALYZE causes a single backend server
process to segfault after issuing the following query:

SELECT obch_vyrobek.id_vyrobku AS id_vyrobku,
      obch_vyrobek.id_vyrobce AS id_vyrobce,
      obch_vyrobce.nazev AS nazev_vyrobce,
      CASE obch_vyrobek.nazev ILIKE '%aloe%' WHEN true THEN 1 ELSE 0 END AS
match_nazev_vyrobku
FROM obch_vyrobek LEFT JOIN obch_vyrobce USING (id_vyrobce)
WHERE (obch_vyrobek.aktivni AND ((obch_vyrobek.sukl IS NULL AND
obch_vyrobek.v_katalogu) OR (obch_vyrobek.sukl IS NOT NULL) OR
(obch_vyrobek.odhadovana_dostupnost IS NOT NULL))) AND (obch_vyrobek.nazev
ILIKE
'%aloe%' OR obch_vyrobek.popis ILIKE '%aloe%' OR
coalesce(obch_vyrobek.popis_od_vyrobce,obch_vyrobek.popis) ILIKE '%aloe%'
OR
obch_vyrobce.nazev ILIKE '%aloe%')
ORDER BY otc DESC, typ DESC, odhadovana_dostupnost DESC, obr_m DESC,
match_nazev_vyrobku DESC, obch_vyrobek.nazev;

The same happens with version 8.2devel. There are no segfaults with such
EXPLAIN ANALYZE followed by abovementioned query when using version 7.4.8,
even 8.0.4 is ok.

pgsql-bugs by date:

Previous
From: "alejandro ramirez"
Date:
Subject: BUG #2105: ERROR: relation "comoma" does not exist
Next
From: Tom Lane
Date:
Subject: Re: BUG #2106: EXPLAIN ANALYZE with SELECT query causes a single backend server process to segfault