DEV Community

Paul Lefebvre
Paul Lefebvre

Posted on

Quick Tip: Get PostgreSQL version

I ran into this the other day and thought it might be worth a quick tip. I had a need to figure out what version of PostgreSQL was running on a server. It turns out you can easily get this information with a quick database query:

SELECT version();
Enter fullscreen mode Exit fullscreen mode

I hope this helps someone.

Top comments (0)