Postgres via odbc?
Tue May 18 05:01:23 CEST 2004
Dustin Sallings <dustin@REDACTED> wrote:
> On May 16, 2004, at 23:18, Shawn Pearce wrote:
> >Has anyone setup Erlang ODBC to use Postgres?
> >I'm looking at trying to setup a Postgres server on Linux and have
> >Erlang connect to it from the same box via ODBC; but was wondering
> >if there are any gotcha's I should be aware of before I waste a few
> >hours on it.
> >If its really an issue, I'll just break down and write a port driver
> >for it. :)
> I started writing a native driver for it, but by the time I got to
> actually getting results from queries, I realized that gen_event might
> not be the best mechanism. Haven't started it up again just yet. I
> got authentication (md5) and queries working sort of, you just can't
> get the results from your queries. :)
When you say native driver, do you mean pure Erlang code or do you mean
a port driver for Erlang to use the pgsql library?
I'm looking over their network protocol documentation and it doesn't
look horribly complicated. Relatively easy to parse with bitsyntax
More information about the erlang-questions