On 2019-Dec-18, Robert Haas wrote:

> - code: Declare values/nulls arrays only once at function scope
> instead of 3x, and tighten up code, per Andres and self-review.

Really small nit: I'd rather have the "nulls" assignment in all cases
even when the previous value is still valid.  This tight coding seems
weirdly asymmetrical.

Can we please stop splitting this error message in two?

+                errmsg("materialize mode required, but it is not " \
+                       "allowed in this context")));

(What's with the newline escape there anyway?)


Shmem structs are cacheline-aligned; the padding space is not AFAICS
considered in ShmemIndexEnt->size.  The reported size would be
under-reported (or reported as "anonymous"?)  I think we should include
the alignment padding, for clarity.

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


Reply via email to