X-Original-To: pgsql-hackers@postgresql.org Received: from salem.vale-housing.co.uk (mailgate.vale-housing.co.uk [193.195.77.162]) by postgresql.org (Postfix) with ESMTP id 8A6FC475D0F; Tue, 11 Mar 2003 03:23:35 -0500 (EST) thread-index: AcLnp4Fwoh0MJAXPRvSrqCoIhXd1Tw== Received: from vale-housing.co.uk ([192.168.1.89] RDNS failed) by salem.vale-housing.co.uk with Microsoft SMTPSVC(5.0.2195.5329); Tue, 11 Mar 2003 08:23:33 +0000 Received: from tartanic.demon.co.uk ([80.177.99.193]) (SquirrelMail authenticated user dpage) by ssl.vale-housing.co.uk with HTTP; Tue, 11 Mar 2003 09:25:07 -0000 (GMT) Message-ID: <50119.80.177.99.193.1047374707.squirrel@ssl.vale-housing.co.uk> Content-Class: urn:content-classes:message X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4920.2300 Date: Tue, 11 Mar 2003 09:25:07 -0000 (GMT) Subject: Re: Roadmap for FE/BE protocol redesign From: "Dave Page" To: In-Reply-To: <200303110227.h2B2R6n14056@candle.pha.pa.us> References: <28363.1047343721@sss.pgh.pa.us> <200303110227.h2B2R6n14056@candle.pha.pa.us> X-Priority: 3 Importance: Normal X-MSMail-Priority: Normal Cc: , , , X-Mailer: SquirrelMail (version 1.2.6) MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 11 Mar 2003 08:23:33.0664 (UTC) FILETIME=[816B4200:01C2E7A7] X-Archive-Number: 200303/414 X-Sequence-Number: 36660 It's rumoured that Bruce Momjian once said: > Tom Lane wrote: >> "Dave Page" writes: >> > What about the addition of pg_attribute.attrelid & >> > pg_attribute.attname/attnum in RowDesription messages to identify >> > the underlying attribute (where appropriate)? >> >> Well, we can talk about it, but I still think that any frontend that >> relies on such information is broken by design. (And if that means >> the JDBC spec is broken, then the JDBC spec is broken.) >> >> Just to start with, if I do "SELECT * FROM view", am I going to see >> the info associated with the view column, or with the hypothetical >> underlying table column? (Actually, didn't I already make a list of a >> bunch of ways in which this concept is underspecified? AFAIR, you >> didn't suggest answers to any of those questions ... but we need >> answers to all of them if we are going to implement the feature.) > > I was willing to add a hack to enable default column labels to be > "table.column" --- that seemed like the least obtrusive. That would help, but not in the cases that cause the most grief - for example when the column has been aliased in the original query - that should override the label of course, but then we still need to parse the SQL at the client to figure out what's going on. Regards, Dave.