You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/connections/storage/catalog/postgres/index.md
+16-34Lines changed: 16 additions & 34 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,9 @@ PostgreSQL, or Postgres, is an object-relational database management system (ORD
8
8
9
9
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.
10
10
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 our [Sources Overview](/docs/connections/sources) documentation.
13
+
11
14
## Getting started
12
15
Segment supports the following Postgres database providers:
13
16
-[Heroku](#heroku-postgres)
@@ -21,51 +24,30 @@ Segment supports the following Postgres database providers:
21
24
22
25
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.
23
26
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
-

37
-
38
-
4. Create a Database.
39
-
40
-
From the **Data** page, find the Heroku Postgres heading and click **Create one**.
41
-
42
-
<imgsrc="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.
27
+
1. Sign up for a Heroku account. You can create a free account [on Heroku's website](https://signup.heroku.com/identity){:target="_blank"}.
47
28
48
-
For the fastest sync times, choose the US East region.
29
+
2.[Log in](https://id.heroku.com/login){:target="_blank"} to your Heroku account.
49
30
50
-
After you configure these settings, click "Login to Install" and/or "Visit Heroku Dashboard to create your first app".
31
+
3. On the landing page, select **Create new app**.
51
32
52
-

33
+
4. Add a name for your app and select the region where you want your host your app. If you have an existing pipeline that you want to add your app to, add it at this step. When you've finished updating your app's settings, click **Create app**.
53
34
54
-
6. From your new app, go to the **Resources** tab and add the "Heroku Postgres" Add-on.
35
+
5. On the Deploy page, select the **Resources** tab.
55
36
56
-

37
+
6. On the **Resources** page, add a new add-on to your app by searching for "Heroku Postgres" in the search bar. Select the plan that you wish to bill the database to, and click **Submit Order Form**. _Learn more about pricing information on [Heroku's website](https://www.heroku.com/pricing#data-services)._
57
38
58
-
7. Click **Provision** and wait for the database provisioning to complete
39
+
7.From the Deploy page, select the Settings tab. Click the **View Credentials...**button and copy the host, database, user, and password fields.
59
40
60
-
Click the "Heroku Postgres :: Database". The database should shift into the Available state.
41
+
8. Open the Segment app. On the Overview page, click **Add Destination**.
61
42
62
-

43
+
9. Search for and select the Postgres destination.
63
44
64
-
8. View the database overview and settings.
45
+
10. Choose the sources you'd like to connect to Postgres, and click **Next**.
65
46
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.
47
+
11. Enter the host, database, user, and password fields you copied in step seven, and click **Connect**. If Segment successfully connected to your destination, you'll see the Next Steps screen. If not, check your host, database, user, and password fields.
67
48
68
-

49
+
> warning "First sync duration"
50
+
> The initial sync between Segment and Heroku Postgres can take up to 24 hours to complete.
0 commit comments