From 293913568e6a7a86fd1479e1cff8e2ecb58d6568 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 13 Apr 2024 15:44:03 +0200 Subject: Adding upstream version 16.2. 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..30edac5 --- /dev/null +++ b/src/backend/utils/adt/version.c @@ -0,0 +1,24 @@ +/*------------------------------------------------------------------------- + * + * version.c + * Returns the PostgreSQL version string + * + * Copyright (c) 1998-2023, 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