Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc97d8d4

Browse files
committed
Fix crc on 9.5.
1 parent9ecbabb commitc97d8d4

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

‎jsquery_op.c

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,15 @@
1616

1717
#include"miscadmin.h"
1818
#include"utils/builtins.h"
19-
#ifPG_VERSION_NUM >=90500
20-
#include"common/pg_crc.h"
21-
#defineCOMP_CRC32COMP_CRC32C
22-
#defineINIT_CRC32INIT_CRC32C
23-
#defineFIN_CRC32FIN_CRC32C
24-
#defineINIT_CRC32INIT_CRC32C
25-
#else
2619
#include"utils/pg_crc.h"
20+
#ifPG_VERSION_NUM >=90500
21+
/*
22+
* We have to keep same checksum algorithm as in pre-9.5 in order to be
23+
* pg_upgradeable.
24+
*/
25+
#defineINIT_CRC32INIT_LEGACY_CRC32
26+
#defineFIN_CRC32FIN_LEGACY_CRC32
27+
#defineCOMP_CRC32COMP_LEGACY_CRC32
2728
#endif
2829

2930
#include"jsquery.h"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp