mirror of https://github.com/postgres/postgres
This makes it much more convenient to build tools for Postgres that are separately compiled and require a matching CRC implementation. To prevent multiple copies of the CRC polynomial tables being introduced into the postgres binaries, they are now included in the static library libpgport that is mainly meant for replacement system functions. That seems like a bit of a kludge, but there's no better place. This cleans up building of the tools pg_controldata and pg_resetxlog, which previously had to build their own copies of pg_crc.o. In the future, external programs that need access to the CRC tables can include the tables directly from the new header file pg_crc_tables.h. Daniel Farina, reviewed by Abhijit Menon-Sen and Tom Lanepull/3/head
parent
0140a11b9b
commit
5c02a00d44
@ -1,3 +1 @@ |
||||
/pg_crc.c |
||||
|
||||
/pg_controldata |
||||
|
||||
@ -1,3 +1 @@ |
||||
/pg_crc.c |
||||
|
||||
/pg_resetxlog |
||||
|
||||
@ -0,0 +1,21 @@ |
||||
/*-------------------------------------------------------------------------
|
||||
* |
||||
* pg_crc.c |
||||
* PostgreSQL CRC support |
||||
* |
||||
* This file simply #includes the CRC table definitions so that they are |
||||
* available to programs linked with libpgport. |
||||
* |
||||
* Portions Copyright (c) 1996-2012, PostgreSQL Global Development Group |
||||
* Portions Copyright (c) 1994, Regents of the University of California |
||||
* |
||||
* |
||||
* IDENTIFICATION |
||||
* src/port/pg_crc.c |
||||
* |
||||
*------------------------------------------------------------------------- |
||||
*/ |
||||
|
||||
#include "c.h" |
||||
|
||||
#include "utils/pg_crc_tables.h" |
||||
Loading…
Reference in new issue