Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 609229F37F4; Tue, 22 Nov 2011 19:52:45 -0400 (AST) Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RT08q-0000ks-Js; Tue, 22 Nov 2011 23:52:45 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id pAMNqOPh004876; Tue, 22 Nov 2011 18:52:24 -0500 (EST) To: Oliver Jowett cc: Mikko Tiihonen , pgsql-jdbc@postgresql.org, pgsql-hackers@postgresql.org Subject: Re: [JDBC] Optimize postgres protocol for fixed size arrays In-reply-to: References: <4ECC186A.30709@nitorcreations.com> Comments: In-reply-to Oliver Jowett message dated "Wed, 23 Nov 2011 12:41:46 +1300" Date: Tue, 22 Nov 2011 18:52:24 -0500 Message-ID: <4875.1322005944@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 201111/1314 X-Sequence-Number: 198799 Oliver Jowett writes: > On 23 November 2011 10:47, Mikko Tiihonen > wrote: >> Here is a patch that adds a new flag to the protocol that is set when all >> elements of the array are of same fixed size. > How does a client detect that this feature is supported? The only way that anything like this will go in is as part of a protocol version bump, so discoverability would reduce to knowing which protocol you're using. We should file this away as one of the things we might want to do whenever there's sufficient critical mass for a new wire protocol version. Note that COPY BINARY files would be affected too, and so we'd want to make sure that this sort of change is recognizable from a binary file's header. regards, tom lane