PostgreSQL Destination Reference | Stitch Documentation (2024)

An open-source relational database, PostgreSQL is a powerful and well-known system that has received recognition from both its users and the industry at large. Unlike some other database systems, PostgreSQL is completely customizable and yours to do with as you please (assuming, of course, that your instance is self-hosted).

For a more in-depth look at PostgreSQL, click here.

This guide serves as a reference for version 1 of Stitch’s PostgreSQL destination.

Details and features

  • Stitch features

  • Destination details

  • PostgreSQL pricing

Stitch features

High-level details about Stitch’s implementation of PostgreSQL, such as supported connection methods, availability on Stitch plans, etc.

Release status

Released

Stitch plan availability

All Stitch plans

Stitch supported regions
  • North America (AWS us-east-1)
  • Europe (AWS eu-central-1)

Operating regions determine the location of the resources Stitch uses to process your data. Learn more.

Supported versions

9.3 or higher

Connect API availability Supported

This version of the PostgreSQL destination can be created and managed using Stitch’s Connect API. Learn more.

SSH connections Supported

Stitch supports using SSH tunnels to connect to PostgreSQL destinations.

SSL connections Supported

Stitch will attempt to use SSL to connect by default. No additional configuration is needed.

VPN connections Unsupported

Virtual Private Network (VPN) connections may be implemented as part of a Premium plan. Contact Stitch Sales for more info.

Static IP addresses Supported

This version of the PostgreSQL destination has static IP addresses that can be whitelisted.

Default loading behavior

Upsert
Note: Append-Only loading will be used if all conditions for Upsert are not met. Learn more.

Nested structure support

Unsupported
Nested data structures will be flattened into relational objects. Learn more.

Destination details

Details about the destination, including object names, table and column limits, reserved keywords, etc.

Note: Exceeding the limits noted below will result in loading errors or rejected data.

Maximum record size

20MB

Table name length

63 characters

Column name length

59 characters

Maximum columns per table

250-1,600

Maximum table size

None

Maximum tables per database

100,000

Case sensitivity

Sensitive

Reserved keywords

Refer to the Reserved keywords documentation.

PostgreSQL pricing

Pricing for PostgreSQL depends on where your instance is hosted.

Replication

  • Replication process overview

  • Loading behavior

  • Primary Keys

  • Incompatible sources

Replication process overview

A Stitch replication job consists of three stages:

  • Step 1: Data extraction

  • Step 2: Preparation

  • Step 3: Loading

Step 1: Data extraction

Stitch requests and extracts data from a data source. Refer to the System overview guide for a more detailed explanation of the Extraction phase.

Step 2: Preparation

During this phase, the extracted data is buffered in Stitch’s durable, highly available internal data pipeline and readied for loading. Refer to the System overview guide for a more detailed explanation of the Preparation phase.

Step 3: Loading

Stitch loads the data into PostgreSQL.

Loading behavior

By default, Stitch will use Upsert loading when loading data into PostgreSQL.

If the conditions for Upsert loading aren’t met, data will be loaded using Append-Only loading.

Refer to the Understanding loading behavior guide for more info and examples.

Primary Keys

Stitch requires Primary Keys to de-dupe incrementally replicated data. When tables are created in the destination, Stitch will apply Primary Key constraints to columns used as Primary Keys. Primary Key constraints require that column values be unique and not null.

Incompatible sources

The PostgreSQL destination has reported incompatibilities with some of Stitch's integrations. Refer to the table below for more info.

IntegrationVersionLevelReason
HubSpotANY

Flattening nested JSON structures may result in tables and columns with names that exceed PostgreSQL’s character limit for object names:

  • 63 characters characters for tables
  • 59 characters characters for columns
StripeANY

Flattening nested JSON structures may result in tables and columns with names that exceed PostgreSQL’s character limit for object names:

  • 63 characters characters for tables
  • 59 characters characters for columns

See all destination and integration incompatibilities.

Transformations

  • System tables and columns

  • Data typing

  • JSON structures

  • Column names

  • Timezones

System tables and columns

Stitch will create the following tables in each integration’s dataset:

  • _sdc_rejected

Additionally, Stitch will insert system columns (prepended with _sdc) into each table.

Data typing

Stitch converts data types only where needed to ensure the data is accepted by PostgreSQL. In the table below are the data types Stitch supports for PostgreSQL destinations, and the Stitch types they map to.

  • Stitch type: The Stitch data type the source type was mapped to. During the Extraction and Preparing phases, Stitch identifies the data type in the source and then maps it to a common Stitch data type.
  • Destination type: The destination-compatible data type the Stitch type maps to. This is the data type Stitch will use to store data in PostgreSQL.
  • Notes: Details about the data type and/or its allowed values in the destination, if available. If a range is available, values that exceed the noted range will be rejected by PostgreSQL.
Stitch typeDestination typeNotes
BIGINTBIGINT
  • Range :-9223372036854775808 to 9223372036854775807

BOOLEANBOOLEAN
DATETIMESTAMP
  • Description: Stored in UTC

  • Range :4713 BC to 294276 AD

DOUBLEDOUBLE PRECISION
FLOATDOUBLE PRECISION
INTEGERINTEGER
  • Range :-2147483648 to +2147483647

NUMBERDECIMAL
  • Range :Up to 131,072 digits before the decimal; up to 16,383 digits after

STRINGTEXT
  • Description: No maximum length. No widening will occur if the string length changes.

JSON structures

PostgreSQL destinations don’t have native support for nested data structures. To ensure nested data can be loaded, Stitch will flatten objects and arrays into columns and subtables, respectively. For more info and examples, refer to the Handling nested data structures guide.

Column names

Column names in PostgreSQL:

  • Must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_)
  • Must begin with a letter or underscore
  • Must be less than the maximum length of 59 characters. Columns that exceed this limit will be rejected by PostgreSQL.

  • Must not be prefixed or suffixed with any of PostgreSQL’s or Stitch’s reserved keyword prefixes or suffixes

Stitch will perform the following transformations to ensure column names adhere to the rules imposed by PostgreSQL:

Transformation Source column Destination column
Remove special characters customer#id or !CuStoMeRId customerid and CuStoMeRId
Remove non-letter leading characters 4customerid or _customerid customerid

Timezones

PostgreSQL will store the value as TIMESTAMP WITH TIMEZONE. In PostgreSQL, this data is stored with timezone information and expressed as UTC.

Compare destinations

Not sure if PostgreSQL is the data warehouse for you? Check out the Choosing a Stitch Destination guide to compare each of Stitch’s destination offerings.

Related Troubleshooting
  • Choosing a Destination
  • Loading Data into Your Destination
  • Switching Destinations
  • Destination Connection Errors

Questions? Feedback?

Did this article help? If you have questions or feedback, feel free to submit a pull request with your suggestions, open an issue on GitHub, or reach out to us.

PostgreSQL Destination Reference | Stitch Documentation (2024)
Top Articles
Drones: Friend or Foe? | UT Permian Basin Online
Ways to buy cryptocurrency | Fidelity
Unit 30 Quiz: Idioms And Pronunciation
Chicago Neighborhoods: Lincoln Square & Ravenswood - Chicago Moms
Dollywood's Smoky Mountain Christmas - Pigeon Forge, TN
Dew Acuity
Top Scorers Transfermarkt
Phone Number For Walmart Automotive Department
Call Follower Osrs
27 Places With The Absolute Best Pizza In NYC
Noaa Weather Philadelphia
Produzione mondiale di vino
Music Archives | Hotel Grand Bach - Hotel GrandBach
Monticello Culver's Flavor Of The Day
Bill Devane Obituary
Lantana Blocc Compton Crips
Thayer Rasmussen Cause Of Death
Brutál jó vegán torta! – Kókusz-málna-csoki trió
Premier Reward Token Rs3
Lesson 8 Skills Practice Solve Two-Step Inequalities Answer Key
Echat Fr Review Pc Retailer In Qatar Prestige Pc Providers – Alpha Marine Group
Everything We Know About Gladiator 2
Vipleaguenba
Lcwc 911 Live Incident List Live Status
Nordstrom Rack Glendale Photos
Walgreens Tanque Verde And Catalina Hwy
Gopher Hockey Forum
Ubg98.Github.io Unblocked
Is A Daytona Faster Than A Scat Pack
Diakimeko Leaks
Bjerrum difference plots - Big Chemical Encyclopedia
Play It Again Sports Norman Photos
Costco Gas Hours St Cloud Mn
Ihub Fnma Message Board
Sadie Sink Reveals She Struggles With Imposter Syndrome
Craigslist Comes Clean: No More 'Adult Services,' Ever
Amazing Lash Bay Colony
Rogold Extension
Missing 2023 Showtimes Near Mjr Southgate
Vlocity Clm
The Ultimate Guide to Obtaining Bark in Conan Exiles: Tips and Tricks for the Best Results
Roch Hodech Nissan 2023
Kokomo Mugshots Busted
24 slang words teens and Gen Zers are using in 2020, and what they really mean
Rogers Centre is getting a $300M reno. Here's what the Blue Jays ballpark will look like | CBC News
Scarlet Maiden F95Zone
Craigslist Woodward
Kaamel Hasaun Wikipedia
Walmart Listings Near Me
Mytmoclaim Tracking
WHAT WE CAN DO | Arizona Tile
One Facing Life Maybe Crossword
Latest Posts
Article information

Author: Clemencia Bogisich Ret

Last Updated:

Views: 5443

Rating: 5 / 5 (80 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Clemencia Bogisich Ret

Birthday: 2001-07-17

Address: Suite 794 53887 Geri Spring, West Cristentown, KY 54855

Phone: +5934435460663

Job: Central Hospitality Director

Hobby: Yoga, Electronics, Rafting, Lockpicking, Inline skating, Puzzles, scrapbook

Introduction: My name is Clemencia Bogisich Ret, I am a super, outstanding, graceful, friendly, vast, comfortable, agreeable person who loves writing and wants to share my knowledge and understanding with you.