summaryrefslogtreecommitdiff
path: root/gis/pointcloud/postgresql9.5.patch
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-02-07 08:06:11 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-02-07 08:08:46 +0700
commit59b76a143ffe333cc692d01d25c0324c756f377f (patch)
tree6d43c40185a2a77e3316c02d42d4cca72ebb1f81 /gis/pointcloud/postgresql9.5.patch
parentd93bb82d8b24691d901a4760cd6ad3d2085f798f (diff)
downloadslackbuilds-59b76a143ffe333cc692d01d25c0324c756f377f.tar.gz
gis/pointcloud: Fix build against postgresql 9.5.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'gis/pointcloud/postgresql9.5.patch')
-rw-r--r--gis/pointcloud/postgresql9.5.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/gis/pointcloud/postgresql9.5.patch b/gis/pointcloud/postgresql9.5.patch
new file mode 100644
index 0000000000..a1c21765a7
--- /dev/null
+++ b/gis/pointcloud/postgresql9.5.patch
@@ -0,0 +1,19 @@
+--- pointcloud-1.0.1/pgsql/pc_access.c.orig 2016-02-07 08:01:10.553181345 +0700
++++ pointcloud-1.0.1/pgsql/pc_access.c 2016-02-07 08:01:39.528225276 +0700
+@@ -313,15 +313,7 @@
+ (errcode(ERRCODE_INVALID_PARAMETER_VALUE),
+ errmsg("could not determine input data type")));
+
+- if (fcinfo->context && IsA(fcinfo->context, AggState))
+- {
+- aggcontext = ((AggState *) fcinfo->context)->aggcontext;
+- }
+- else if (fcinfo->context && IsA(fcinfo->context, WindowAggState))
+- {
+- aggcontext = ((WindowAggState *) fcinfo->context)->aggcontext;
+- }
+- else
++ if ( ! AggCheckCallContext(fcinfo, &aggcontext) )
+ {
+ /* cannot be called directly because of dummy-type argument */
+ elog(ERROR, "pointcloud_agg_transfn called in non-aggregate context");