From: | Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Fix some coding issues in BRIN |
Date: | 2014-11-08 03:32:02 |
Message-ID: | E1Xmwks-0001EP-2f@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Fix some coding issues in BRIN
Reported by David Rowley: variadic macros are a problem. Get rid of
them using a trick suggested by Tom Lane: add extra parentheses where
needed. In the future we might decide we don't need the calls at all
and remove them, but it seems appropriate to keep them while this code
is still new.
Also from David Rowley: brininsert() was trying to use a variable before
initializing it. Fix by moving the brin_form_tuple call (which
initializes the variable) to within the locked section.
Reported by Peter Eisentraut: can't use "new" as a struct member name,
because C++ compilers will choke on it, as reported by cpluspluscheck.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/b89ee54e20e722bb91f388667586a2e0986f197b
Modified Files
--------------
src/backend/access/brin/brin.c | 11 +++++------
src/backend/access/brin/brin_pageops.c | 20 ++++++++++----------
src/backend/access/brin/brin_revmap.c | 4 ----
src/backend/access/brin/brin_xlog.c | 4 ++--
src/backend/access/rmgrdesc/brindesc.c | 12 ++++++------
src/include/access/brin_internal.h | 9 ++++-----
src/include/access/brin_xlog.h | 4 ++--
7 files changed, 29 insertions(+), 35 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Thom Brown | 2014-11-08 22:41:26 | Re: pgsql: BRIN: Block Range Indexes |
Previous Message | Peter Eisentraut | 2014-11-08 01:51:19 | pgsql: pg_basebackup: Adjust tests for long file name issues |