Re: proposal: plpgsql - Assert statement - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: proposal: plpgsql - Assert statement
Date
Msg-id 5419E2A9.8060102@gmx.net
Whole thread Raw
In response to Re: proposal: plpgsql - Assert statement  (Pavel Stehule <pavel.stehule@gmail.com>)
Responses Re: proposal: plpgsql - Assert statement
Re: proposal: plpgsql - Assert statement
List pgsql-hackers
On 9/17/14 3:04 PM, Pavel Stehule wrote:
> What is difference between content of variable or content of database?
> You can test any prerequisite, but when this prerequisite is not solved,
> than exception is very very hard without possible handling.

If the assertion tests arbitrary Boolean expressions, then we can't stop
the user from abusing them.

But it's another thing if we design specific syntax that encourages such
abuse, as proposed earlier.




pgsql-hackers by date:

Previous
From: Szymon Guz
Date:
Subject: Re: printing table in asciidoc with psql
Next
From: Simon Riggs
Date:
Subject: Re: Turning off HOT/Cleanup sometimes