Header And Logo

PostgreSQL
| The world's most advanced open source database.

version.c

Go to the documentation of this file.
00001 /*-------------------------------------------------------------------------
00002  *
00003  * version.c
00004  *   Returns the PostgreSQL version string
00005  *
00006  * Copyright (c) 1998-2013, PostgreSQL Global Development Group
00007  *
00008  * IDENTIFICATION
00009  *
00010  * src/backend/utils/adt/version.c
00011  *
00012  *-------------------------------------------------------------------------
00013  */
00014 
00015 #include "postgres.h"
00016 
00017 #include "utils/builtins.h"
00018 
00019 
00020 Datum
00021 pgsql_version(PG_FUNCTION_ARGS)
00022 {
00023     PG_RETURN_TEXT_P(cstring_to_text(PG_VERSION_STR));
00024 }