PostgreSQL Source Code  git master
version.c File Reference
#include "postgres.h"
#include "utils/builtins.h"
Include dependency graph for version.c:

Go to the source code of this file.


Datum pgsql_version (PG_FUNCTION_ARGS)

Function Documentation

◆ pgsql_version()

Datum pgsql_version ( PG_FUNCTION_ARGS  )

Definition at line 21 of file version.c.

22 {
23  PG_RETURN_TEXT_P(cstring_to_text(PG_VERSION_STR));
24 }
#define PG_RETURN_TEXT_P(x)
Definition: fmgr.h:372
text * cstring_to_text(const char *s)
Definition: varlena.c:184

References cstring_to_text(), and PG_RETURN_TEXT_P.