edm‐data - NYCPlanning/data-engineering GitHub Wiki
For most product builds, we use our persistent Postgres DB cluster named edm-data
. Each product has it's own DB.
Creating a new database
To create a new DB for a product using DBeaver:
-
Right click on
edm-data
in the Navigator panel and selectConnection View -> Advanced
-
Right click on
edm-data
and selectCreate -> Database
-
For database name, use our convention of
db-product-name
-
Change the
Tablespace
selection frompg_default
toDefault
-
Click
OK
-
Add the postgres extensions we typically use in a build:
CREATE EXTENSION postgis; CREATE EXTENSION fuzzystrmatch;