From cc2eb0f75f42eab0e33b2400a110ecb99de0aaf1 Mon Sep 17 00:00:00 2001 From: Regina Obe Date: Sun, 23 Sep 2018 20:04:42 +0000 Subject: [PATCH] Stamp date of release. Put in legacy stub function for RASTER_to_binary to allow pg upgrade (newer lib) Closes #4097 git-svn-id: http://svn.osgeo.org/postgis/branches/2.5@16835 b70326c6-7e19-0410-871a-916f4a2858ee --- NEWS | 2 +- doc/release_notes.xml | 2 +- raster/rt_pg/rtpg_inout.c | 15 +++++++++++++++ 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 2e33420f4..6a95f9849 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,5 @@ PostGIS 2.5.0 -2018/09/XX +2018/09/23 WARNING: If compiling with PostgreSQL+JIT, LLVM >= 6 is required Supported PostgreSQL versions for this release are: PostgreSQL 9.4 - PostgreSQL 12 (in development) diff --git a/doc/release_notes.xml b/doc/release_notes.xml index 4bb7c52fa..9eef85fb4 100644 --- a/doc/release_notes.xml +++ b/doc/release_notes.xml @@ -4,7 +4,7 @@ Release Notes Release 2.5.0 - Release date: 2018/09/xx + Release date: 2018/09/23 If compiling with PostgreSQL+JIT, LLVM >= 6 is required Supported PostgreSQL versions for this release are: PostgreSQL 9.4 - PostgreSQL 12 (in development) diff --git a/raster/rt_pg/rtpg_inout.c b/raster/rt_pg/rtpg_inout.c index 5d0dce497..fffad768f 100644 --- a/raster/rt_pg/rtpg_inout.c +++ b/raster/rt_pg/rtpg_inout.c @@ -37,8 +37,23 @@ Datum RASTER_out(PG_FUNCTION_ARGS); Datum RASTER_to_bytea(PG_FUNCTION_ARGS); +/** obsolete as of 2.5.0 stubbing for smoother upgrade from 2.4 **/ +Datum RASTER_to_binary(PG_FUNCTION_ARGS); + Datum RASTER_noop(PG_FUNCTION_ARGS); +/** + * Legacy return error if called + * Removed in PostGIS 2.5.0 + */ +PG_FUNCTION_INFO_V1(RASTER_to_binary); +Datum RASTER_to_binary(PG_FUNCTION_ARGS) +{ + + elog(ERROR, "RASTER_to_binary: This function is out of date. Run ALTER EXTENSION postgis UPDATE; to fix"); + +} + /** * Input is Hex WKB * Used as the input function of the raster type -- 2.50.0