Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hLrvs-0001L6-OO for pgsql-odbc@arkaria.postgresql.org; Wed, 01 May 2019 16:18:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hLrvr-00062B-Iw for pgsql-odbc@arkaria.postgresql.org; Wed, 01 May 2019 16:18:07 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hLorC-0007nC-1K for pgsql-odbc@lists.postgresql.org; Wed, 01 May 2019 13:01:06 +0000 Received: from [195.159.176.226] (helo=blaine.gmane.org) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hLor8-0005kP-HU for pgsql-odbc@postgresql.org; Wed, 01 May 2019 13:01:04 +0000 Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1hLor5-000CTS-Gs for pgsql-odbc@postgresql.org; Wed, 01 May 2019 15:00:59 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-odbc@postgresql.org From: Hajo Kirchhoff Subject: Status of binary transmission vs. plaintext (resultFormat)? Date: Wed, 1 May 2019 15:00:52 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 X-Mozilla-News-Host: news://nntp.gmane.org:119 Content-Language: de-DE X-Host-Lookup-Failed: Reverse DNS lookup failed for 195.159.176.226 (failed) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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