### Create a New PostgreSQL Connection

This dialog allows you to define the settings for a connection to a PostgreSQL database.

- Name A name to identify the connection settings.

- Service A name of a service listed in the Connection Service File.

- Host Name or IP address of the computer hosting the database server (leave blank for local connections or services).

- Port IP port used by the database server (leave blank for local connections or to use default port 5432).

- Database Name of the database (leave blank for default database).

- SSL mode SSL mode of the connection

- Username Database user name.
- Password Database password.

- Save Username Indicates whether to save the database user name in the connection configuration.

- Save Password Indicates whether to save the database password in the connection settings. Passwords are saved in clear text in the system configuration and in the project files!

- Only look in the geometry_columns table Indicates that only "listed" geometry columns should be used - opposed to scanning all tables for geometry columns.

- Only look in the 'public' schema Indicates that only tables in the 'public' schema should be considers - opposed to all accessible tables.

- Also list tables with no geometry Indicates that tables without geometry should also be listed by default.

- Use estimated table metadata When initializing layers, various queries may be needed to establish the characteristics of the geometries stored in the database table. When this option is checked, these queries examine only a sample of the rows and use the table statistics, rather than the entire table. This can drastically speed up operations on large datasets, but may result in incorrect characterization of layers (eg. the feature count of filtered layers will not be accurately determined).