PGROUTING  3.2
_version.c File Reference
Include dependency graph for _version.c:

Go to the source code of this file.

Macros

#define UNUSED(x)   (void)(x)
 

Functions

PGDLLEXPORT Datum _pgr_boost_version (PG_FUNCTION_ARGS)
 
PGDLLEXPORT Datum _pgr_build_type (PG_FUNCTION_ARGS)
 
PGDLLEXPORT Datum _pgr_compilation_date (PG_FUNCTION_ARGS)
 
PGDLLEXPORT Datum _pgr_compiler_version (PG_FUNCTION_ARGS)
 
PGDLLEXPORT Datum _pgr_git_hash (PG_FUNCTION_ARGS)
 
PGDLLEXPORT Datum _pgr_lib_version (PG_FUNCTION_ARGS)
 
PGDLLEXPORT Datum _pgr_operating_system (PG_FUNCTION_ARGS)
 
PGDLLEXPORT Datum _pgr_pgsql_version (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (_pgr_boost_version)
 
 PG_FUNCTION_INFO_V1 (_pgr_build_type)
 
 PG_FUNCTION_INFO_V1 (_pgr_compilation_date)
 
 PG_FUNCTION_INFO_V1 (_pgr_compiler_version)
 
 PG_FUNCTION_INFO_V1 (_pgr_git_hash)
 
 PG_FUNCTION_INFO_V1 (_pgr_lib_version)
 
 PG_FUNCTION_INFO_V1 (_pgr_operating_system)
 
 PG_FUNCTION_INFO_V1 (_pgr_pgsql_version)
 

Macro Definition Documentation

◆ UNUSED

#define UNUSED (   x)    (void)(x)

Definition at line 30 of file _version.c.

Function Documentation

◆ _pgr_boost_version()

PGDLLEXPORT Datum _pgr_boost_version ( PG_FUNCTION_ARGS  )

Definition at line 44 of file _version.c.

44  {
45  UNUSED(fcinfo);
46  char *ver = BOOST_VERSION;
47  text *result = cstring_to_text(ver);
48  PG_RETURN_TEXT_P(result);
49 }

References BOOST_VERSION, and UNUSED.

◆ _pgr_build_type()

PGDLLEXPORT Datum _pgr_build_type ( PG_FUNCTION_ARGS  )

Definition at line 52 of file _version.c.

52  {
53  UNUSED(fcinfo);
54  char *ver = CMAKE_BUILD_TYPE;
55  text *result = cstring_to_text(ver);
56  PG_RETURN_TEXT_P(result);
57 }

References CMAKE_BUILD_TYPE, and UNUSED.

◆ _pgr_compilation_date()

PGDLLEXPORT Datum _pgr_compilation_date ( PG_FUNCTION_ARGS  )

Definition at line 60 of file _version.c.

60  {
61  UNUSED(fcinfo);
62  char *ver = COMPILATION_DATE;
63  text *result = cstring_to_text(ver);
64  PG_RETURN_TEXT_P(result);
65 }

References COMPILATION_DATE, and UNUSED.

◆ _pgr_compiler_version()

PGDLLEXPORT Datum _pgr_compiler_version ( PG_FUNCTION_ARGS  )

Definition at line 68 of file _version.c.

68  {
69  UNUSED(fcinfo);
70  char *ver = COMPILER_VERSION;
71  text *result = cstring_to_text(ver);
72  PG_RETURN_TEXT_P(result);
73 }

References COMPILER_VERSION, and UNUSED.

◆ _pgr_git_hash()

PGDLLEXPORT Datum _pgr_git_hash ( PG_FUNCTION_ARGS  )

Definition at line 76 of file _version.c.

76  {
77  UNUSED(fcinfo);
78  char *ver = PROJECT_GIT_HASH;
79  text *result = cstring_to_text(ver);
80  PG_RETURN_TEXT_P(result);
81 }

References PROJECT_GIT_HASH, and UNUSED.

◆ _pgr_lib_version()

PGDLLEXPORT Datum _pgr_lib_version ( PG_FUNCTION_ARGS  )

Definition at line 84 of file _version.c.

84  {
85  UNUSED(fcinfo);
86  char *ver = PROJECT_LIB_NAME;
87  text *result = cstring_to_text(ver);
88  PG_RETURN_TEXT_P(result);
89 }

References PROJECT_LIB_NAME, and UNUSED.

◆ _pgr_operating_system()

PGDLLEXPORT Datum _pgr_operating_system ( PG_FUNCTION_ARGS  )

Definition at line 92 of file _version.c.

92  {
93  UNUSED(fcinfo);
94  char *ver = CMAKE_SYSTEM_NAME;
95  text *result = cstring_to_text(ver);
96  PG_RETURN_TEXT_P(result);
97 }

References CMAKE_SYSTEM_NAME, and UNUSED.

◆ _pgr_pgsql_version()

PGDLLEXPORT Datum _pgr_pgsql_version ( PG_FUNCTION_ARGS  )

Definition at line 101 of file _version.c.

101  {
102  UNUSED(fcinfo);
103  char *ver = POSTGRES_VERSION;
104  text *result = cstring_to_text(ver);
105  PG_RETURN_TEXT_P(result);
106 }

References POSTGRES_VERSION, and UNUSED.

◆ PG_FUNCTION_INFO_V1() [1/8]

PG_FUNCTION_INFO_V1 ( _pgr_boost_version  )

◆ PG_FUNCTION_INFO_V1() [2/8]

PG_FUNCTION_INFO_V1 ( _pgr_build_type  )

◆ PG_FUNCTION_INFO_V1() [3/8]

PG_FUNCTION_INFO_V1 ( _pgr_compilation_date  )

◆ PG_FUNCTION_INFO_V1() [4/8]

PG_FUNCTION_INFO_V1 ( _pgr_compiler_version  )

◆ PG_FUNCTION_INFO_V1() [5/8]

PG_FUNCTION_INFO_V1 ( _pgr_git_hash  )

◆ PG_FUNCTION_INFO_V1() [6/8]

PG_FUNCTION_INFO_V1 ( _pgr_lib_version  )

◆ PG_FUNCTION_INFO_V1() [7/8]

PG_FUNCTION_INFO_V1 ( _pgr_operating_system  )

◆ PG_FUNCTION_INFO_V1() [8/8]

PG_FUNCTION_INFO_V1 ( _pgr_pgsql_version  )
COMPILER_VERSION
#define COMPILER_VERSION
Definition: _version.h:29
PROJECT_GIT_HASH
#define PROJECT_GIT_HASH
Definition: _version.h:31
COMPILATION_DATE
#define COMPILATION_DATE
Definition: _version.h:30
CMAKE_BUILD_TYPE
#define CMAKE_BUILD_TYPE
Definition: _version.h:28
CMAKE_SYSTEM_NAME
#define CMAKE_SYSTEM_NAME
Definition: _version.h:33
POSTGRES_VERSION
#define POSTGRES_VERSION
Definition: _version.h:34
BOOST_VERSION
#define BOOST_VERSION
Definition: _version.h:27
UNUSED
#define UNUSED(x)
Definition: _version.c:30
PROJECT_LIB_NAME
#define PROJECT_LIB_NAME
Definition: _version.h:32