Upload
david-fetter
View
351
Download
0
Tags:
Embed Size (px)
Citation preview
Federation withForeign Data
Wrappers
PGConf.EU 2013/10/31Copyright© 2013David Fetter [email protected] rights reserved.
Virtual Table Interface
Virtual Index Interface
SQL/MED
<DIGRESSION>
EXTENSIONS!
</DIGRESSION>
<PAST>
SQL/MED in PostgreSQL
contrib/dblink
SQL/MED in PostgreSQL
DBI-Link
Time Passes...
PostgreSQL 8.4
Infrastructure Only
PostgreSQL 9.0
More Infrastructure
PostgreSQL 9.2
ReadsANALYZE
</PAST>
<PRESENT>
A Disqus Hour
•50 GB raw log data
•30 GB event data
•100 million embed loads
•...last week.
PostgreSQL 9.3
WRITES!
Wrappers. Lots of Wrappers.
<SQL>
Oracle
MySQL
ODBC
JDBC
</SQL>
<NoSQL>
CouchDB
Redis
Cassandra?
</NoSQL>
<File>
file
file_text_array
</File>
<Creativity>
LDAP
S3
</Creativity
>
More!
PGXN
<New_Commands>
{CREATE | ALTER | DROP}
FOREIGN DATA WRAPPER
{CREATE | ALTER | DROP}SERVER
{CREATE | ALTER | DROP}
USER MAPPING
{CREATE | ALTER | DROP}
FOREIGN TABLE
</New_Commands>
<INTROSPECTION>
Remote Partitioning
• Expose information_schema.columns.
• Create view over them.• Create foreign table generator.
</INTROSPECTION>
</PRESENT>
<FUTURE>
<INTROSPECTION>
CREATE FOREIGN TABLE (…LIKE...)
More and better.
IMPORT FOREIGN SCHEMA <foreign schema> [ LIMIT TO ( <table name list> ) | EXCEPT ( <table name list> )]FROM SERVER <foreign server name>INTO <local schema>
</INTROSPECTION>
Full* SQL/MED Compliance
The ever-interesting: Stuff I Never Thought Of
</FUTURE>
Thanks!PGConf.EU 2013/10/31Copyright© 2013David Fetter [email protected] rights reserved.