PostgreSQL
9.1 introduced Foreign Data Wrappers
, as an implementation of SQL/MED
foreign tables, to provide transparent access to external data. Restricted to being written in C
, writing FDW
s can be a hard task.
In this talk we will learn just enough of mruby
's (the ISO-compliant version of Ruby
) internals to understand how one can embed mruby
in an external program (like PostgreSQL
), and start writing Foreign Data Wrappers
in Ruby
.