pgsql: In CREATE AGGREGATE, allow the transition datatype to be - Mailing list pgsql-committers

From tgl@postgresql.org (Tom Lane)
Subject pgsql: In CREATE AGGREGATE, allow the transition datatype to be
Date
Msg-id 20081114194750.AEAFB7545A4@cvs.postgresql.org
Whole thread Raw
List pgsql-committers
Log Message:
-----------
In CREATE AGGREGATE, allow the transition datatype to be "internal", but only
if the user is superuser.  This makes available to extension modules the same
sort of trick being practiced by array_agg().  The reason for the superuser
restriction is that you could crash the system by connecting up an
incompatible pair of internal-using functions as an aggregate.  It shouldn't
interfere with any legitimate use, since you'd have to be superuser to create
the internal-using transition and final functions anyway.

Modified Files:
--------------
    pgsql/src/backend/catalog:
        pg_aggregate.c (r1.96 -> r1.97)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/catalog/pg_aggregate.c?r1=1.96&r2=1.97)
    pgsql/src/backend/commands:
        aggregatecmds.c (r1.46 -> r1.47)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/commands/aggregatecmds.c?r1=1.46&r2=1.47)

pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pgsql: Enable script to generate preproc.y in build process.
Next
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Reduce contrib/intagg to a thin wrapper around the new core