Re: [GENERAL] max(oid) - Mailing list pgsql-general

From Jose Soares
Subject Re: [GENERAL] max(oid)
Date
Msg-id 388C6577.A14466BD@sferacarta.com
Whole thread Raw
In response to Re: [GENERAL] max(oid)  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: [GENERAL] max(oid)  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-general

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é



pgsql-general by date:

Previous
From: "J. Roeleveld"
Date:
Subject: System requirements
Next
From: Bruce Momjian
Date:
Subject: Re: [GENERAL] CREATE TABLE AS