Re: MemSetLoop ignoring the 'val' parameter

Andres Freund <andres@2ndquadrant.com>

From: Andres Freund <andres@2ndquadrant.com>
To: pgsql-hackers@postgresql.org
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2012-10-08T23:02:57Z
Lists: pgsql-hackers
On Tuesday, October 09, 2012 12:56:16 AM Tom Lane wrote:
> Andres Freund <andres@2ndquadrant.com> writes:
> > The 'val' parameter is ignored.
> 
> This is not broken.  Read the comments for MemSetTest.
Ah. I was surprised about that already. The comment says that val has to be 
constant though, not that it has to be zero. In my understanding 1 is constant 
as well. Also, why do we even pass in a 'val' parameter in that case?

Feeling a little slow here...

Andres
-- 
 Andres Freund	                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services