Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Bugs > Re: DISTINCT MA...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 3728 of 3940
Post > Topic >>

Re: DISTINCT MAX() results mismatch on 8.2 and 8.3

by Kevin.Grittner@[EMAIL PROTECTED] ("Kevin Grittner") Apr 22, 2008 at 10:52 AM

>>> On Wed, Mar 26, 2008 at  9:23 PM, in message
<20080327112308.b1e9a692.yamaguchi@[EMAIL PROTECTED]
>, Taiki Yamaguchi
<yamaguchi@[EMAIL PROTECTED]
> wrote: 
 
> 8.3.0
> ==============================
> yamaguti=# create table t1 (i int, j int primary key);
> NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index
> "t1_pkey" for table "t1" CREATE TABLE
> yamaguti=# insert into t1 select g, g from generate_series(1, 100) as
g;
> INSERT 0 100
> yamaguti=# select distinct max(i) from t1;
>  max 
> -----
>  100
> (1 row)
> 
> yamaguti=# select distinct max(j) from t1;
> ERROR:  could not find pathkey item to sort
> ==============================
 
For the benefit of anyone searching the archives for the problem we
just hit, this message also occurs in 8.3.1 and also occurs against
the above test table for this statement:
 
test=# select max(j) as "maxj" from t1 order by "maxj";
ERROR:  could not find pathkey item to sort
 
Neither statement causes the error when run against a build from
REL8_3_STABLE from 35 minutes ago (2008-04-22 10:15 CDT).
 
-Kevin
 


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
 




 2 Posts in Topic:
Re: DISTINCT MAX() results mismatch on 8.2 and 8.3
Kevin.Grittner@[EMAIL PRO  2008-04-22 10:52:34 
Re: DISTINCT MAX() results mismatch on 8.2 and 8.3
tgl@[EMAIL PROTECTED] (T  2008-04-22 12:09:35 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Thu Jul 24 13:32:59 CDT 2008.