Skip to content

Commit 1d2b0c0

Browse files
authored
Merge pull request #369 from segmentio/repo-sync
repo sync
2 parents f2a2d50 + 9c34687 commit 1d2b0c0

File tree

1 file changed

+16
-36
lines changed
  • src/connections/storage/catalog/postgres

1 file changed

+16
-36
lines changed

src/connections/storage/catalog/postgres/index.md

Lines changed: 16 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -8,64 +8,44 @@ PostgreSQL, or Postgres, is an object-relational database management system (ORD
88

99
PostgreSQL is ACID-compliant and transactional. PostgreSQL has updatable views and materialized views, triggers, foreign keys; supports functions and stored procedures, and other expandability. Developed by the PostgreSQL Global Development Group, free and open-source.
1010

11+
> note "Segment sources required"
12+
> In order to add a Postgres destination to Segment, you must first add a source. To learn more about sources in Segment, check out the [Sources Overview](/docs/connections/sources) documentation.
13+
1114
## Getting started
1215
Segment supports the following Postgres database providers:
1316
- [Heroku](#heroku-postgres)
1417
- [RDS](#rds-postgres)
1518
- [Compose](#compose-postgres)
1619

1720
> warning ""
18-
> Segment supports only these Postgres databases. Postgres databases from other providers are not guaranteed to work. For questions or concerns, contact [Segment Support](https://segment.com/help/contact){:target="_blank"}
21+
> Segment supports only these Postgres databases. Postgres databases from other providers are not guaranteed to work. For questions or concerns about Segment-supported Postgres providers, contact [Segment Support](https://segment.com/help/contact){:target="_blank"}.
1922
2023
## Heroku Postgres
2124

2225
This guide explains how to set up a Postgres database with Heroku. Heroku is a cloud-based platform-as-a-service which simplifies the process of setting up and administering a Postgres database.
2326

24-
1. Sign up for a Heroku account.
25-
26-
The first step to setting up Postgres on Heroku is to get a Heroku account. You can sign up for a free account [here](https://signup.heroku.com/identity){:target="_blank"}.
27-
28-
2. Log in to your Heroku account.
29-
30-
You can log in to Heroku [here](https://id.heroku.com/login){:target="_blank"}.
31-
32-
3. Create a new app and go to the Data page.
33-
34-
To get to the Data page, in the Dashboard menu dropdown, select Data.
35-
36-
![](images/heroku1.png)
37-
38-
4. Create a Database.
39-
40-
From the **Data** page, find the Heroku Postgres heading and click **Create one**.
41-
42-
<img src="images/heroku2.png" width="300">
43-
44-
5. Choose your plan.
45-
46-
When you click **Create Database**, a modal appears with your plan choices. Depending on your needs, some plans may be more suitable than others - for example, more expensive plans generally have better performance and more storage. Segment recommends that new customers start with the "Standard 4" plan.
47-
48-
For the fastest sync times, choose the US East region.
27+
> info "First sync duration"
28+
> The initial sync between Segment and Heroku Postgres can take up to 24 hours to complete.
4929
50-
After you configure these settings, click "Login to Install" and/or "Visit Heroku Dashboard to create your first app".
30+
1. [Sign up](https://signup.heroku.com/identity){:target="_blank"} for a Heroku account, or [log in](https://id.heroku.com/login){:target="_blank"} to an existing account.
5131

52-
![](images/heroku3.png)
32+
2. On the Heroku landing page, select **New** and click **Create new app**.
5333

54-
6. From your new app, go to the **Resources** tab and add the "Heroku Postgres" Add-on.
34+
3. Enter a name for your app and select the region where you want to host it. If you want to add your app to a Heroku pipeline, do so here. When you've finished updating your app's settings, click **Create app**.
5535

56-
![](images/heroku4.png)
36+
4. On the Deploy page, select the Resources tab.
5737

58-
7. Click **Provision** and wait for the database provisioning to complete
38+
5. On the Resources page, enter "Heroku Postgres" in the search bar. Select the billing plan that you want to use for this app and click **Submit Order Form**. Segment recommends that customers start with a Standard 4 plan. _Learn more about plan pricing on the [Heroku Postgres pricing page](https://www.heroku.com/pricing#data-services){:target="_blank"}._
5939

60-
Click the "Heroku Postgres :: Database". The database should shift into the Available state.
40+
6. Select the Heroku Postgres add-on you created in the previous step and open the Settings tab. Click the **View Credentials...** button and copy the host, database, user, and password values. You will need this information to connect your database to Segment in a later step.
6141

62-
![](images/heroku5.png)
42+
7. Open the Segment app. On the Overview page, click **Add Destination**.
6343

64-
8. View the database overview and settings.
44+
8. Search for and select the Postgres destination.
6545

66-
Click the tabs to see the database overview and settings. Click **Settings > View credentials** and save these settings for the next steps of the connection process.
46+
9. Choose the source(s) you'd like to connect to Postgres, and click **Next**.
6747

68-
![](images/heroku6.png)
48+
10. Enter the host, database, user, and password values you copied from Heroku in an earlier step, and click **Connect**. If Segment connected to your destination, you'll see the Next Steps screen. If you receive an "Invalid database" error, check that your host, database, user, and password fields match the credentials found in the Settings tab of your Heroku Postgres instance.
6949

7050
## RDS Postgres
7151

0 commit comments

Comments
 (0)