pgsql: Rename CACHE_LINE_SIZE to PG_CACHE_LINE_SIZE.

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Rename CACHE_LINE_SIZE to PG_CACHE_LINE_SIZE.
Date: 2014-10-01 10:24:02
Message-ID: E1XZH4k-0001JH-7L@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Rename CACHE_LINE_SIZE to PG_CACHE_LINE_SIZE.

As noted in http://bugs.debian.org/763098 there is a conflict between
postgres' definition of CACHE_LINE_SIZE and the definition by various
*bsd platforms. It's debatable who has the right to define such a
name, but postgres' use was only introduced in 375d8526f290 (9.4), so
it seems like a good idea to rename it.

Discussion: 20140930195756(dot)GC27407(at)msg(dot)df7cb(dot)de

Per complaint of Christoph Berg in the above email, although he's not
the original bug reporter.

Backpatch to 9.4 where the define was introduced.

Branch
------
REL9_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/f78319fec8eb8aed34d6e1e43ca35fb0a9bfe108

Modified Files
--------------
src/backend/access/transam/xlog.c | 4 ++--
src/include/pg_config_manual.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2014-10-01 11:33:53 pgsql: Improve documentation about binary/textual output mode for outpu
Previous Message Andres Freund 2014-10-01 10:23:53 pgsql: Rename CACHE_LINE_SIZE to PG_CACHE_LINE_SIZE.