git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 926f5ce) | patch
Fix some coding issues in BRIN
Sat, 8 Nov 2014 03:31:03 +0000 (00:31 -0300)
Sat, 8 Nov 2014 03:31:03 +0000 (00:31 -0300)
commit b89ee54e20e722bb91f388667586a2e0986f197b
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.
src/backend/access/brin/brin.c diff | blob | blame | history
src/backend/access/brin/brin_pageops.c diff | blob | blame | history
src/backend/access/brin/brin_revmap.c diff | blob | blame | history
src/backend/access/brin/brin_xlog.c diff | blob | blame | history
src/backend/access/rmgrdesc/brindesc.c diff | blob | blame | history
src/include/access/brin_internal.h diff | blob | blame | history
src/include/access/brin_xlog.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /