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:

Contents:

Ports Used

By default, Data Sources connect to PostgreSQL databases via port 5432. You can use a different port from the following permitted ranges:

  • 5420-5450
  • 15420-15450
  • 25420-25450
    ...
  • 65420-65450

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)
Powered by Atlassian Confluence and Scroll Viewport.