Skip to content
Beltr documentation home
beltr.ai

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.

  1. In Sources, choose Add source, then PostgreSQL and Continue.
  2. Enter a Name, the Host and the Port (5432 unless you change it), the Database and the User.
  3. 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.
  4. 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.
  5. Choose Test connection and read the report beside the form.
  6. When the test has passed, choose Continue. Check the connection under Save the source and choose Save.

You should see

You should see the overview of the new source, where Beltr starts looking at what is in it.
The connection step of a new PostgreSQL source: the fields Name, Host, Port with 5432, Database, User and Password, Encryption set to Verify the server (sslmode = verify-full), CA certificate with Choose file, and on the right the connection test waiting with its five checks.
The connection step of a new PostgreSQL source: the fields Name, Host, Port with 5432, Database, User and Password, Encryption set to Verify the server (sslmode = verify-full), CA certificate with Choose file, and on the right the connection test waiting with its five checks.
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.”

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.

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.