Re: [GENERAL] max(oid)

From: Jose Soares <jose(at)sferacarta(dot)com>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, Marc Tardif <admin(at)wtbwts(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] max(oid)
Date: 2000-01-24 14:45:11
Message-ID: 388C6577.A14466BD@sferacarta.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

Peter Eisentraut wrote:

> 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);
>

We need also aggregates for data type TIME
MAX(time)
MIN(time)

José

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2000-01-24 16:29:43 Re: [GENERAL] CREATE TABLE AS
Previous Message Marc Tardif 2000-01-24 13:38:30 max row size

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2000-01-24 14:51:41 Well, then you keep your darn columns
Previous Message Compte utilisateur Sultan-advl 2000-01-24 14:01:30 Re: [INTERFACES] Re: ODBC drive strange behavior