Report types v4
Local/full PostgreSQL report
This type of report is useful when the server has a PostgreSQL cluster that's up, running, and accessible. In addition to all information that's gathered in the system-only report, it also gathers configurations and metrics from the PostgreSQL instance.
For this report, you need to run Lasso as the postgres or enterprisedb user.
Important
The same user that runs the Postgres server process must run the command. The user must have permission to write in the current working directory.
A standard Lasso run consists of:
By default, Lasso tries to connect using Unix sockets, the default Postgres port (5432), the default database, and the user name (postgres). You can specify different values at the command line:
By default, Lasso looks for a Unix socket under /var/run/postgresql/
,
but you can specify any socket listed by
SHOW unix_socket_directories
using the -H
argument. For example,
usually a Lasso report for the EDB Postgres Advanced Server is
gathered with:
If a password is required, it's a common practice to create a ~/.pgpass
file for the postgres or enterprisedb operating system user. You can
find more details about the .pgpass
file in the PostgreSQL
documentation.
As Lasso connects to the database using libpq
, then Lasso uses the
.pgpass
file as appropriate.
If the .pgpass
file isn't found or a corresponding entry for the
database connection doesn't exist in the .pgpass
file, then Lasso
prompts for a password. Alternatively, you can specify a password using
the PGPASSWORD
environment variable:
On Windows, typically you run Lasso like this: