Skip to content

Commit f644682

Browse files
committed
First pass of Heroku rewrite [DOC-233]
1 parent 9cda7e1 commit f644682

File tree

1 file changed

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

1 file changed

+16
-34
lines changed

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

Lines changed: 16 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ 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 our [Sources Overview](/docs/connections/sources) documentation.
13+
1114
## Getting started
1215
Segment supports the following Postgres database providers:
1316
- [Heroku](#heroku-postgres)
@@ -21,51 +24,30 @@ Segment supports the following Postgres database providers:
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.
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"}.
4728

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.
4930

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**.
5132

52-
![](images/heroku3.png)
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**.
5334

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.
5536

56-
![](images/heroku4.png)
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)._
5738

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.
5940

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**.
6142

62-
![](images/heroku5.png)
43+
9. Search for and select the Postgres destination.
6344

64-
8. View the database overview and settings.
45+
10. Choose the sources you'd like to connect to Postgres, and click **Next**.
6546

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.
6748

68-
![](images/heroku6.png)
49+
> warning "First sync duration"
50+
> The initial sync between Segment and Heroku Postgres can take up to 24 hours to complete.
6951
7052
## RDS Postgres
7153

0 commit comments

Comments
 (0)