Re: MERGE vs REPLACE

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: MERGE vs REPLACE
Дата
Msg-id 22373.1131751078@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: MERGE vs REPLACE  (Josh Berkus <josh@agliodbs.com>)
Ответы Re: MERGE vs REPLACE  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
Josh Berkus <josh@agliodbs.com> writes:
> But even REPLACE requires predicate locking.  There's no real way to get 
> around it.

The point though is that REPLACE is restricted to a type of predicate
narrow enough to be enforced through a unique-index mechanism, and so
it's implementable without solving the general case of predicate
locking.

Predicate locking for narrow cases isn't very hard; it's the general
case of arbitrary predicates that's hard.
        regards, tom lane


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

Предыдущее
От: Rod Taylor
Дата:
Сообщение: Re: MERGE vs REPLACE
Следующее
От: Gavin Sherry
Дата:
Сообщение: Re: MERGE vs REPLACE