Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id B6E0F1337BDA for ; Fri, 5 Nov 2010 17:15:53 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 02204-06 for ; Fri, 5 Nov 2010 20:15:46 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from gw.wicourts.gov (gwmta.wicourts.gov [165.219.244.99]) by mail.postgresql.org (Postfix) with ESMTP id 5E84E1337BCC for ; Fri, 5 Nov 2010 17:15:46 -0300 (ADT) Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Fri, 05 Nov 2010 15:15:45 -0500 Message-Id: <4CD41F9A020000250003737F@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Fri, 05 Nov 2010 15:15:38 -0500 From: "Kevin Grittner" To: "Merlin Moncure" , "Robert Haas" , "Jon Nelson" , ,"Tom Lane" Subject: Re: [PERFORM] typoed column name, but postgres didn't grump References: <4480.1288374498@sss.pgh.pa.us> <4CCACE6E0200002500036F95@gw.wicourts.gov> <6240.1288379246@sss.pgh.pa.us> <4CCADE440200002500036FB2@gw.wicourts.gov> <8216.1288383162@sss.pgh.pa.us> <4CD28C5C020000250003727B@gw.wicourts.gov> <9974.1288887285@sss.pgh.pa.us> <11057.1288889780@sss.pgh.pa.us><11057.1288889780@sss.pgh.pa.us> <29497.1288984644@sss.pgh.pa.us> In-Reply-To: <29497.1288984644@sss.pgh.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-4.21 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201011/42 X-Sequence-Number: 28622 Tom Lane wrote: > Here's a proposed patch, sans documentation as yet. I see you took the surgical approach -- only a cast from a record to a character string type is affected. I agree that will fix the complaints I've seen, and I imagine you're keeping the change narrow to minimize the risk of breaking existing code, but this still looks weird to me: test=# select ('2010-11-05'::date).text; text ------------ 2010-11-05 (1 row) Oh, well -- I guess you have to go well out of your way to shoot your foot with such cases, so that's probably for the best. -Kevin