Select an appropriate command to check the PostgreSQL version in psql.
Suggested Answer: C
Get Premium PGCES-02 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
12 comments · newest first
AD
Adela
4 days ago
Wait, isn’t A) \server_version a thing too?
RO
Rosendo
9 days ago
I always use D) SHOW version;
HI
Hildred
14 days ago
B) SELECT version; is the right one!
LE
Leonora
19 days ago
I always use D) SHOW version, seems legit!
TA
Tamesha
24 days ago
Wait, can you really use SELECT version()?
MA
Marjory
29 days ago
A) \server_version is not a valid command, right?
RE
Reita
1 month ago
I thought it was D) SHOW version?
MA
Martina
1 month ago
B) SELECT version; is the right one!
GE
Gerald
2 months ago
I remember doing a similar question, and I think B is the most common way to get the version info.
MA
Maybelle
2 months ago
I feel like I've seen A somewhere, but it doesn't seem right for checking the version.
LE
Leonora
2 months ago
I practiced this recently, and I'm pretty sure D is the command to show the version in psql.
MA
Marguerita
2 months ago
I think it's either B or C, but I can't remember if SELECT version() is the right syntax.