pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: Merlin Moncure <mmoncure@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Jon Nelson <jnelson+pgsql@jamponi.net>
Cc: pgsql-bugs@postgresql.org
Subject: Re: [PERFORM] typoed column name, but postgres didn't grump
Date: Thu, 04 Nov 2010 10:35:08 -0500
Message-ID: <4CD28C5C020000250003727B@gw.wicourts.gov> (raw)
In-Reply-To: <AANLkTimdEYcskXpSdiMDyK6R40G66T9SdM7JDUTvY=4h@mail.gmail.com>
References: <AANLkTimYMA8D2h4-jHK5vD032jWwig1iJmW6uF-3i=Bx@mail.gmail.com>
	<4480.1288374498@sss.pgh.pa.us>
	<4CCACE6E0200002500036F95@gw.wicourts.gov>
	<6240.1288379246@sss.pgh.pa.us>
	<AANLkTim35FrP1EyZRmnotKSw=2rq8JNVutkitn9PXwFp@mail.gmail.com>
	<4CCADE440200002500036FB2@gw.wicourts.gov>
	<8216.1288383162@sss.pgh.pa.us>
	<AANLkTimdEYcskXpSdiMDyK6R40G66T9SdM7JDUTvY=4h@mail.gmail.com>

Merlin Moncure <mmoncure@gmail.com> 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



view thread (23+ messages)  latest in thread

Message-ID: <4CD28C5C020000250003727B@gw.wicourts.gov>
Permalink:  ../4CD28C5C020000250003727B@gw.wicourts.gov/
Also on:    postgresql.org/message-id/4CD28C5C020000250003727B@gw.wicourts.gov

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: Kevin.Grittner@wicourts.gov, mmoncure@gmail.com, tgl@sss.pgh.pa.us, robertmhaas@gmail.com, jnelson+pgsql@jamponi.net, pgsql-bugs@postgresql.org
  Subject: Re: [PERFORM] typoed column name, but postgres didn't grump
  In-Reply-To: <4CD28C5C020000250003727B@gw.wicourts.gov>
  References: <AANLkTimYMA8D2h4-jHK5vD032jWwig1iJmW6uF-3i=Bx@mail.gmail.com> <4480.1288374498@sss.pgh.pa.us> <4CCACE6E0200002500036F95@gw.wicourts.gov> <6240.1288379246@sss.pgh.pa.us> <AANLkTim35FrP1EyZRmnotKSw=2rq8JNVutkitn9PXwFp@mail.gmail.com> <4CCADE440200002500036FB2@gw.wicourts.gov> <8216.1288383162@sss.pgh.pa.us> <AANLkTimdEYcskXpSdiMDyK6R40G66T9SdM7JDUTvY=4h@mail.gmail.com> <4CD28C5C020000250003727B@gw.wicourts.gov>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox