GoodData-PostgreSQL Integration Details

When setting up direct data distribution from your PostgreSQL database, pay attention to the considerations and best practices listed in this article.

This article is applicable to all use cases of GoodData and PostgreSQL integration:

Ports Used

You can use any port from within the range of 1024-65535.

User Access Rights

We recommend that you grant the following access rights to the user who is referenced in Data Sources:

GRANT CONNECT ON DATABASE {database_name} TO {role_name};
GRANT USAGE ON SCHEMA {schema_name} TO {role_name};
GRANT SELECT ON ALL TABLES IN SCHEMA {schema_name} TO {role_name};
GRANT {role_name} TO {user_name};

Data Types

During mapping the PostgreSQL schema and the GoodData logical data model (LDM), data types are automatically converted from a PostgreSQL data type to a GoodData LDM data type. Only the PostgreSQL data types listed in the table are supported. If you want to prevent automatic changes, update the schema manually.

PostgreSQL Data TypeGoodData LDM Data Type
bigintINT
booleanBOOLEAN
charVARCHAR(1)
dateDATE
decimalDECIMAL(12,2)
double precisionDECIMAL(12,2)
numericDECIMAL(12,2)
realDECIMAL(12,2)
smallintINT
textVARCHAR (10000)
timestampTIMESTAMP
varcharVARCHAR (10000)
varchar(n)VARCHAR(n)

Materialized Views

Materialized views are supported. They appear in the list of available tables in the LDM Modeler alongside regular tables or views, and are included in the schema scanning.