diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2015-02-09 11:17:56 +0200 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2015-02-09 11:17:56 +0200 |
commit | c619c2351f7ec429b6ddce519c939f7b8465d711 (patch) | |
tree | eabcc2b0f7a82b65e7b7e227926a9ab304133225 /src/include/access/xlogrecord.h | |
parent | 40bede5477bb5bce98ce9548841cb414634c26f7 (diff) |
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.
Diffstat (limited to 'src/include/access/xlogrecord.h')
-rw-r--r-- | src/include/access/xlogrecord.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/access/xlogrecord.h b/src/include/access/xlogrecord.h index ff77db80379..25a92657b85 100644 --- a/src/include/access/xlogrecord.h +++ b/src/include/access/xlogrecord.h @@ -13,9 +13,9 @@ #include "access/rmgr.h" #include "access/xlogdefs.h" +#include "common/pg_crc.h" #include "storage/block.h" #include "storage/relfilenode.h" -#include "utils/pg_crc.h" /* * The overall layout of an XLOG record is: |