LedgerPG setup · Updated October 26, 2026
Connect once. Then sign in to LedgerPG.
An administrator sets up the database connection for each desktop user. LedgerPG can then reconnect automatically, while each employee continues to use their own LedgerPG name and password.
Have an administrator ready for the first connection.
Use the LedgerPG build with Set up app account on its connection screen. PostgreSQL must already be running, the Ledger company database must exist, and this computer must be allowed to connect to the server. This step connects to an existing company; it does not install PostgreSQL or create a company database.
- The server address, port, company database name, and SSL mode from your administrator.
- A PostgreSQL administrator login, commonly named postgres, and its current password.
- An available, unlocked Linux desktop keyring for remembering the application login.
- Your separate LedgerPG employee name and password for the accounting sign-in.
Set up the connection in five steps.
- Open LedgerPG. The first launch shows Connect to your database. Enter the server address, port, database name, and SSL mode supplied by your administrator. Use localhost only when PostgreSQL is on this same computer.
- Enter the PostgreSQL administrator login. Have the administrator enter the username and current server password directly in this form.
- Keep “Remember app login in the desktop keyring” checked. Unlock your desktop keyring if it asks. The saved credential belongs to this desktop user.
- Select “Set up app account”. LedgerPG creates a separate application role inside PostgreSQL, generates its password, saves that password in the keyring, and connects. You do not need to create this role manually in pgAdmin or DBeaver. The administrator password is not saved.
- Sign in to LedgerPG. At the accounting login, enter your LedgerPG employee credentials. These are separate from the PostgreSQL login. Ask your LedgerPG administrator to create an employee account if you do not have one.
Use Set up app account for this first administrator setup. Connect signs in with the database account currently entered; using it with an administrator account does not enable remembered administrator access.
After setup, use your employee login.
On later launches, LedgerPG tries the saved application connection first. When the server is reachable and the keyring is available, the connection form is skipped and the normal LedgerPG sign-in follows. Employees do not need the PostgreSQL administrator password.
- PostgreSQL application role
- Lives on the database server and lets LedgerPG access the company data. Its generated password is held in the desktop keyring, not the settings INI file.
- LedgerPG employee account
- Identifies the person using the accounting application and controls their access through LedgerPG’s own user settings.
Repeat administrator setup for another desktop user or workstation. Existing PostgreSQL accounts and passwords are not overwritten; additional setup creates a separately named application account. Changing the PostgreSQL administrator password does not change the generated application password or employee passwords.
If the connection screen appears again.
Installing the update alone does not save a connection. If the PostgreSQL user still shows postgres, complete the one-time Set up app accountstep above. After successful setup, close and reopen LedgerPG to check that it goes directly to the employee sign-in.
- The keyring is locked or unavailable
- Unlock your desktop keyring and restart LedgerPG. If PG reports that it could not save the password, resolve the keyring problem before repeating setup.
- The server connection fails
- Check that PostgreSQL is running and that the network, server address, port, database name, SSL settings, and database login are correct. Ask the administrator to check server access if these details have not changed.
- The employee sign-in fails
- Use your LedgerPG employee name and password. A PostgreSQL server password will not replace them; ask the LedgerPG administrator to check your employee account.
For the administrator.
The application role is not a PostgreSQL superuser and cannot manage server accounts. It has company-table access, permission to initialize workspace tables, and permission to create databases because LedgerPG verifies backups by restoring them into a temporary database. Employee permissions remain managed inside LedgerPG.