Federation with foreign_data_wrappers_pg_conf_eu_20131031

584 views

Published on

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

No Downloads
Views
Total views
584
On SlideShare
0
From Embeds
0
Number of Embeds
6
Actions
Shares
0
Downloads
15
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide
  • Feedback!!!
  • Nuair ar am,
  • A few rounds with the ISO standards committee, and then:
  • SQL:2003
    Lots of "interesting" things added
  • Joe Conway did this. It's still going.
  • I did this with a lot of help from Andrew (RhodiumToad) Gierth. This was in 2004.
  • Seven functions, maybe in Python!
  • Thanks to George Courtsunis for the latest numbers. So we have good reasons to want to do things efficiently rather than with brute force.
  • Six more functions!
  • This is a WIP a.k.a. "Vaporware."
  • This is broken, too. Shouldn't these be in contrib? They fit in terms of being version-dependent, at least until we get our API stabilized.
  • SQL (Draft) Standard Ahead!
  • Some of this makes sense. Why not regex match, or at least glob? What happens when the remote side doesn't have schemas per se?
  • Actually, full compliance seems insane at first blush, but we can at least try for more.
  • Feedback!
  • Federation with foreign_data_wrappers_pg_conf_eu_20131031

    1. 1. Federation with Foreign Data Wrappers Foreign Data Wrappers PGConf.EU 2013/10/31 Copyright© 2013 David Fetter david.fetter@disqus.com All rights reserved.
    2. 2. Virtual Table Interface
    3. 3. Virtual Index Interface
    4. 4. SQL/MED
    5. 5. <DIGRESSION>
    6. 6. EXTENSIONS!
    7. 7. </DIGRESSION>
    8. 8. <PAST>
    9. 9. SQL/MED in PostgreSQL contrib/dblink
    10. 10. SQL/MED in PostgreSQL DBI-Link
    11. 11. Time Passes...
    12. 12. PostgreSQL 8.4
    13. 13. Infrastructure Only
    14. 14. PostgreSQL 9.0
    15. 15. More Infrastructure
    16. 16. PostgreSQL 9.2
    17. 17. Reads ANALYZE ANALYZE
    18. 18. </PAST>
    19. 19. <PRESENT>
    20. 20. A Disqus Hour • 50 GB raw log data • 30 GB event data • 100 million embed loads • ...last week.
    21. 21. PostgreSQL 9.3
    22. 22. WRITES!
    23. 23. Wrappers. Lots of Wrappers.
    24. 24. <SQL>
    25. 25. Oracle
    26. 26. MySQL
    27. 27. ODBC
    28. 28. JDBC
    29. 29. </SQL>
    30. 30. <NoSQL>
    31. 31. CouchDB
    32. 32. Redis
    33. 33. Cassandra?
    34. 34. </NoSQL>
    35. 35. <File>
    36. 36. file
    37. 37. file_text_array
    38. 38. </File>
    39. 39. <Creativity>
    40. 40. Twitter
    41. 41. LDAP
    42. 42. S3
    43. 43. </Creativity>
    44. 44. More!
    45. 45. PGXN
    46. 46. Multicorn
    47. 47. <New_Commands>
    48. 48. {CREATE | ALTER | DROP} FOREIGN DATA WRAPPER FOREIGN DATA WRAPPER
    49. 49. {CREATE | ALTER | DROP} SERVER SERVER
    50. 50. {CREATE | ALTER | DROP} USER MAPPING USER MAPPING
    51. 51. {CREATE | ALTER | DROP} FOREIGN TABLE FOREIGN TABLE
    52. 52. </New_Commands>
    53. 53. <INTROSPECTION>
    54. 54. Remote Partitioning • Expose information_schema.columns. • Create view over them. • Create foreign table generator.
    55. 55. </INTROSPECTION>
    56. 56. </PRESENT>
    57. 57. <FUTURE>
    58. 58. <INTROSPECTION>
    59. 59. CREATE FOREIGN TABLE
    60. 60. More and better.
    61. 61. IMPORT FOREIGN SCHEMA <foreign schema> [ LIMIT TO ( <table name list> ) | EXCEPT ( <table name list> ) ] FROM SERVER <foreign server name> INTO <local schema>
    62. 62. </INTROSPECTION>
    63. 63. Full* SQL/MED Compliance
    64. 64. The ever-interesting: Stuff I Never Thought Of
    65. 65. </FUTURE>
    66. 66. Thanks! PGConf.EU 2013/10/31 Copyright© 2013 David Fetter david.fetter@disqus.com All rights reserved.

    ×