Skip to content

Commit

Permalink
fix(agens): Modify the version description for identify AgensGraph.
Browse files Browse the repository at this point in the history
  • Loading branch information
emotionbug committed Oct 8, 2021
1 parent 243d110 commit 8691577
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/bin/agens/command.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/bin/agens/startup.c
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ process_psqlrc_file(char *filename)
static void
showVersion(void)
{
puts("psql (PostgreSQL) " PG_VERSION);
puts("agens (AgensGraph) " AG_VERSION);
}


Expand Down

0 comments on commit 8691577

Please sign in to comment.