Re: Assert for frontend programs?

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Assert for frontend programs?
Date: 2012-12-14 21:28:24
Message-ID: 50CB99F8.9080308@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


On 12/14/2012 04:23 PM, Peter Eisentraut wrote:
> On 12/14/12 11:33 AM, Tom Lane wrote:
>> Works for me. So just rename that to Assert() and move it into
>> postgres-fe.h?
> Or just call assert() and don't invent our own layer?

Well, part of the point is that it lets you use Assert() in code that
might be run in both the frontend and the backend.

cheers

andrew

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2012-12-14 21:50:18 Re: Parser Cruft in gram.y
Previous Message Peter Eisentraut 2012-12-14 21:23:57 Re: Assert for frontend programs?