aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistutil.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2008-11-14 19:47:50 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2008-11-14 19:47:50 +0000
commit9e0247aba5e2cac1542823a194d4dc2ea1c3abb6 (patch)
tree5b5fb27746c965a5961ad16631788d113cfd6d11 /src/backend/access/gist/gistutil.c
parentfbaa172d6553e0139ed98405eb4f24bf196f1394 (diff)
downloadpostgresql-9e0247aba5e2cac1542823a194d4dc2ea1c3abb6.tar.gz
postgresql-9e0247aba5e2cac1542823a194d4dc2ea1c3abb6.zip
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.
Diffstat (limited to 'src/backend/access/gist/gistutil.c')
0 files changed, 0 insertions, 0 deletions