Re: Doing better at HINTing an appropriate column within errorMissingColumn() - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Doing better at HINTing an appropriate column within errorMissingColumn()
Date
Msg-id 20141119201005.GF1639@alvin.alvh.no-ip.org
Whole thread Raw
In response to Re: Doing better at HINTing an appropriate column within errorMissingColumn()  (Peter Geoghegan <pg@heroku.com>)
List pgsql-hackers
Peter Geoghegan wrote:
> On Wed, Nov 19, 2014 at 11:54 AM, Alvaro Herrera
> <alvherre@2ndquadrant.com> wrote:
> > Peter Geoghegan wrote:
> >> On Wed, Nov 19, 2014 at 11:34 AM, Alvaro Herrera
> >> <alvherre@2ndquadrant.com> wrote:
> >> > 0 for a transposition, wow.
> >>
> >> Again, they're optimizing for short strings (git commands) only. There
> >> just isn't that many transposition errors possible with a 4 character
> >> string.
> >
> > If there's logic in your statement, I can't see it.
> 
> The point is that transposition errors should not have no cost. If git
> did not have an absolute quality test of a distance of 6, which they
> can only have because all git commands are terse, then you could
> construct a counter example.

Okay.  My point is just that whatever the string length, I think we'd do
well to regard transpositions as "cheap" in terms of error cost.

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services



pgsql-hackers by date:

Previous
From: Peter Geoghegan
Date:
Subject: Re: Doing better at HINTing an appropriate column within errorMissingColumn()
Next
From: Simon Riggs
Date:
Subject: Re: Add shutdown_at_recovery_target option to recovery.conf