Load data from PostgreSQL
This section describes how to connect PostgreSQL with Exasol and then load data.
To view details about data type mappings or to migrate data, see the PostgreSQL to Exasol migration script in our GitHub repository.
Add JDBC Driver
To add the JDBC driver, create a configuration file called settings.cfg
with the following settings:
Follow the procedure described in Add JDBC Driver to upload the settings.cfg
configuration and JDBC driver files to Exasol.
Run statement
Run the following statement to create a connection.
CREATE OR REPLACE CONNECTION JDBC_POSTGRESQL
TO 'jdbc:postgresql://192.168.99.100:5432/my_db'
USER 'username'
IDENTIFIED BY 'Exasoltest';
Run the following statement to test the connection.
Load data
You can use the IMPORT statement to load data using the connection you created above. IMPORT supports loading data from a table or a SQL statement.
To view details about data type mappings or to migrate data, see the PostgreSQL to Exasol migration script in our GitHub repository.