PostGIS
3.0.6dev-r@@SVN_REVISION@@
sqldefines.h
Go to the documentation of this file.
1
#ifndef _LWPGIS_DEFINES
2
#define _LWPGIS_DEFINES
3
4
#include "../postgis_revision.h"
5
6
/*
7
* Define just the version numbers; otherwise we get some strange substitutions in postgis.sql.in
8
*/
9
#define POSTGIS_PGSQL_VERSION 96
10
#define POSTGIS_PGSQL_HR_VERSION 9.6
11
#define POSTGIS_GEOS_VERSION 38
12
#define POSTGIS_PROJ_VERSION 72
13
#define POSTGIS_LIB_VERSION '3.0.12dev'
14
#define POSTGIS_LIBXML2_VERSION 2.9.14
15
#define POSTGIS_SFCGAL_VERSION 10308
16
17
#if POSTGIS_PGSQL_VERSION >= 96
18
#define _PARALLEL PARALLEL SAFE
19
#define _PARALLEL_RESTRICTED PARALLEL RESTRICTED
20
#else
21
#define _PARALLEL
22
#define _PARALLEL_RESTRICTED
23
#endif
24
25
/*
26
* High costs can only be used for PostGIS 3/PgSQL 12
27
* where the support functions have been used in
28
* place of index SQL inlining.
29
* See https://trac.osgeo.org/postgis/ticket/3675
30
* for sideffects of costing inlined SQL.
31
*/
32
#if POSTGIS_PGSQL_VERSION >= 120
33
#define _COST_DEFAULT COST 1
34
#define _COST_LOW COST 100
35
#define _COST_MEDIUM COST 1000
36
#define _COST_HIGH COST 10000
37
#else
38
#define _COST_DEFAULT COST 1
39
#define _COST_LOW COST 1
40
#define _COST_MEDIUM COST 10
41
#define _COST_HIGH COST 10
42
#endif
43
44
/*
45
* Define the build date and the version number
46
* (these substitiutions are done with extra quotes sinces CPP
47
* won't substitute within apostrophes)
48
*/
49
#define _POSTGIS_SQL_SELECT_POSTGIS_VERSION 'SELECT ''3.0 USE_GEOS=1 USE_PROJ=1 USE_STATS=1''::text AS version'
50
#define _POSTGIS_SQL_SELECT_POSTGIS_BUILD_DATE 'SELECT ''2025-01-05 12:05:22''::text AS version'
51
#define _POSTGIS_SQL_SELECT_POSTGIS_PGSQL_VERSION 'SELECT ''96''::text AS version'
52
53
#ifdef POSTGIS_REVISION
54
#define _POSTGIS_SQL_SELECT_POSTGIS_SCRIPTS_VERSION $$ SELECT trim('3.0.12dev'::text || $rev$ POSTGIS_REVISION $rev$) AS version $$
55
#else
56
#define _POSTGIS_SQL_SELECT_POSTGIS_SCRIPTS_VERSION $$ SELECT '3.0.12dev'::text AS version $$
57
#endif
58
59
#define SRID_USR_MAX 998999
60
61
#endif
/* _LWPGIS_DEFINES */
62
63
postgis
sqldefines.h
Generated by
1.9.1