PostgreSQL Source Code
git master
version.c
Go to the documentation of this file.
1
/*-------------------------------------------------------------------------
2
*
3
* version.c
4
* Returns the PostgreSQL version string
5
*
6
* Copyright (c) 1998-2024, PostgreSQL Global Development Group
7
*
8
* IDENTIFICATION
9
*
10
* src/backend/utils/adt/version.c
11
*
12
*-------------------------------------------------------------------------
13
*/
14
15
#include "
postgres.h
"
16
17
#include "
utils/builtins.h
"
18
19
20
Datum
21
pgsql_version
(
PG_FUNCTION_ARGS
)
22
{
23
PG_RETURN_TEXT_P
(
cstring_to_text
(PG_VERSION_STR));
24
}
pgsql_version
Datum pgsql_version(PG_FUNCTION_ARGS)
Definition:
version.c:21
builtins.h
PG_RETURN_TEXT_P
#define PG_RETURN_TEXT_P(x)
Definition:
fmgr.h:372
PG_FUNCTION_ARGS
#define PG_FUNCTION_ARGS
Definition:
fmgr.h:193
postgres.h
Datum
uintptr_t Datum
Definition:
postgres.h:64
cstring_to_text
text * cstring_to_text(const char *s)
Definition:
varlena.c:184
src
backend
utils
adt
version.c
Generated on Thu Dec 12 2024 18:13:23 for PostgreSQL Source Code by
1.9.1