From 869157721bfa1253c3ca0c551027e3142a0ff7f1 Mon Sep 17 00:00:00 2001 From: Alex Kwak Date: Fri, 8 Oct 2021 14:52:52 +0900 Subject: [PATCH] fix(agens): Modify the version description for identify AgensGraph. --- src/bin/agens/command.c | 7 ++++--- src/bin/agens/startup.c | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/bin/agens/command.c b/src/bin/agens/command.c index ae0efc65043..a2e16a7a236 100644 --- a/src/bin/agens/command.c +++ b/src/bin/agens/command.c @@ -3301,12 +3301,13 @@ connection_warnings(bool in_startup) server_version = sverbuf; } - printf(_("%s (%s, server %s)\n"), - pset.progname, PG_VERSION, server_version); + printf(_("%s (AgensGraph %s, Based on PostgreSQL %s, server %s)\n"), + pset.progname, AG_VERSION, PG_VERSION, server_version); } /* For version match, only print psql banner on startup. */ else if (in_startup) - printf("%s (%s)\n", pset.progname, PG_VERSION); + printf("%s (AgensGraph %s, based on PostgreSQL %s)\n", pset.progname, + AG_VERSION, PG_VERSION); if (pset.sversion / 100 > client_ver / 100) printf(_("WARNING: %s major version %s, server major version %s.\n" diff --git a/src/bin/agens/startup.c b/src/bin/agens/startup.c index 1a361d6766e..39b67e31488 100644 --- a/src/bin/agens/startup.c +++ b/src/bin/agens/startup.c @@ -789,7 +789,7 @@ process_psqlrc_file(char *filename) static void showVersion(void) { - puts("psql (PostgreSQL) " PG_VERSION); + puts("agens (AgensGraph) " AG_VERSION); }