Re: [PERFORM] typoed column name, but postgres didn't grump

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
Cc: "Merlin Moncure" <mmoncure(at)gmail(dot)com>, "Robert Haas" <robertmhaas(at)gmail(dot)com>, "Jon Nelson" <jnelson+pgsql(at)jamponi(dot)net>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: [PERFORM] typoed column name, but postgres didn't grump
Date: 2010-11-05 20:23:00
Message-ID: 1036.1288988580@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-performance

"Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov> writes:
> Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> 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)

Perhaps, but it's been accepted since 7.3, with few complaints.
I think we should only remove the behavior that was added in 8.4.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Matas 2010-11-06 11:29:04 BUG #5744: Debugging doesn't work in version 8.3.12 on windows.
Previous Message Kevin Grittner 2010-11-05 20:15:38 Re: [PERFORM] typoed column name, but postgres didn't grump

Browse pgsql-performance by date

  From Date Subject
Next Message Scott Marlowe 2010-11-05 20:27:06 Re: Major Linux performance regression; shouldn't we be worried about RHEL6?
Previous Message Josh Berkus 2010-11-05 20:19:37 Re: Major Linux performance regression; shouldn't we be worried about RHEL6?