Re: gaussian distribution pgbench -- splits Bv6 - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: gaussian distribution pgbench -- splits Bv6
Date
Msg-id 20140724200119.GI5475@eldon.alvh.no-ip.org
Whole thread Raw
In response to Re: gaussian distribution pgbench -- splits Bv6  (Fabien COELHO <coelho@cri.ensmp.fr>)
List pgsql-hackers
Fabien COELHO wrote:

> I also have a problem with assert & Assert.  I finally figured out
> that Assert is not compiled in by default, thus it is generally
> ignored. So it is more for debugging purposes when activated than
> for guarding against some unexpected user errors.

Yes, Assert() is for debugging during development.  If you need to deal
with user error, use regular if () and exit() as appropriate (ereport()
in the backend).  We mostly avoid assert() in our own code.

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services



pgsql-hackers by date:

Previous
From: Fabrízio de Royes Mello
Date:
Subject: Re: Verbose output of pg_dump not show schema name
Next
From: Peter Geoghegan
Date:
Subject: Minor inaccuracy in jsonb_path_ops documentation