You can subscribe to this list here.
2010 |
Jan
|
Feb
|
Mar
|
Apr
(10) |
May
(17) |
Jun
(3) |
Jul
|
Aug
|
Sep
(8) |
Oct
(18) |
Nov
(51) |
Dec
(74) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2011 |
Jan
(47) |
Feb
(44) |
Mar
(44) |
Apr
(102) |
May
(35) |
Jun
(25) |
Jul
(56) |
Aug
(69) |
Sep
(32) |
Oct
(37) |
Nov
(31) |
Dec
(16) |
2012 |
Jan
(34) |
Feb
(127) |
Mar
(218) |
Apr
(252) |
May
(80) |
Jun
(137) |
Jul
(205) |
Aug
(159) |
Sep
(35) |
Oct
(50) |
Nov
(82) |
Dec
(52) |
2013 |
Jan
(107) |
Feb
(159) |
Mar
(118) |
Apr
(163) |
May
(151) |
Jun
(89) |
Jul
(106) |
Aug
(177) |
Sep
(49) |
Oct
(63) |
Nov
(46) |
Dec
(7) |
2014 |
Jan
(65) |
Feb
(128) |
Mar
(40) |
Apr
(11) |
May
(4) |
Jun
(8) |
Jul
(16) |
Aug
(11) |
Sep
(4) |
Oct
(1) |
Nov
(5) |
Dec
(16) |
2015 |
Jan
(5) |
Feb
|
Mar
(2) |
Apr
(5) |
May
(4) |
Jun
(12) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(4) |
2019 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
|
|
1
|
2
|
3
(1) |
4
|
5
|
6
|
7
|
8
|
9
|
10
|
11
|
12
|
13
|
14
|
15
|
16
|
17
|
18
|
19
|
20
|
21
|
22
|
23
(2) |
24
|
25
|
26
|
27
|
28
|
29
|
30
|
|
|
|
From: Koichi S. <ko...@in...> - 2010-06-23 07:48:28
|
Andrei; Thank you very much for detailed description of the spec and example test. --- Koichi (2010年06月23日 15:31), Andrei Martsinchyk wrote: > Hi Sudo-san, > > Good description of CREATE AGGREGATE can be found in the Postgres docs: > > http://www.postgresql.org/docs/8.4/static/sql-createaggregate.html > > Postgres-XC added additional step (collection function) between > transition and final calculation functions, and schema > > sfunc( internal-state, next-data-values ) ---> next-internal-state > ffunc( internal-state ) ---> aggregate-value > > was changed to > > sfunc( node-internal-state, next-data-values ) ---> node-internal-state > cfunc( coord-internal-state, node-internal-state ) ---> coord-internal-state > ffunc( coord-internal-state ) ---> aggregate-value > > To reflect this change following parameters was added to CREATE AGGREGATE: > > CFUNC - collection function, > CTYPE - collection data type, > INITCOLLECT - (optional) initial collection value. > > It is hard to develop aggregate function from the scratch. For my > testing I recreated existing functions under different name. > Example: > > create aggregate mymin (int4) (sfunc=int4smaller, stype=int4, > cfunc=int4smaller, ctype=int4); > > You can see the list of defined aggregate functions querying pg_aggregate table: > > select * pg_aggregate; > > You can also try and construct own aggregate function. You would need > to choose functions for sfunc, cfunc and ffunc (component functions) > from already defined in Postgres. > You can see the list of defined functions querying pg_proc table: > > select * pg_proc; > > There are requirements for return types and parameter types of the > component functions. > cfunc: > data type of the first parameter must be the same as return type. Data > types of remaining parameters must be the same as data types of the > aggregate function > sfunc: > must have two parameters, data type of first parameter must be the > same as return type of sfunc, data type of second parameter must be > the same as return type of cfunc > ffunc: > must have one parameter, data type must be the same as return type of sfunc. > > And finally data types, you can see the list of defined data types > querying pg_type table: > select * pg_type; > > Feel free to ask if you have a question. > |
From: Andrei M. <and...@en...> - 2010-06-23 06:32:03
|
Hi Sudo-san, Good description of CREATE AGGREGATE can be found in the Postgres docs: http://www.postgresql.org/docs/8.4/static/sql-createaggregate.html Postgres-XC added additional step (collection function) between transition and final calculation functions, and schema sfunc( internal-state, next-data-values ) ---> next-internal-state ffunc( internal-state ) ---> aggregate-value was changed to sfunc( node-internal-state, next-data-values ) ---> node-internal-state cfunc( coord-internal-state, node-internal-state ) ---> coord-internal-state ffunc( coord-internal-state ) ---> aggregate-value To reflect this change following parameters was added to CREATE AGGREGATE: CFUNC - collection function, CTYPE - collection data type, INITCOLLECT - (optional) initial collection value. It is hard to develop aggregate function from the scratch. For my testing I recreated existing functions under different name. Example: create aggregate mymin (int4) (sfunc=int4smaller, stype=int4, cfunc=int4smaller, ctype=int4); You can see the list of defined aggregate functions querying pg_aggregate table: select * pg_aggregate; You can also try and construct own aggregate function. You would need to choose functions for sfunc, cfunc and ffunc (component functions) from already defined in Postgres. You can see the list of defined functions querying pg_proc table: select * pg_proc; There are requirements for return types and parameter types of the component functions. cfunc: data type of the first parameter must be the same as return type. Data types of remaining parameters must be the same as data types of the aggregate function sfunc: must have two parameters, data type of first parameter must be the same as return type of sfunc, data type of second parameter must be the same as return type of cfunc ffunc: must have one parameter, data type must be the same as return type of sfunc. And finally data types, you can see the list of defined data types querying pg_type table: select * pg_type; Feel free to ask if you have a question. -- Andrei Martsinchyk EntepriseDB Corporation The Enterprise Postgres Company Website: www.enterprisedb.com EnterpriseDB Blog: http://blogs.enterprisedb.com/ Follow us on Twitter: http://www.twitter.com/enterprisedb This e-mail message (and any attachment) is intended for the use of the individual or entity to whom it is addressed. This message contains information from EnterpriseDB Corporation that may be privileged, confidential, or exempt from disclosure under applicable law. If you are not the intended recipient or authorized to receive this for the intended recipient, any use, dissemination, distribution, retention, archiving, or copying of this communication is strictly prohibited. If you have received this e-mail in error, please notify the sender immediately by reply e-mail and delete this message. |
From: Michael P. <mic...@gm...> - 2010-06-03 01:45:50
|
Hi, Perhaps you already saw this email in the postgres hackers mailing list... My mistake... and my apologies... Please see attached a patch that finishes the support of current values for sequences. The infrastructure was already in place, just a call to the correct API to contact GTM was missing. Regards, -- Michael Paquier NIPPON TELEGRAPH AND TELEPHONE CORPORATION NTT Open Source Software Center |