Skip to main content
This guide explains how to connect to PostgreSQL with Oxygen. PostgreSQL is a powerful, open-source object-relational database system.

Configuration Options

Add your PostgreSQL configuration to config.yml. Here are all available parameters:

Example Configurations

1

Prepare password environment variable

Export the environment variable:
Or put it in .env file:
2

Add PostgreSQL configuration

Troubleshooting

  • Test connection: psql -h localhost -U postgres -d mydb
  • Check server logs: /var/log/postgresql/postgresql-*.log
  • Common issues:
    • Wrong credentials
    • Incorrect pg_hba.conf configuration
    • Network/firewall restrictions
    • SSL certificate problems
  • Monitor performance: Use pg_stat_* views