pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hajo Kirchhoff <mailinglists@hajo-kirchhoff.de>
To: pgsql-odbc@postgresql.org
Subject: Status of binary transmission vs. plaintext (resultFormat)?
Date: Wed, 1 May 2019 15:00:52 +0200
Message-ID: <qac5a5$1e5g$1@blaine.gmane.org> (raw)

Hi there,
using Wirekshark I noticed that UUIDs are transferred in plaintext
between the ODBC driver and the postgreSQL database. For me this is a
big deal since it uses twice as much data as the binary form (36 char
vs. 16 bytes).

I downloaded and analysed the ODBC sources and found that all calls to
PQexecParams and PQexecPrepare use '0' for the 'resultFormat'. IOW, the
ODBC driver explicitly requests all results in plaintext form as opposed
to the binary form. This has been since it first used libpq as its
interface to postgreSQL.

Is my assumption correct that the ODBC driver really is not prepared to
handle binary transfer? IOW that all data, be it float, int, timestamp,
uuid, bool is really transmitted in full text form?


What is the development status here? Are there or have there been any
plans to support 'resultFormat == 1' (see
https://www.postgresql.org/docs/11/libpq-exec.html)?

What would be neccessary to support that?

Best regards
Hajo

-- 
Hajo Kirchhoff
Kirchhoff IT-Consulting
http://www.litwindow.com






Message-ID: <qac5a5$1e5g$1@blaine.gmane.org>
Permalink:  ../qac5a5$1e5g$1@blaine.gmane.org/
Also on:    postgresql.org/message-id/qac5a5$1e5g$1@blaine.gmane.org

 · 

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: mailinglists@hajo-kirchhoff.de
  Subject: Re: Status of binary transmission vs. plaintext (resultFormat)?
  In-Reply-To: <qac5a5$1e5g$1@blaine.gmane.org>
  References: <qac5a5$1e5g$1@blaine.gmane.org>

* 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