MobilityDB  1.0
time_aggfuncs.h
Go to the documentation of this file.
1 /*****************************************************************************
2  *
3  * This MobilityDB code is provided under The PostgreSQL License.
4  *
5  * Copyright (c) 2016-2021, Université libre de Bruxelles and MobilityDB
6  * contributors
7  *
8  * MobilityDB includes portions of PostGIS version 3 source code released
9  * under the GNU General Public License (GPLv2 or later).
10  * Copyright (c) 2001-2021, PostGIS contributors
11  *
12  * Permission to use, copy, modify, and distribute this software and its
13  * documentation for any purpose, without fee, and without a written
14  * agreement is hereby granted, provided that the above copyright notice and
15  * this paragraph and the following two paragraphs appear in all copies.
16  *
17  * IN NO EVENT SHALL UNIVERSITE LIBRE DE BRUXELLES BE LIABLE TO ANY PARTY FOR
18  * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING
19  * LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION,
20  * EVEN IF UNIVERSITE LIBRE DE BRUXELLES HAS BEEN ADVISED OF THE POSSIBILITY
21  * OF SUCH DAMAGE.
22  *
23  * UNIVERSITE LIBRE DE BRUXELLES SPECIFICALLY DISCLAIMS ANY WARRANTIES,
24  * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
25  * AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON
26  * AN "AS IS" BASIS, AND UNIVERSITE LIBRE DE BRUXELLES HAS NO OBLIGATIONS TO
27  * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 
28  *
29  *****************************************************************************/
30 
36 #ifndef __TIME_AGGFUNCS_H__
37 #define __TIME_AGGFUNCS_H__
38 
39 #include <postgres.h>
40 #include <fmgr.h>
41 #include <catalog/pg_type.h>
42 
43 /*****************************************************************************/
44 
45 extern Datum datum_sum_int32(Datum l, Datum r);
46 
47 extern Datum timestampset_tunion_transfn(PG_FUNCTION_ARGS);
48 extern Datum period_tunion_transfn(PG_FUNCTION_ARGS);
49 extern Datum periodset_tunion_transfn(PG_FUNCTION_ARGS);
50 
51 extern Datum time_tunion_combinefn(PG_FUNCTION_ARGS);
52 
53 extern Datum timestamp_tunion_finalfn(PG_FUNCTION_ARGS);
54 extern Datum period_tunion_finalfn(PG_FUNCTION_ARGS);
55 
56 /*****************************************************************************/
57 
58 #endif
Datum periodset_tunion_transfn(PG_FUNCTION_ARGS)
Transition function for union aggregate of period sets.
Definition: time_aggfuncs.c:413
Datum period_tunion_finalfn(PG_FUNCTION_ARGS)
Final function for union aggregation of period (set) values.
Definition: time_aggfuncs.c:679
Datum datum_sum_int32(Datum l, Datum r)
Returns the sum of the two arguments.
Definition: time_aggfuncs.c:67
Datum timestamp_tunion_finalfn(PG_FUNCTION_ARGS)
Final function for union aggregation of timestamp set values.
Definition: time_aggfuncs.c:660
Datum period_tunion_transfn(PG_FUNCTION_ARGS)
Transition function for union aggregate of periods.
Definition: time_aggfuncs.c:391
Datum timestampset_tunion_transfn(PG_FUNCTION_ARGS)
Transition function for union aggregate of timestamp sets.
Definition: time_aggfuncs.c:368
Datum time_tunion_combinefn(PG_FUNCTION_ARGS)
Combine function for union aggregate of time types.
Definition: time_aggfuncs.c:638