Re: ISN was: Core Extensions relocation - Mailing list pgsql-hackers

From Peter Geoghegan
Subject Re: ISN was: Core Extensions relocation
Date
Msg-id CAEYLb_WsKW=YSDgsJry-5wGbOH1a3chgdwDc43b9-v02OhB5Wg@mail.gmail.com
Whole thread Raw
In response to Re: ISN was: Core Extensions relocation  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: ISN was: Core Extensions relocation
List pgsql-hackers
On 15 November 2011 23:57, Robert Haas <robertmhaas@gmail.com> wrote:
> We can't go on complaining one the one hand that
> people don't install postgresql-contrib, and then on the other hand
> insist on shipping really bad code in contrib.  It's asking a lot for
> someone who isn't already heavily involved in the project to
> distinguish the wheat from the chaff.

ISTM that any sensible sanitisation of data guards against Murphy, not
Machiavelli. Exactly what sort of error is it imagined will be
prevented by enforcing that ISBN prefixes are "valid"? Transcription
and transposition errors are already guarded against very effectively
by the check digit.

If we can't put isn out of its misery, a sensible compromise would be
to rip out the prefix enforcement feature so that, for example, ISBN13
behaved exactly the same as EAN13. That would at least result in
predictable behaviour. The "strike" that separates each part of the
ISBN would be lost, but it is actually not visible on large ISBN
websites, presumably because it's a tar-pit of a problem.

--
Peter Geoghegan       http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training and Services


pgsql-hackers by date:

Previous
From: Jeff Janes
Date:
Subject: Re: Group Commit
Next
From: Royce Ausburn
Date:
Subject: Re: [PATCH] Unremovable tuple monitoring