Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

424
Views
What is the command to check the version of the postgresql jdbc driver on Linux command line?

I am working on Linux server with PostgreSQL that is installed through the command line.

How could I check the version of the PostgreSQL JDBC Driver using Linux command line?

I use this command psql -V and it shows the PostgreSQL version psql (PostgreSQL) 9.5.24, but I need the PostgreSQL JDBC Driver version. What is the command the should I use?

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

When you run:

java -jar /path/to/driver.jar

it will report its version.

Obviously you need to replace /path/to/driver.jar with the correct location where you stored the driver when you downloaded it.

By default the file name itself contains the version. So if you downloaded postgresql-42.2.19.jar then it's highly likely its version is 42.2.19


As a side note: psql -V prints the version of the command line tool. That's not necessarily the same version as the server.

over 4 years ago · Santiago Trujillo Report

0

From Java, you can use code like this:

java.sql.Driver d = new org.postgresql.Driver();
System.out.println(d.getMajorVersion() + "." + d.getMinorVersion());

See the documentation for details.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!