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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 40bede5) | patch
Move pg_crc.c to src/common, and remove pg_crc_tables.h
Mon, 9 Feb 2015 09:17:56 +0000 (11:17 +0200)
Mon, 9 Feb 2015 09:17:56 +0000 (11:17 +0200)
commit c619c2351f7ec429b6ddce519c939f7b8465d711
Move pg_crc.c to src/common, and remove pg_crc_tables.h

To get CRC functionality in a client program, you now need to link with
libpgcommon instead of libpgport. The CRC code has nothing to do with
portability, so libpgcommon is a better home. (libpgcommon didn't exist
when pg_crc.c was originally moved to src/port.)

Remove the possibility to get CRC functionality by just #including
pg_crc_tables.h. I'm not aware of any extensions that actually did that and
couldn't simply link with libpgcommon.

This also moves the pg_crc.h header file from src/include/utils to
src/include/common, which will require changes to any external programs
that currently does #include "utils/pg_crc.h". That seems acceptable, as
include/common is clearly the right home for it now, and the change needed
to any such programs is trivial.
contrib/hstore/hstore_gist.c diff | blob | blame | history
contrib/ltree/crc32.c diff | blob | blame | history
src/backend/utils/adt/tsquery.c diff | blob | blame | history
src/common/Makefile diff | blob | blame | history
src/common/pg_crc.c [moved from src/include/utils/pg_crc_tables.h with 93% similarity] diff | blob | blame | history
src/include/access/xlogrecord.h diff | blob | blame | history
src/include/catalog/pg_control.h diff | blob | blame | history
src/include/common/pg_crc.h [moved from src/include/utils/pg_crc.h with 99% similarity] diff | blob | blame | history
src/include/tsearch/ts_type.h diff | blob | blame | history
src/port/Makefile diff | blob | blame | history
src/port/pg_crc.c [deleted file] blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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