From 46651ce6fe013220ed397add242004d764fc0153 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 4 May 2024 14:15:05 +0200 Subject: Adding upstream version 14.5. Signed-off-by: Daniel Baumann --- src/backend/utils/adt/version.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/backend/utils/adt/version.c (limited to 'src/backend/utils/adt/version.c') diff --git a/src/backend/utils/adt/version.c b/src/backend/utils/adt/version.c new file mode 100644 index 0000000..7e70498 --- /dev/null +++ b/src/backend/utils/adt/version.c @@ -0,0 +1,24 @@ +/*------------------------------------------------------------------------- + * + * version.c + * Returns the PostgreSQL version string + * + * Copyright (c) 1998-2021, PostgreSQL Global Development Group + * + * IDENTIFICATION + * + * src/backend/utils/adt/version.c + * + *------------------------------------------------------------------------- + */ + +#include "postgres.h" + +#include "utils/builtins.h" + + +Datum +pgsql_version(PG_FUNCTION_ARGS) +{ + PG_RETURN_TEXT_P(cstring_to_text(PG_VERSION_STR)); +} -- cgit v1.2.3