Re: User-facing aspects of serializable transactions

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: User-facing aspects of serializable transactions
Дата
Msg-id 4A1E829B.3020406@enterprisedb.com
обсуждение исходный текст
Ответ на Re: User-facing aspects of serializable transactions  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: User-facing aspects of serializable transactions  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
Peter Eisentraut wrote:
> On Thursday 28 May 2009 04:49:19 Tom Lane wrote:
>> Yeah.  The fundamental problem with all the "practical" approaches I've
>> heard of is that they only work for a subset of possible predicates
>> (possible WHERE clauses).  The idea that you get true serializability
>> only if your queries are phrased just so is ... icky.  So icky that
>> it doesn't sound like an improvement over what we have.
> 
> Is it even possible to have a predicate locking implementation that can verify 
> whether an arbitrary predicate implies another arbitrary predicate?

I don't think you need that for predicate locking. To determine if e.g 
an INSERT and a SELECT conflict, you need to determine if the INSERTed 
tuple matches the predicate in the SELECT. No need to deduce anything 
between two predicates, but between a tuple and a predicate.

--   Heikki Linnakangas  EnterpriseDB   http://www.enterprisedb.com


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

Предыдущее
От: Stephen Frost
Дата:
Сообщение: Re: search_path vs extensions
Следующее
От: Stephen Frost
Дата:
Сообщение: Re: search_path vs extensions