• Tom Lane's avatar
    In CREATE AGGREGATE, allow the transition datatype to be "internal", but only · 9e0247ab
    Tom Lane authored
    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.
    9e0247ab
pg_aggregate.c 11.5 KB