From: | Andres Freund <andres(at)anarazel(dot)de> |
---|---|
To: | Nikolay Samokhvalov <samokhvalov(at)gmail(dot)com> |
Cc: | PostgreSQL mailing lists <pgsql-bugs(at)postgresql(dot)org> |
Subject: | Re: ON CONFLICT with constraint name doesn't work |
Date: | 2017-03-16 20:59:18 |
Message-ID: | 20170316205918.qgfnpatsfeouxox5@alap3.anarazel.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs pgsql-hackers |
On 2017-03-16 13:56:27 -0700, Nikolay Samokhvalov wrote:
> On Thu, Mar 16, 2017 at 1:23 PM, Andres Freund <andres(at)anarazel(dot)de> wrote:
> >
> > Seems like a good idea to improve that message. I wouldn't vote for
> > backpatching it, however. Could you propose a patch for that?
> >
>
> OK. Here it is.
I don't think that's an appropriate fix. ISTM we should say 'violates
unique index' when it's just an index and 'violates unique constraint'
when the index is backing a constraint.
> But:
> 1) what's next with all the i18n stuff? I've changed RU version as well,
> but unfortunately I don't the other languages.
You don't need to patch any (including RU). They're maintained
separately and the in-core stuff is periodically refreshed by the
translators.
> 2) it will definitely break many regression tests, should I patch them as
> well?
Yes, after above adaption, that'll probably reduce the size of the diff.
> Also, documentation explaining ON CONFLICT might be still not clear, at
> least for some readers. Do you want me to propose a patch for that as well?
Please feel free to give it a try.
Greetings,
Andres Freund
From | Date | Subject | |
---|---|---|---|
Next Message | Andrew Gierth | 2017-03-16 21:03:44 | Re: BUG #14057: vacuum setting reltuples=0 for tables with >0 tuples |
Previous Message | Nikolay Samokhvalov | 2017-03-16 20:56:27 | Re: ON CONFLICT with constraint name doesn't work |
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2017-03-16 20:59:29 | Re: Size vs size_t |
Previous Message | Corey Huinker | 2017-03-16 20:57:50 | Re: \if, \elseif, \else, \endif (was Re: PSQL commands: \quit_if, \quit_unless) |