simple LO API

https://commitfest.postgresql.org/action/patch_view?id=1198
http://archives.postgresql.org/message-id/CAFj8pRA39N-nF=3W_PD0-f8oQZNGo01q_6cztbnh7FFh275Jgg@mail.gmail.com