Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 15C42633239 for ; Wed, 2 Dec 2009 00:23:36 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 77834-09 for ; Wed, 2 Dec 2009 04:23:25 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.catalyst.net.nz (bertrand.catalyst.net.nz [202.78.240.40]) by mail.postgresql.org (Postfix) with ESMTP id 305BF63243B for ; Wed, 2 Dec 2009 00:23:25 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by mail.catalyst.net.nz (Postfix) with ESMTP id 1C4CA31DD2 for ; Wed, 2 Dec 2009 17:23:21 +1300 (NZDT) X-Virus-Scanned: Debian amavisd-new at catalyst.net.nz Received: from mail.catalyst.net.nz ([127.0.0.1]) by localhost (bertrand.catalyst.net.nz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9pnSlOoAxzbq for ; Wed, 2 Dec 2009 17:23:20 +1300 (NZDT) Received: from [IPv6:2404:130:0:1000:222:15ff:fe5c:2471] (unknown [IPv6:2404:130:0:1000:222:15ff:fe5c:2471]) (Authenticated sender: mark.kirkwood) by mail.catalyst.net.nz (Postfix) with ESMTPSA id A748331DBB for ; Wed, 2 Dec 2009 17:23:20 +1300 (NZDT) Message-ID: <4B15EBB8.70506@catalyst.net.nz> Date: Wed, 02 Dec 2009 17:23:20 +1300 From: Mark Kirkwood User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: JDBC index metadata filter_condition Content-Type: multipart/mixed; boundary="------------010708000501080006050808" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.123 tagged_above=-10 required=5 tests=AWL=-0.938, BAYES_40=-0.185 X-Spam-Level: X-Archive-Number: 200912/1 X-Sequence-Number: 20082 This is a multi-part message in MIME format. --------------010708000501080006050808 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit I'm investigating a Java based schema designer tool which uses the JDBC metadata API for most of its information gathering. I notice that the filter_condition field returned in the getIndexInfo() method's resultset is always null. It seems straightforward to fix this (see attached patch) I've specified 7.4 as the earliest server version that will try to populate this field - even tho it looks like 7.3 might work (do we care about 7.3 and earlier?) regards Mark --------------010708000501080006050808 Content-Type: application/x-gzip; name="pgjdbc-filter-1.patch.gz" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="pgjdbc-filter-1.patch.gz" H4sICCTrFUsAA3BnamRiYy1maWx0ZXItMS5wYXRjaADlU91v2jAQfy5/xS0vBUrC91qC8hAR tmWCsAHbtKfIJJfUVb7mmAyp6v8+x0CbVRur2MuknSz57uzf7+58ZzvxcadDysJ2luY8ZJh/ i9p3/sbrtc1Nzhnx+PvSsggnG5LjHDkpde2OFKRm/L3UlpMVBDRCHdpekbM05TJ+OwvldmZq raLGkDOKBU1CYGLLaZpAVxt2az4NAlA9UFlpwgvqbDab577RRbcHc8Kg1+mMoNPXhyN92AG1 I+RCZqOq6tncPbDQO1D39O5IF4qkLjOuiqygfzO4bvVvhkOQLgCxjiLCwpUBCjifZjMwV2JN 3MXStaarSUu4ryp3fxIFPKoxjPg2izAvkRNzadmOObPXX/fIV6eRGQn3wA/m2+nqD5Bjem/s 2Xq6dCcLx7LX9sI5hQpYGp8q4Mu76XIKHtdS6htUo4kvsqI+mI5Vpvjoxd2Tn2iEc2ka+yvH 28JHYoPE0nfi3b7fIsNTWUk+XvIlJEYw4FKwAeYeyfDjNuWY18VIROiI04Y4US5BGctpOvT5 9QCEpf67fR4LRAVEgzp4aZKgx8VX1W5JgXOa0Hgbr5AVyD4jK/9wXbnWBkqjUUHePwv9WGQW uiFyF3cZq8sWZgz9Fjz1uPHrWRpXCB8qOkY5viTu76f0OXPFPKD/p2n9AeMuvS5/BgAA --------------010708000501080006050808--