Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 2DDCC1337BCD for ; Thu, 4 Nov 2010 12:35:23 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 09826-01 for ; Thu, 4 Nov 2010 15:35:15 +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 43F4C1337B7D for ; Thu, 4 Nov 2010 12:35:12 -0300 (ADT) Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Thu, 04 Nov 2010 10:35:11 -0500 Message-Id: <4CD28C5C020000250003727B@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Thu, 04 Nov 2010 10:35:08 -0500 From: "Kevin Grittner" To: "Merlin Moncure" , "Tom Lane" Cc: "Robert Haas" , "Jon Nelson" , 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> In-Reply-To: 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/33 X-Sequence-Number: 28613 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: test=# create type x as (a int, b int); CREATE TYPE test=# select f((1,2)); ERROR: function f(record) does not exist LINE 1: select f((1,2)); ^ HINT: No function matches the given name and argument types. You might need to add explicit type casts. -Kevin