Re: Moving ExecInsertIndexTuples and friends to new file

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: Moving ExecInsertIndexTuples and friends to new file
Дата
Msg-id 553A475A.3020103@iki.fi
обсуждение исходный текст
Ответ на Re: Moving ExecInsertIndexTuples and friends to new file  (Heikki Linnakangas <hlinnaka@iki.fi>)
Ответы Re: Moving ExecInsertIndexTuples and friends to new file  (Peter Geoghegan <pg@heroku.com>)
Список pgsql-hackers
On 04/24/2015 09:36 AM, Heikki Linnakangas wrote:
> On 04/24/2015 06:30 AM, Stephen Frost wrote:
>> * Peter Geoghegan (pg@heroku.com) wrote:
>>> On Thu, Apr 23, 2015 at 12:05 PM, Heikki Linnakangas <hlinnaka@iki.fi> wrote:
>>>> While looking at Peter's INSERT ... ON CONFLICT patch, I started to feel
>>>> that ExecInsertIndexTuples() and friends would deserve a file of their own,
>>>> and not be buried in the middle of execUtils.c. I propose that we split
>>>> execUtils.c into two, moving ExecOpenIndices(), ExecCloseIndices()
>>>> ExecInsertIndexTuples() and related functions into a new file called
>>>> executor/execIndexing.c.
>>>
>>> That split makes a lot of sense to me.
>>
>> No objections here.
>
> Ok, moved.

I wrote a little overview text on how unique and exclusion constraints
are enforced. Most of the information can be gleaned from comments
elsewhere, but I think it's helpful to have it in one place. Makes it
easier to compare how unique and exclusion constraints work. The
harmless deadlocks with exclusion constraints are not explained
elsewhere AFAICS.

This is also in preparation for Peter's INSERT ON CONFLICT patch. That
will add another section explaining how the deadlocks and livelocks are
avoided. That's easier to understand after you grok the potential for
deadlocks with exclusion constraints.

This also removes a comment from 1989 claiming that the code should be
moved elsewhere. I think the code is in the right place.

- Heikki


Вложения

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

Предыдущее
От: Stephen Frost
Дата:
Сообщение: Re: Fwd: [GENERAL] 4B row limit for CLOB tables
Следующее
От: Joel Jacobson
Дата:
Сообщение: Re: PL/pgSQL, RAISE and error context