Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 998961337B5C for ; Thu, 4 Nov 2010 13:14:56 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 43368-01 for ; Thu, 4 Nov 2010 16:14:49 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 554C213364DE for ; Thu, 4 Nov 2010 13:14:49 -0300 (ADT) 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 oA4GEjrY009975; Thu, 4 Nov 2010 12:14:45 -0400 (EDT) To: "Kevin Grittner" cc: "Merlin Moncure" , "Robert Haas" , "Jon Nelson" , pgsql-bugs@postgresql.org Subject: Re: [PERFORM] typoed column name, but postgres didn't grump In-reply-to: <4CD28C5C020000250003727B@gw.wicourts.gov> 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> Comments: In-reply-to "Kevin Grittner" message dated "Thu, 04 Nov 2010 10:35:08 -0500" Date: Thu, 04 Nov 2010 12:14:45 -0400 Message-ID: <9974.1288887285@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201011/34 X-Sequence-Number: 28614 "Kevin Grittner" writes: > Merlin Moncure wrote: >> Trying to understand real world cases that this would >> break...would the following now fail w/o explicit cast? >> >> create type x as (a int, b int); >> select f((1,2)); > It already does: I think Merlin probably meant to write "select x((1,2))", but that doesn't work out-of-the-box either. What would be affected is something like select text((1,2)); which you'd now be forced to write as select (1,2)::text; (or you could use CAST notation; but not text(row) or row.text). regards, tom lane