Heroku	  Postgres	  Webinar   Craig	  Kerstiens   Matt	  Soldo
Architecture                                                              OtherForce.com                Heroku Runtime    ...
Database.com       Social	  Enterprise	  DBaaSHeroku	  Postgres   SQL	  Database-­‐as-­‐a-­‐Service
Let’s	  Provision	  a	  Database
Value-Added FeaturesHeroku           PostgresPostgres           Management Services
Value-Added FeaturesHeroku           PostgresPostgres           Management Services
Management	  Services
DBA	  Tasks    Setup   Manage   Security   Backup    Scale    Query
DBA	  Tasks    Setup   Manage   Security   Backup    Scale    Query
We	  hold	  the	  pager    Health	  ChecksContinuous	  Protection
Value-Added FeaturesHeroku           PostgresPostgres           Management Services
Value-Added FeaturesHeroku           PostgresPostgres           Management Services
100%	  Compatible
Why	  Postgres?
Users   Purchases        Products
CREATE	  TABLE	  products	  (	  	  	  	  id	  integer	  NOT	  NULL,	  	  	  	  title	  character	  varying(255),	  	  	  	...
CREATE	  TABLE	  users	  (	  	  	  	  id	  integer	  NOT	  NULL,	  	  	  	  first_name	  character	  varying(50),	  	  	  ...
CREATE	  TABLE	  purchases	  (	  	  	  	  id	  integer	  NOT	  NULL,	  	  	  	  user_id	  integer,	  	  	  	  items	  deci...
CREATE	  TABLE	  purchases	  (	  	  	  	  id	  integer	  NOT	  NULL,	  	  	  	  user_id	  integer,	  	  	  	  items	  deci...
CREATE	  TABLE	  purchases	  (	  	  	  	  id	  integer	  NOT	  NULL,	  	  	  	  user_id	  integer,	  	  	  	  items	  deci...
Data	  TypesINSERT	  INTO	  purchases	  VALUES	  (	  	  2,	  2,	  {{11.0,	  1.0,	  4.99}},	  now());
Data	  Types    bigint                            moneytimestamptz   polygon         date              boolean interval   ...
Other	  LanguagesCREATE	  OR	  REPLACE	  FUNCTION	  total(decimal(10,2)[][])	  RETURNS	  decimal(10,2)	  AS	  $$DECLARE	  ...
Other	  LanguagesFOREACH	  x	  SLICE	  1	  IN	  ARRAY	  $1	  	  LOOP	  	  	  	  s	  :=	  s	  +	  (x[2]	  *	  x[3]);	  	  E...
Other	  Languagespython     pgsql                                     lolcode                      ruby              j    ...
ExtensionsCREATE	  EXTENSION	  hstore;CREATE	  TABLE	  users	  (	  	  	  	  id	  integer	  NOT	  NULL,	  	  	  	  first_na...
ExtensionsINSERT	  INTO	  users	  VALUES	  (  1,	    Craig,	    Kerstiens,	    craig.kerstiens@gmail.com,	    sex	  =>	  "...
Extensionsdblink   hstore           uuid-ossp trigram                                              pgstattuple        cite...
Value-Added FeaturesHeroku           PostgresPostgres           Management Services
Value-Added FeaturesHeroku           PostgresPostgres           Management Services
Data	  ClipsThe	  easiest	  way	  to	  share	  your	  data
+                      SELECT *Your Live                      FROM salesProduction Data       WHERE amount > 1
https://postgres.heroku.com/dataclips/{unique	  &	  secure	  hash}
FollowersMasterDatabase                      Write	  Transactions      Follower	  1      Follower	  2                     ...
FollowersMasterDatabase                      Write	  Transactions      Follower	  1      Follower	  2                     ...
FollowersMasterDatabase                      Write	  Transactions     New	  Master      Follower	  2                      ...
Pricing	  and	  Availability
Learn	  MoreTry	  It	  free:	  	  	  https://postgres.heroku.comCode:	  	  	  	  	  	  	  	  	  	  	  	  https://github.co...
Upcoming SlideShare
Loading in …5
×

Heroku Postgres Cloud Database Webinar

1,196
-1

Published on

This webinar took place on August 23, 2012.

Never worry about servers. Never worry about config files. Never worry about patches. Simply focus on your data with Heroku Postgres.

PostgreSQL is a powerful, reliable, and durable open-source SQL-compliant database. Now available as a fully-managed cloud database from salesforce.com, Heroku Postgres reduces the costs and administrative overhead compared to operating your own database. You can even create a database instance within seconds with a single click.

Watch this webinar to learn about:

:: When to use Heroku Postgres versus Database.com
:: What data you can and should store in Heroku Postgres
:: Architecting your application with Heroku Postgres
:: How to efficiently share data in your organization with Dataclips
:: How to take advantage of features such as Fork and Follow to scale

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,196
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
34
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Heroku Postgres Cloud Database Webinar

  1. 1. Heroku  Postgres  Webinar Craig  Kerstiens Matt  Soldo
  2. 2. Architecture OtherForce.com Heroku Runtime Platforms Database.com Heroku Postgres
  3. 3. Database.com Social  Enterprise  DBaaSHeroku  Postgres SQL  Database-­‐as-­‐a-­‐Service
  4. 4. Let’s  Provision  a  Database
  5. 5. Value-Added FeaturesHeroku PostgresPostgres Management Services
  6. 6. Value-Added FeaturesHeroku PostgresPostgres Management Services
  7. 7. Management  Services
  8. 8. DBA  Tasks Setup Manage Security Backup Scale Query
  9. 9. DBA  Tasks Setup Manage Security Backup Scale Query
  10. 10. We  hold  the  pager Health  ChecksContinuous  Protection
  11. 11. Value-Added FeaturesHeroku PostgresPostgres Management Services
  12. 12. Value-Added FeaturesHeroku PostgresPostgres Management Services
  13. 13. 100%  Compatible
  14. 14. Why  Postgres?
  15. 15. Users Purchases Products
  16. 16. CREATE  TABLE  products  (        id  integer  NOT  NULL,        title  character  varying(255),        description  text,        price  numeric(10,2));
  17. 17. CREATE  TABLE  users  (        id  integer  NOT  NULL,        first_name  character  varying(50),        last_name  character  varying(50),        email  character  varying(255),        data  hstore,        created_at  timestamp  without  time  zone,        updated_at  timestamp  without  time  zone,        last_login  timestamp  with  time  zone);
  18. 18. CREATE  TABLE  purchases  (        id  integer  NOT  NULL,        user_id  integer,        items  decimal(10,2)  [][],        occurred_at  timestamp);
  19. 19. CREATE  TABLE  purchases  (        id  integer  NOT  NULL,        user_id  integer,        items  decimal(10,2)  [][],        occurred_at  timestamp);
  20. 20. CREATE  TABLE  purchases  (        id  integer  NOT  NULL,        user_id  integer,        items  decimal(10,2)  [][],        occurred_at  timestamp); items[x][0] = item_id items [x][1] = qty items [x][2] = price
  21. 21. Data  TypesINSERT  INTO  purchases  VALUES  (    2,  2,  {{11.0,  1.0,  4.99}},  now());
  22. 22. Data  Types bigint moneytimestamptz polygon date boolean interval array integer UUID smallint char serial bytea line numeric inet cidr point circle time text float macaddr timetz enum varchar tsquery XML path tsvector timestamp box
  23. 23. Other  LanguagesCREATE  OR  REPLACE  FUNCTION  total(decimal(10,2)[][])  RETURNS  decimal(10,2)  AS  $$DECLARE    s  decimal(10,2)  :=  0;    x  decimal[];BEGIN    FOREACH  x  SLICE  1  IN  ARRAY  $1    LOOP        s  :=  s  +  (x[2]  *  x[3]);    END  LOOP;    RETURN  s;END;$$  LANGUAGE  plpgsql;
  24. 24. Other  LanguagesFOREACH  x  SLICE  1  IN  ARRAY  $1    LOOP        s  :=  s  +  (x[2]  *  x[3]);    END  LOOP;    RETURN  s;
  25. 25. Other  Languagespython pgsql lolcode ruby j lua V8 R scheme tcl SQL psm Java sh php javascript
  26. 26. ExtensionsCREATE  EXTENSION  hstore;CREATE  TABLE  users  (        id  integer  NOT  NULL,        first_name  character  varying(50),        last_name  character  varying(50),        email  character  varying(255),        data  hstore,        created_at  timestamp  without  time  zone,        last_login  timestamp  without  time  zone);
  27. 27. ExtensionsINSERT  INTO  users  VALUES  ( 1,   Craig,   Kerstiens,   craig.kerstiens@gmail.com,   sex  =>  "M",  state  =>  "CA",   now(),   now());
  28. 28. Extensionsdblink hstore uuid-ossp trigram pgstattuple citext pgcrypto pgrowlocks isn ltree earthdistance cube dict_int tablefunc fuzzystrmatch unaccent dict_xsyn btree_gist
  29. 29. Value-Added FeaturesHeroku PostgresPostgres Management Services
  30. 30. Value-Added FeaturesHeroku PostgresPostgres Management Services
  31. 31. Data  ClipsThe  easiest  way  to  share  your  data
  32. 32. + SELECT *Your Live FROM salesProduction Data WHERE amount > 1
  33. 33. https://postgres.heroku.com/dataclips/{unique  &  secure  hash}
  34. 34. FollowersMasterDatabase Write  Transactions Follower  1 Follower  2 Read  Transactions
  35. 35. FollowersMasterDatabase Write  Transactions Follower  1 Follower  2 Read  Transactions
  36. 36. FollowersMasterDatabase Write  Transactions New  Master Follower  2 Read  Transactions
  37. 37. Pricing  and  Availability
  38. 38. Learn  MoreTry  It  free:      https://postgres.heroku.comCode:                        https://github.com/craigkerstiens/postgres-­‐demoSurvey:                http://bit.ly/herokupostgressurvey matt@heroku.com    |    craig@heroku.com

×