PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
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.

Functions

Datum pgsql_version (PG_FUNCTION_ARGS)
 

Function Documentation

Datum pgsql_version ( PG_FUNCTION_ARGS  )

Definition at line 21 of file version.c.

References cstring_to_text(), and PG_RETURN_TEXT_P.

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