Re: Assertions in PL/PgSQL - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Assertions in PL/PgSQL
Date
Msg-id 1379255653.28789.3.camel@vanquo.pezone.net
Whole thread Raw
In response to Assertions in PL/PgSQL  (Marko Tiikkaja <marko@joh.to>)
Responses Re: Assertions in PL/PgSQL
List pgsql-hackers
On Sat, 2013-09-14 at 20:47 +0200, Marko Tiikkaja wrote:
> Attached is a patch for supporting assertions in PL/PgSQL.  These are
> similar to the Assert() backend macro: they can be disabled during
> compile time, but when enabled, abort execution if the passed expression
> is not true.

Doesn't build:

pl_exec.c: In function ‘exec_stmt_assert’:
pl_exec.c:3647:58: error: ‘ERRCODE_ASSERTION_FAILURE’ undeclared (first use in this function)
pl_exec.c:3647:58: note: each undeclared identifier is reported only once for each function it appears in





pgsql-hackers by date:

Previous
From: Greg Stark
Date:
Subject: Re: INSERT...ON DUPLICATE KEY LOCK FOR UPDATE
Next
From: Marko Tiikkaja
Date:
Subject: Re: Assertions in PL/PgSQL