Re: Implementing SQL ASSERTION

Поиск
Список
Период
Сортировка
Искать
От
Joe Wildish
Тема
Re: Implementing SQL ASSERTION
Дата
Msg-id
467051FC-B88B-4550-A1C8-AAA2076DF029@elusive.cx
Ответ на
Список
Дерево обсуждения
Implementing SQL ASSERTION Joe Wildish <joe-postgresql.com@elusive.cx>
Re: Implementing SQL ASSERTION Peter Eisentraut <peter_e@gmx.net>
Re: Implementing SQL ASSERTION Joe Wildish <joe-postgresql.org@elusive.cx>
Re: Implementing SQL ASSERTION Fabien COELHO <coelho@cri.ensmp.fr>
Re: Implementing SQL ASSERTION Joe Wildish <joe-postgresql.org@elusive.cx>
Re: Implementing SQL ASSERTION Fabien COELHO <coelho@cri.ensmp.fr>
Re: Implementing SQL ASSERTION David Fetter <david@fetter.org>
Re: Implementing SQL ASSERTION Robert Haas <robertmhaas@gmail.com>
Re: Implementing SQL ASSERTION Thomas Munro <thomas.munro@enterprisedb.com>
Re: Implementing SQL ASSERTION Joe Wildish <joe-postgresql.org@elusive.cx>
Re: Implementing SQL ASSERTION David Fetter <david@fetter.org>
Re: Implementing SQL ASSERTION Joe Wildish <joe-postgresql.org@elusive.cx>
Re: Implementing SQL ASSERTION David Fetter <david@fetter.org>
Re: Implementing SQL ASSERTION Joe Wildish <joe-postgresql.org@elusive.cx>
Re: Implementing SQL ASSERTION David Fetter <david@fetter.org>
Re: Implementing SQL ASSERTION David Fetter <david@fetter.org>
Re: Implementing SQL ASSERTION Joe Wildish <joe-postgresql.org@elusive.cx>
Re: Implementing SQL ASSERTION David Fetter <david@fetter.org>
Re: Implementing SQL ASSERTION Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: Implementing SQL ASSERTION Joe Wildish <joe-postgresql.org@elusive.cx>
Re: Implementing SQL ASSERTION Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: Implementing SQL ASSERTION Joe Wildish <joe-postgresql.org@elusive.cx>
Re: Implementing SQL ASSERTION David Fetter <david@fetter.org>
Re: Implementing SQL ASSERTION Joe Wildish <joe-postgresql.org@elusive.cx>
Re: Implementing SQL ASSERTION Andrew Gierth <andrew@tao11.riddles.org.uk>
Re: Implementing SQL ASSERTION Joe Wildish <joe-postgresql.org@elusive.cx>
Re: Implementing SQL ASSERTION Andrew Gierth <andrew@tao11.riddles.org.uk>
Re: Implementing SQL ASSERTION Dmitry Dolgov <9erthalion6@gmail.com>
Re: Implementing SQL ASSERTION Andres Freund <andres@anarazel.de>
Re: Implementing SQL ASSERTION Robert Haas <robertmhaas@gmail.com>
Re: Implementing SQL ASSERTION Joe Wildish <joe-postgresql.com@elusive.cx>
Re: Implementing SQL ASSERTION David Fetter <david@fetter.org>
Re: Implementing SQL ASSERTION Joe Wildish <joe-postgresql.com@elusive.cx>
Hi David,

> On 26 Sep 2018, at 19:47, David Fetter  wrote:
> 
>> Invalidating operations are "INSERT(t) and UPDATE(t.b, t.n)".
> 
> So would DELETE(t), assuming n can be negative.

Oops, right you are. Bug in my implementation :-) 

> Is there some interesting and fairly easily documented subset of
> ASSERTIONs that wouldn't have the "can't prove" property?

We can certainly know at the time the ASSERTION is created if we
can use the transition table optimisation, as that relies upon
the expression being written in such a way that a key can be
derived for each expression.

We could warn or disallow the creation on that basis. Ceri & Widom
mention this actually in their papers, and their view is that most
real-world use cases do indeed allow themselves to be optimised
using the transition tables.

-Joe



В списке pgsql-hackers по дате отправления
От: Andrew Dunstan
Дата:
Сообщение: Re: Cygwin linking rules
От: David Hedberg
Дата:
FAQ