From: Tom Lane <tgl@sss.pgh.pa.us>
To: Emils Klotins <emils@mail.usis.bkc.lv>
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] Addendum: PG6.5.3: CASE w. diff THEN types -- prob with Linux(?)
Date: Tue, 30 Nov 1999 17:56:35 -0500
Message-ID: <22447.944002595@sss.pgh.pa.us> (raw)
In-Reply-To: <14344673472060@bkc.lv>
"Emils Klotins" <emils@mail.usis.bkc.lv> writes:
> The same statement on RedHat 5.2 Linux machine breaks the
> backend:
> [ PostgreSQL 6.5.3 on i586-pc-linux-gnu, compiled by gcc
> 2.7.2.3 ]
> => select case when 3=1 then 'rrr'::text when 3=2 else 5 end;
> NOTICE: Message from PostgreSQL backend:
> The Postmaster has informed me that some other backend died abnormally and possibly corrupted shared memory.
Now that I look more closely, the above statement isn't legal: it's
missing the second "then" clause. You should have gotten a syntax
error, and indeed I do get one:
regression=> select case when 3=1 then 'rrr'::text when 3=2 else 5 end;
ERROR: parser: parse error at or near "else"
I wonder whether you built Postgres with a busted parser generator.
RedHat presumably supplies the GNU parser generator "bison", but
what version? We usually recommend 1.25 or later...
regards, tom lane
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-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, emils@mail.usis.bkc.lv
Subject: Re: [SQL] Addendum: PG6.5.3: CASE w. diff THEN types -- prob with Linux(?)
In-Reply-To: <22447.944002595@sss.pgh.pa.us>
References: <14344673472060@bkc.lv> <22447.944002595@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