Sources and data
Connect a PostgreSQL source
Add a PostgreSQL historian or database as a read-only source, choose how the connection is encrypted and test it before you save.
Beltr connects to PostgreSQL directly; no driver is needed. Ask your DBA for an account that can only read.
- In Sources, choose Add source, then PostgreSQL and Continue.
- Enter a Name, the Host and the Port (5432 unless you change it), the Database and the User.
- Enter the Password. The test uses it once, and Save stores it in the system
keychainKeychain The operating system's store for passwords and keys. Beltr keeps source passwords and model provider keys there. . It is never shown again. - Under Encryption, keep Verify the server (sslmode = verify-full) when you can. If the server’s certificate is not trusted by this computer, choose a CA certificate: a PEM file with your plant’s certificate authority, at most 1 MiB, outside Beltr’s workspace folders.
- Choose Test connection and read the report beside the form.
- When the test has passed, choose Continue. Check the connection under Save the source and choose Save.
You should see


Encryption
Section titled “Encryption”| Choice | What it means |
|---|---|
| Verify the server (sslmode = verify-full) | Encrypted. Beltr checks the server’s certificate and host name against this computer’s trusted certificates. |
| Encrypt without verifying the server (sslmode = require) | Encrypted, but the server’s identity is not verified. |
| Off (sslmode = disable) | Not encrypted. The form and the source warn: “Encryption is off for this connection. Use a trusted plant network.” |
What the test checks
Section titled “What the test checks”The report shows Connectivity, Server and version, Time zone, Sample read and Read-only posture. For a new source, Sample read is Skipped: discovery samples the tables instead.
Read-only session is Confirmed for PostgreSQL: “The server enforces a read-only session; every statement is checked by the guard.” If the account can change data, the report says This account can change data on the source and asks you to get a read-only account. You can still save; Beltr will only read.
On the Save the source step, Quality mapping sets how pulls read the source’s quality codes (Interpret source quality as). You can change it later under Reading rules.
Change the connection
Section titled “Change the connection”On the source’s line in Sources, open Connection details and choose Edit connection. When you change where the source points, such as the host, Beltr asks Change where name points? before it saves. Data already loaded stays, and you enter the password again, because the stored one is not used for a new place.