Re: inline newNode()

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Neil Conway <neilc(at)samurai(dot)com>, PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: inline newNode()
Date: 2002-10-08 21:41:24
Message-ID: Pine.LNX.4.44.0210082100400.928-100000@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Tom Lane writes:

> A brute-force approach is to say "we know _start is word-aligned because
> we just got it from palloc, which guarantees MAXALIGNment". We could
> make a variant version of MemSet that omits the alignment check, and use
> it here and anywhere else we're sure it's safe.

Or make a version of palloc that zeroes the memory.

--
Peter Eisentraut peter_e(at)gmx(dot)net

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2002-10-08 21:41:41 Re: inline newNode()
Previous Message Joe Conway 2002-10-08 18:33:03 Re: Where to call SetQuerySnapshot

Browse pgsql-patches by date

  From Date Subject
Next Message Peter Eisentraut 2002-10-08 21:41:41 Re: inline newNode()
Previous Message pgsql-bugs 2002-10-08 21:07:08 Bug #794: JDBC 7.3 PreparedStatement.setNull(..) .setObject(.., null) throws exception