# Versi client psql yang terpasang di komputer kita
psql --version

# Versi server yang sedang berjalan saat ini
psql -X -c "SHOW server_version;"
