This tutorial demonstrates how to connect to PostGIS from QGIS. To connect QGIS to a PostGIS database, use the Browser panel to create a new PostgreSQL connection. You’ll need to provide the host, port, database name, and a QGIS authentication configuration—not basic auth. Authentication settings are stored securely within your QGIS profile and include a username, password, and a shared Authentication ID to prevent “Unavailable Layer” errors across users. Once the credentials are configured, use the “Test Connection” button to verify access, then enable all relevant checkboxes and save. Your new PostGIS connection will appear under the PostgreSQL section in the QGIS Browser.

To connect to PostGIS from QGIS, follow these steps:

1. Open QGIS and make sure the Browser panel is open. 

2. In QGIS, right-click on PostgreSQL and click on “New Connection”. Enter the following parameters.