Re: BUG #3938: Row-wise comparison fails - Mailing list pgsql-bugs

From Alvaro Herrera
Subject Re: BUG #3938: Row-wise comparison fails
Date
Msg-id 20080207105924.GA26934@alvh.no-ip.org
Whole thread Raw
In response to BUG #3938: Row-wise comparison fails  ("" <cgriffo@practicepartner.com>)
Responses Re: BUG #3938: Row-wise comparison fails  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
cgriffo@practicepartner.com wrote:

> The row-wise compare fails in the select statement below. This works in
> PostgreSQL 8.2 but fails in 8.3.

Confirmed here.

> SELECT * from test where (str1, str2, id) > ('a', '1', 0);

The error message is:

alvherre=# SELECT * from test where (str1, str2, id) > ('a', '1', 0);
ERREUR:  could not find member 4(25,25) of opfamily 426

Note that if I change the order of columns, it works:

alvherre=# SELECT * from test where (id,str1, str2) > (0,'a', '1');
 id | str1 | str2
----+------+------
  1 | a    | 1
  2 | b    | 2
(2 lignes)

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

pgsql-bugs by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: BUG #3939: (Possibly) no NLS in 8.3 Windows
Next
From: Andrew Dunstan
Date:
Subject: Re: [HACKERS] possible bug windows setup