PostGIS 3.6.2dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches
rtpg_legacy.c
Go to the documentation of this file.
1/**********************************************************************
2 *
3 * PostGIS - Spatial Types for PostgreSQL
4 * http://postgis.net
5 *
6 * PostGIS is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * PostGIS is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with PostGIS. If not, see <http://www.gnu.org/licenses/>.
18 *
19 **********************************************************************
20 *
21 * Copyright (C) 2018 Regina Obe <lr@pcorp.us>
22 * Copyright (C) 2020 Darafei Praliaskouski <me@komzpa.net>
23 *
24 **********************************************************************/
25
26/******************************************************************************
27 * This file is to hold functions we no longer use,
28 * but we need to keep because they were used at one time behind SQL API functions.
29 * This is to ease pg_upgrade upgrades
30 *
31 * All functions in this file should throw an error telling the user to upgrade
32 * the install
33 *
34 *****************************************************************************/
35
36#include <postgres.h>
37#include <fmgr.h>
38
39#include "rtpostgis.h"
40
41/* Removed in PostGIS 2.5.0 */
42Datum RASTER_to_binary(PG_FUNCTION_ARGS);
44Datum RASTER_to_binary(PG_FUNCTION_ARGS)
45{
46 elog(ERROR, "RASTER_to_binary: This function is out of date. Run: ALTER EXTENSION postgis UPDATE; SELECT PostGIS_Extensions_Upgrade();");
47}
48
49/* Removed in PostGIS 3.1.0 */
51Datum RASTER_histogramCoverage(PG_FUNCTION_ARGS)
52{
53 elog(ERROR, "RASTER_histogramCoverage: This function is out of date. Run: ALTER EXTENSION postgis UPDATE; SELECT PostGIS_Extensions_Upgrade();");
54}
55
57Datum RASTER_quantileCoverage(PG_FUNCTION_ARGS)
58{
59 elog(ERROR, "RASTER_quantileCoverage: This function is out of date. Run: ALTER EXTENSION postgis UPDATE; SELECT PostGIS_Extensions_Upgrade();");
60}
Datum RASTER_to_binary(PG_FUNCTION_ARGS)
Definition rtpg_legacy.c:44
PG_FUNCTION_INFO_V1(RASTER_to_binary)
Datum RASTER_histogramCoverage(PG_FUNCTION_ARGS)
Definition rtpg_legacy.c:51
Datum RASTER_quantileCoverage(PG_FUNCTION_ARGS)
Definition rtpg_legacy.c:57