pg.ddx.io pgsql-performance@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Tom Lane <tgl@sss.pgh.pa.us>
To: Merlin Moncure <mmoncure@gmail.com>
Cc: Kevin Grittner <Kevin.Grittner@wicourts.gov>
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 12:56:20 -0400
Message-ID: <11057.1288889780@sss.pgh.pa.us> (raw )
In-Reply-To: <AANLkTikymqi_chTOgpUzmFfA_hCbEQLDwhaA7No_1hgq@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 >
<4CD28C5C020000250003727B@gw.wicourts.gov >
<9974.1288887285@sss.pgh.pa.us >
<AANLkTikymqi_chTOgpUzmFfA_hCbEQLDwhaA7No_1hgq@mail.gmail.com >
Merlin Moncure <mmoncure@gmail.com> writes:
> On Thu, Nov 4, 2010 at 12:14 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> "Kevin Grittner" <Kevin.Grittner@wicourts.gov> writes:
>>> Merlin Moncure <mmoncure@gmail.com> wrote:
>>>> create type x as (a int, b int);
>>>> select f((1,2));
>> 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
> Actually I didn't -- I left out that there was a function f taking x.
Ah. No, that would still work after the change. The case that I'm
proposing to break is using function-ish notation to invoke a cast
from a composite type to some other type whose name you use as if it
were a function. Even there, if you've created such a cast following
the usual convention of naming the cast function after the target type,
it'll still act the same. It's just the built-in I/O-based casts that
will stop working this way (for lack of a matching underlying function).
regards, tom lane
view thread (23+ messages) latest in thread
Message-ID: <11057.1288889780@sss.pgh.pa.us>
Permalink: ../11057.1288889780@sss.pgh.pa.us/
Also on: postgresql.org/message-id/11057.1288889780@sss.pgh.pa.us
copy link · copy postgr.es
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 using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: tgl@sss.pgh.pa.us, mmoncure@gmail.com, Kevin.Grittner@wicourts.gov, 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: <11057.1288889780@sss.pgh.pa.us>
* 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