PostGRESQL Data Driver

Information

Loads point-data from Postgres databases.

The database is expected to be in a one-value-per-row format, as shown in the examples below.

Driver InfoDetail
Driver Type:History
Platforms:All

Performance Notes

We suggest you avoid using a relational database for high-speed time series data - unless you're using the Timescale addon.

If you are using an SQL database rather than a dedicated time-series database, you may need to ensure your tables contain appropriate keys.

You should have a key that includes both the Lookup Field and the Date Stamp, and vice-versa. This will make queries significantly faster, particularly if you are querying large amounts of data.

Driver Settings

History drivers have the following options

OptionDescription
HostThe IP address or host name of your MSSQL server
PortThe TCP port to connect to
DatabaseThe name of the MySQL database
UsernameThe username to login as. Must have read access to the table.
PasswordThe password to go with the username above
TableThe database table to query
Lookup FieldThe field that contains the point name
Date StampThe field that contains the timestamp for the record (optional)
ValueThe field that contains the value for the record
FilterAn SQL filter you might want to add to the query (optional)
Date FormatThe format the date is stored/communicated in. Almost always 'Timestamp'
Date DistributionSee the section on Scattered vs Synchronised Data Sources
TimezoneThe timezone all date stamps are stored in