PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches
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 150
10#define POSTGIS_PGSQL_HR_VERSION 15.0
11#define POSTGIS_GEOS_VERSION 31202
12#define POSTGIS_PROJ_VERSION 90600
13#define POSTGIS_LIB_VERSION '3.7.0dev'
14#define POSTGIS_LIBXML2_VERSION 2.9.14
15#define POSTGIS_SFCGAL_VERSION 20000
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#define _COST_DEFAULT COST 1
26#define _COST_LOW COST 50
27#define _COST_MEDIUM COST 250
28#define _COST_HIGH COST 5000
29
30/*
31 * Define the build date and the version number
32 * (these substitiutions are done with extra quotes sinces CPP
33 * won't substitute within apostrophes)
34 */
35#define _POSTGIS_SQL_SELECT_POSTGIS_VERSION 'SELECT ''3.7 USE_GEOS=1 USE_PROJ=1 USE_STATS=1''::text AS version'
36#define _POSTGIS_SQL_SELECT_POSTGIS_BUILD_DATE 'SELECT ''2025-12-08 12:05:24''::text AS version'
37#define _POSTGIS_SQL_SELECT_POSTGIS_PGSQL_VERSION 'SELECT ''150''::text AS version'
38
39#ifdef POSTGIS_REVISION
40/*
41* Insert the PostGIS revision. This is immensely goofy because FreeBSD doesn't recognized
42* PostGIS_REVISION as a variable if anything like ` or $rev$ (sql dollar quoting) abuts it so we need to leave a space on both sides
43* which means we need to then trim it to get rid of the extra spaces we added.
44* Maybe someone smarter can come up with a less goofy solution that makes all OS happy
45*/
46#define _POSTGIS_SQL_SELECT_POSTGIS_SCRIPTS_VERSION $$ SELECT trim('3.7.0dev'::text || $rev$ POSTGIS_REVISION $rev$) AS version $$
47#else
48#define _POSTGIS_SQL_SELECT_POSTGIS_SCRIPTS_VERSION $$ SELECT '3.7.0dev'::text AS version $$
49#endif
50
51#define SRID_USR_MAX 998999
52
53#endif /* _LWPGIS_DEFINES */
54
55