pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Jonathan Fuerth <fuerth@sqlpower.ca>
Cc: pgsql-odbc@postgresql.org
Subject: Re: Frontend/Backend protocol 3.0
Date: Fri, 3 Jun 2005 17:20:58 -0400 (EDT)
Message-ID: <200506032120.j53LKwc29057@candle.pha.pa.us> (raw)
In-Reply-To: <a7c80dadcb976dbac2ecffe88dac1882@sqlpower.ca>


Are you aware someone is rewriting ODBC to use libpq for protocol
communications?

---------------------------------------------------------------------------

Jonathan Fuerth wrote:
> Hello people,
> 
> I've taken a few days to hack in support for the frontend/backend 
> protocol v3.0 (which first appeared in PostgreSQL 7.4).  My main 
> motivator was to get at the SQLSTATE codes which backends >= 7.4 return 
> with every error message.
> 
> What's done now:
>   -read the new message length field from all server responses
>   -Parse new-style error/notice blocks
>   -return correct SQLSTATE from backend to ODBC callers (connection and 
> result level)
>   -added #ifdef so the driver compiles against newer iODBC headers
> 
> What I intend to finish this week:
>   -upgrade the function call API to new protocol
> 
> What needs doing that I can't/won't finish soon:
>   -upgrade Windows configuration GUI to add new "7.4" protocol option
>   -take advantage of the new transaction status byte in 'Z' messages (my 
> patch just ignores them)
>   -rework prepared statement stuff to use the new protocol features (I 
> haven't looked at this stuff at all, but the old code works on the new 
> protocol--it could be faster, that's all)
> 
> If there is any interest in this patch, I will post it to the list, or 
> email it to individuals.
> 
> Regards,
> 
> -Jonathan Fuerth
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 9: the planner will ignore your desire to choose an index scan if your
>       joining column's datatypes do not match
> 

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073



view thread (21+ messages)  latest in thread

Message-ID: <200506032120.j53LKwc29057@candle.pha.pa.us>
Permalink:  ../200506032120.j53LKwc29057@candle.pha.pa.us/
Also on:    postgresql.org/message-id/200506032120.j53LKwc29057@candle.pha.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: pgman@candle.pha.pa.us, fuerth@sqlpower.ca
  Subject: Re: Frontend/Backend protocol 3.0
  In-Reply-To: <200506032120.j53LKwc29057@candle.pha.pa.us>
  References: <a7c80dadcb976dbac2ecffe88dac1882@sqlpower.ca> <200506032120.j53LKwc29057@candle.pha.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox