From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
Cc: | Marc Tardif <admin(at)wtbwts(dot)com>, pgsql-general(at)postgreSQL(dot)org |
Subject: | Re: [GENERAL] max(oid) |
Date: | 2000-01-23 03:18:13 |
Message-ID: | 200001230318.WAA02830@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
Got it. TODO updated.
[Charset ISO-8859-1 unsupported, filtering to ASCII...]
> On 2000-01-21, Bruce Momjian mentioned:
>
> > > Is there a way to use the max aggregate on an oid field? When I try on
> > > 6.5.3, I get the following error message:
> > >
> > > test=> select max(uid) from user_base;
> > > ERROR: Unable to select an aggregate function max(oid)
> > >
> > > If there's any work-around, please let me know.
> > > Marc
> > >
> >
> > Added to TODO:
> >
> > * allow aggregates on oid
>
> We already had a TODO item for this and came to the conclusion that
> * Make type equivalency apply to aggregates
> will solve this.
>
> For right now the user could do the following:
>
> INSERT INTO pg_aggregate VALUES ('max', <your user id>, 'int4larger', '-',
> '-', 26, 26, 0, 26, NULL, NULL);
>
> --
> Peter Eisentraut Sernanders v_g 10:115
> peter_e(at)gmx(dot)net 75262 Uppsala
> http://yi.org/peter-e/ Sweden
>
>
>
--
Bruce Momjian | http://www.op.net/~candle
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From | Date | Subject | |
---|---|---|---|
Next Message | D Herssein | 2000-01-23 03:35:55 | [HELP] - Installing Postgres |
Previous Message | Peter Eisentraut | 2000-01-23 01:30:07 | Re: [HACKERS] Re: [GENERAL] Variable case database names |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2000-01-23 03:27:11 | Re: [HACKERS] Happy column dropping |
Previous Message | Don Baccus | 2000-01-23 02:20:57 | FWIW department - select avg(numeric_value) |