Re: Minor bug affecting ON CONFLICT lock wait log messages

Поиск
Список
Период
Сортировка
От Stephen Frost
Тема Re: Minor bug affecting ON CONFLICT lock wait log messages
Дата
Msg-id 20160315153117.GB3127@tamriel.snowman.net
обсуждение исходный текст
Ответ на Re: Minor bug affecting ON CONFLICT lock wait log messages  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Ответы Re: Minor bug affecting ON CONFLICT lock wait log messages  (Peter Geoghegan <pg@heroku.com>)
Список pgsql-hackers
* Alvaro Herrera (alvherre@2ndquadrant.com) wrote:
> Stephen Frost wrote:
> > * Julien Rouhaud (julien.rouhaud@dalibo.com) wrote:
>
> > XLTW_InsertIndexUnique is used when building a unique index, but this is
> > just a check, and more to the point, it's actually a re-check of what
> > we're doing in nbinsert.c where we're already using XLTW_InsertIndex.
> >
> > We wouldn't want to end up returning different error messages for the
> > same command under the same conditions just based, which is what we'd
> > potentially end up doing if we used XLTW_InsertIndexUnique here.
>
> Perhaps we need a new value in that enum, so that the context message is
> specific to the situation at hand?

Maybe, but that would require a new message and new translation and just
generally doesn't seem like something we'd want to back-patch for a
bugfix.  As such, if someone's interested, they could certainly propose
it to go into HEAD, but I'm not going to look at making those kinds of
changes for this bugfix.

Thanks!

Stephen

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Speed up Clog Access by increasing CLOG buffers
Следующее
От: Robert Haas
Дата:
Сообщение: PostgreSQL 9.6 Feature Freeze - April 8, 2016