Skip site navigation (1) Skip section navigation (2)

pgsql: Create an official API function for C functions to use to check

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Create an official API function for C functions to use to check
Date: 2010-02-08 20:39:52
Message-ID: 20100208203952.170147541B9@cvs.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Log Message:
-----------
Create an official API function for C functions to use to check if they are
being called as aggregates, and to get the aggregate transition state memory
context if needed.  Use it instead of poking directly into AggState and
WindowAggState in places that shouldn't know so much.

We should have done this in 8.4, probably, but better late than never.

Revised version of a patch by Hitoshi Harada.

Modified Files:
--------------
    pgsql/contrib/tsearch2:
        tsearch2.c (r1.11 -> r1.12)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/contrib/tsearch2/tsearch2.c?r1=1.11&r2=1.12)
    pgsql/doc/src/sgml:
        xaggr.sgml (r1.38 -> r1.39)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/doc/src/sgml/xaggr.sgml?r1=1.38&r2=1.39)
    pgsql/src/backend/executor:
        nodeAgg.c (r1.171 -> r1.172)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/executor/nodeAgg.c?r1=1.171&r2=1.172)
    pgsql/src/backend/utils/adt:
        array_userfuncs.c (r1.33 -> r1.34)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/array_userfuncs.c?r1=1.33&r2=1.34)
        float.c (r1.164 -> r1.165)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/float.c?r1=1.164&r2=1.165)
        int8.c (r1.77 -> r1.78)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/int8.c?r1=1.77&r2=1.78)
        numeric.c (r1.121 -> r1.122)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/numeric.c?r1=1.121&r2=1.122)
        varlena.c (r1.175 -> r1.176)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/varlena.c?r1=1.175&r2=1.176)
    pgsql/src/include:
        fmgr.h (r1.63 -> r1.64)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/fmgr.h?r1=1.63&r2=1.64)

pgsql-committers by date

Next:From: Tom LaneDate: 2010-02-09 00:28:30
Subject: pgsql: Rearrange lazy-vacuum code a little bit to reduce the window
Previous:From: Heikki LinnakangasDate: 2010-02-08 20:00:55
Subject: pgsql: Remove obsolete comment about 'fsm' argument, which isn't an

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group