pgsql: Reorganize our CRC source files again. - Mailing list pgsql-committers

From Heikki Linnakangas
Subject pgsql: Reorganize our CRC source files again.
Date
Msg-id E1Yi1Wq-0000tL-Kf@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Reorganize our CRC source files again.

Now that we use CRC-32C in WAL and the control file, the "traditional" and
"legacy" CRC-32 variants are not used in any frontend programs anymore.
Move the code for those back from src/common to src/backend/utils/hash.

Also move the slicing-by-8 implementation (back) to src/port. This is in
preparation for next patch that will add another implementation that uses
Intel SSE 4.2 instructions to calculate CRC-32C, where available.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/4f700bcd20c087f60346cb8aefd0e269be8e2157

Modified Files
--------------
contrib/hstore/hstore_gist.c                |    2 +-
contrib/ltree/crc32.c                       |    2 +-
contrib/pg_trgm/trgm_op.c                   |    1 +
src/backend/access/transam/twophase.c       |   24 +-
src/backend/access/transam/xlog.c           |    6 +-
src/backend/access/transam/xloginsert.c     |    2 +-
src/backend/access/transam/xlogreader.c     |    2 +-
src/backend/replication/logical/snapbuild.c |    4 +-
src/backend/replication/slot.c              |    4 +-
src/backend/utils/adt/tsgistidx.c           |    1 +
src/backend/utils/adt/tsquery.c             |    2 +-
src/backend/utils/cache/relmapper.c         |    4 +-
src/backend/utils/hash/Makefile             |    2 +-
src/backend/utils/hash/pg_crc.c             |   97 +++
src/bin/pg_controldata/pg_controldata.c     |    2 +-
src/bin/pg_resetxlog/pg_resetxlog.c         |    4 +-
src/bin/pg_rewind/pg_rewind.c               |    2 +-
src/common/Makefile                         |    2 +-
src/common/pg_crc.c                         | 1252 ---------------------------
src/include/access/xlogrecord.h             |    6 +-
src/include/catalog/pg_control.h            |    4 +-
src/include/common/pg_crc.h                 |  142 ---
src/include/port/pg_crc32c.h                |   49 ++
src/include/utils/pg_crc.h                  |  107 +++
src/port/Makefile                           |    2 +-
src/port/pg_crc32c_sb8.c                    | 1169 +++++++++++++++++++++++++
src/tools/msvc/Mkvcbuild.pm                 |    4 +-
27 files changed, 1464 insertions(+), 1434 deletions(-)


pgsql-committers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: pgsql: Don't archive bogus recycled or preallocated files after timelin
Next
From: Heikki Linnakangas
Date:
Subject: pgsql: Use Intel SSE 4.2 CRC instructions where available.