Before you create a PostgreSQL workspace
The source and destination databases must exist before you connect to them. They should use the same version of PostgreSQL and must have the same extensions installed.
Use the following instructions to create database accounts that have the minimum required permissions that are needed for Tonic Structural to function.
Creating a source database account
The following is an example of how to create a new user, called tonic
, and grant the necessary permissions on the public
schema.
For the source database, we recommend that you use a backup instead of connecting directly to your production environment.
Creating a destination database account
The following is an example of how to create a new user, called tonic
, grant the user ownership of the public
schema, and make the user a superuser.
Configuring handling of infinity date and time values
Default behavior
By default, when Structural:
Displays data on the application
Processes data during data generation
It converts -infinity
and infinity
values in date or time columns to the closest representable date or time.
When Structural writes data to the destination:
It writes date or time values that are the maximum representable value, such as
9999-12-31
in a date column, asinfinity
.It writes date or time values that are the minimum representable value as
-infinity
.
Disabling the default behavior
You configure the setting in the Structural web server and worker.
When the setting is true
, then during data processing, Structural drops any source database rows that contain -infinity
or infinity
values.
Example
The source database contains a date
column with the values infinity
and 9999-12-31
.
By default, on the application and during data processing, both values appear as 9999-12-31
.
If no generator is applied, then in the destination database, both values are written as infinity
.
If the default behavior is disabled:
The row containing
infinity
is dropped.9999-12-31
is processed and written to the destination as9999-12-31
.
Last updated
Was this helpful?