From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | "Emils Klotins" <emils(at)mail(dot)usis(dot)bkc(dot)lv> |
Cc: | pgsql-sql(at)postgreSQL(dot)org |
Subject: | Re: [SQL] Addendum: PG6.5.3: CASE w. diff THEN types -- prob with Linux(?) |
Date: | 1999-11-30 22:56:35 |
Message-ID: | 22447.944002595@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
"Emils Klotins" <emils(at)mail(dot)usis(dot)bkc(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Mark Kirkwood | 1999-11-30 23:14:41 | slow sort for simple join |
Previous Message | Oliver Elphick | 1999-11-30 22:04:55 | Re: [SQL] Addendum: PG6.5.3: CASE w. diff THEN types -- prob with Linux(?) |