We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ecbabb commit c97d8d4Copy full SHA for c97d8d4
jsquery_op.c
@@ -16,14 +16,15 @@
16
17
#include "miscadmin.h"
18
#include "utils/builtins.h"
19
-#if PG_VERSION_NUM >= 90500
20
-#include "common/pg_crc.h"
21
-#define COMP_CRC32 COMP_CRC32C
22
-#define INIT_CRC32 INIT_CRC32C
23
-#define FIN_CRC32 FIN_CRC32C
24
25
-#else
26
#include "utils/pg_crc.h"
+#if PG_VERSION_NUM >= 90500
+/*
+ * We have to keep same checksum algorithm as in pre-9.5 in order to be
+ * pg_upgradeable.
+ */
+#define INIT_CRC32 INIT_LEGACY_CRC32
+#define FIN_CRC32 FIN_LEGACY_CRC32
27
+#define COMP_CRC32 COMP_LEGACY_CRC32
28
#endif
29
30
#include "jsquery.h"
0 commit comments