How to make Partitioned tables from PostgreSQL visible in Information Services data sources in Spotfire

How to make Partitioned tables from PostgreSQL visible in Information Services data sources in Spotfire

book

Article ID: KB0070435

calendar_today

Updated On:

Products Versions
Spotfire Server All

Description

This article explains how to make partitioned tables from PostgreSQL visible in an Information Services data source.

Issue/Introduction

How to make Partitioned tables from PostgreSQL visible in Information Services data sources in Spotfire

Environment

All

Resolution

To display the partitioned tables, you need to add the value 'PARTITIONED TABLE' in the <table-types> attribute in the data source template as shown below.

<jdbc-type-settings>
<type-name>postgreSQL</type-name>
<driver>org.postgresql.Driver</driver>
<connection-url-pattern>
jdbc:postgresql://&lt;host&gt;:&lt;port&gt;/database
</connection-url-pattern>
<ping-command>select version()</ping-command>
<supports-procedures>true</supports-procedures>
<table-types>TABLE,VIEW,MATERIALIZED VIEW,PARTITIONED TABLE</table-types>
<condition-list-threshold>10000</condition-list-threshold>
<date-literal-format-expression>{d ‘$$value$$‘}</date-literal-format-expression>
<time-literal-format-expression>{t ‘$$value$$‘}</time-literal-format-expression>
<date-time-literal-format-expression>{ts ‘$$value$$’}</date-time-literal-format-expression>
<use-ansii-style-outer-join>true</use-ansii-style-outer-join>
<sql-runtime>com.spotfire.ws.im.ds.sql.postgresql.PostgresSQLRuntime</sql-runtime>
<java-to-sql-type-conversions>
<type-mapping>
<from>Boolean</from>
<to>BOOLEAN</to>
</type-mapping>
</java-to-sql-type-conversions>
</jdbc-type-settings>

Note: For general information on how to how to work with Information Services data sources, please refer to the Spotfire Server and Environment - Installation and Administration guide:
https://docs.tibco.com/pub/spotfire_server/latest/doc/html/TIB_sfire_server_tsas_admin_help/server/topics/information_services.html
 
 

Additional Information

Doc: Information Services, Spotfire Server and Environment - Installation and Administration guide External: Connect to PostgreSQL as a JDBC Data Source