Search Postgresql Archives

Сreate parallel aggregate

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello, everyone!

I was trying to create a parallel aggregate with base_type parameter and failed

postgres=# CREATE AGGREGATE ST_Extent_parallel (         
        sfunc = ST_CombineBBox,
        combinefunc = ST_CombineBBox,
        finalfunc = box2d,
        stype = box3d,
        basetype = geometry,
        parallel = safe
        );
ERROR:  syntax error at or near "parallel"
LINE 7:         parallel = safe

But everything is ok if I use arg_data_type:

postgres=#  CREATE AGGREGATE ST_Extent_parallel(geometry) (
        sfunc = ST_CombineBBox,
          combinefunc = ST_CombineBBox,
        finalfunc = box2d,
        stype = box3d,
        parallel = safe
        );
CREATE AGGREGATE

Is that a bug or a feature?


-- 
Grigory Smolkin
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux