Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id BD9679FB221 for ; Mon, 8 Jan 2007 13:15:58 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 11639-07 for ; Mon, 8 Jan 2007 13:15:44 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from www01.kensystem.com (www01.kensystem.com [72.19.170.120]) by postgresql.org (Postfix) with ESMTP id F2BAF9FB21C for ; Mon, 8 Jan 2007 13:15:43 -0400 (AST) Received: from 192.168.0.3 by www01.kensystem.com (SMTPD); id s20070108171534.4172; Mon, 08 Jan 2007 17:15:34 Message-ID: <45A27C36.7060805@kensystem.com> Date: Mon, 08 Jan 2007 10:15:34 -0700 From: Ken Johanson User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: Kris Jurka CC: pgsql-jdbc@postgresql.org, Tom Lane Subject: Re: Support for DatabaseMetadata: getCatalogName, getTableName, References: <4594B16C.5010609@kensystem.com> <3936D281-E235-4FB3-889E-08981ABB0954@fastcrypt.com> <459D3487.6080202@kensystem.com> <459D3F3E.5040006@kensystem.com> <459D6CEC.9040505@kensystem.com> <459D7D66.6010202@kensystem.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200701/55 X-Sequence-Number: 16420 Kris Jurka wrote: > > What we get now in the V3 protocol: > > 1) the column name which may be an alias but we don't know if it came > from an alias or not, consider SELECT a AS a. If we get "a" we don't > know if it was aliased or not. > > 2) The underlying table's oid which can be used to lookup it's name and > schema. > > 3) The underlying column's number in the table which can be used to > lookup its name. > > No information on a table alias is available. > >> If so, does anyone know off hand if V3 is somehow extensible; i.e can >> we add in metadata without breaking apps or major version? >> > > No the RowDescription message is fixed: > > http://www.postgresql.org/docs/current/static/protocol-message-formats.html > Kris, do you know roughly when a v4 protocol could be on the radar?.. is it months out (or years?), or has it even been discussed yet? I'm trying to decide if I should vote-in on having this info added into that version, if there is a discussion/planning thread somewhere... Thx, ken