pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Kevin Grittner <Kevin.Grittner@wicourts.gov>
Cc: Merlin Moncure <mmoncure@gmail.com>
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: Fri, 05 Nov 2010 16:23:00 -0400
Message-ID: <1036.1288988580@sss.pgh.pa.us> (raw)
In-Reply-To: <4CD41F9A020000250003737F@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>
	<9974.1288887285@sss.pgh.pa.us>
	<AANLkTikymqi_chTOgpUzmFfA_hCbEQLDwhaA7No_1hgq@mail.gmail.com>
	<11057.1288889780@sss.pgh.pa.us>
	<11057.1288889780@sss.pgh.pa.us>
	<29497.1288984644@sss.pgh.pa.us>
	<4CD41F9A020000250003737F@gw.wicourts.gov>

"Kevin Grittner" <Kevin.Grittner@wicourts.gov> writes:
> Tom Lane <tgl@sss.pgh.pa.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



view thread (23+ messages)

Message-ID: <1036.1288988580@sss.pgh.pa.us>
Permalink:  ../1036.1288988580@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1036.1288988580@sss.pgh.pa.us

 · 

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, Kevin.Grittner@wicourts.gov, mmoncure@gmail.com, 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: <1036.1288988580@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