Print postgres version on start in a single-session mode

This commit is contained in:
Dan Sosedoff
2017-09-13 23:42:44 -05:00
parent 7832b5b8b8
commit af7e504e4f
2 changed files with 8 additions and 0 deletions

View File

@@ -79,6 +79,10 @@ func initClient() {
exitWithMessage(err.Error())
}
if !command.Opts.Sessions {
fmt.Printf("Server runs PostgreSQL v%s\n", cl.ServerVersion())
}
fmt.Println("Checking database objects...")
_, err = cl.Objects()
if err != nil {