PostGIS  3.4.0dev-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 140
10 #define POSTGIS_PGSQL_HR_VERSION 14.0
11 #define POSTGIS_GEOS_VERSION 31300
12 #define POSTGIS_PROJ_VERSION 72
13 #define POSTGIS_LIB_VERSION '3.4.0dev'
14 #define POSTGIS_LIBXML2_VERSION 2.9.14
15 #define POSTGIS_SFCGAL_VERSION 10308
16 
17 
18 /*
19  * High costs can only be used for PostGIS 3/PgSQL 12
20  * where the support functions have been used in
21  * place of index SQL inlining.
22  * See https://trac.osgeo.org/postgis/ticket/3675
23  * for sideffects of costing inlined SQL.
24  */
25 #if POSTGIS_PGSQL_VERSION >= 120
26 #define _COST_DEFAULT COST 1
27 #define _COST_LOW COST 50
28 #define _COST_MEDIUM COST 250
29 #define _COST_HIGH COST 5000
30 #else
31 #define _COST_DEFAULT COST 1
32 #define _COST_LOW COST 1
33 #define _COST_MEDIUM COST 10
34 #define _COST_HIGH COST 10
35 #endif
36 
37 /*
38  * Define the build date and the version number
39  * (these substitiutions are done with extra quotes sinces CPP
40  * won't substitute within apostrophes)
41  */
42 #define _POSTGIS_SQL_SELECT_POSTGIS_VERSION 'SELECT ''3.4 USE_GEOS=1 USE_PROJ=1 USE_STATS=1''::text AS version'
43 #define _POSTGIS_SQL_SELECT_POSTGIS_BUILD_DATE 'SELECT ''2023-08-12 00:05:25''::text AS version'
44 #define _POSTGIS_SQL_SELECT_POSTGIS_PGSQL_VERSION 'SELECT ''140''::text AS version'
45 
46 #ifdef POSTGIS_REVISION
47 /*
48 * Insert the PostGIS revision. This is immensely goofy because FreeBSD doesn't recognized
49 * PostGIS_REVISION as a variable if anything like ` or $rev$ (sql dollar quoting) abutts it so we need to leave a space on both sides
50 * which means we need to then trim it to get rid of the extra spaces we added.
51 * Maybe someone smarter can come up with a less goofy solution that makes all OS happy
52 */
53 #define _POSTGIS_SQL_SELECT_POSTGIS_SCRIPTS_VERSION $$ SELECT trim('3.4.0dev'::text || $rev$ POSTGIS_REVISION $rev$) AS version $$
54 #else
55 #define _POSTGIS_SQL_SELECT_POSTGIS_SCRIPTS_VERSION $$ SELECT '3.4.0dev'::text AS version $$
56 #endif
57 
58 #define SRID_USR_MAX 998999
59 
60 #endif /* _LWPGIS_DEFINES */
61 
62