Skip to content

Commit f4140aa

Browse files
author
Arseny Kositsyn
committed
[PGPRO-11599] Code review. Part 4.
Tags: rum
1 parent 1693779 commit f4140aa

File tree

8 files changed

+14
-7
lines changed

8 files changed

+14
-7
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ This module is available under the [license](LICENSE) similar to
4141

4242
Before building and installing **rum**, you should ensure following are installed:
4343

44-
* PostgreSQL version is 9.6+.
44+
* PostgreSQL version is 12+.
45+
46+
* PostgreSQL 9.6 - 11 (but you need to transfer the `src/backend/nodes/tidbitmap.c` of the required version to the `contrib/rum/src/tidbitmap/tidbitmapXX.c` and include it to `contrib/rum/src/rumtidbitmap.c`)
4547

4648
Typical installation procedure may look like this:
4749

src/rumtidbitmap.c

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,23 @@
1414

1515
#include "rumtidbitmap.h"
1616

17+
/*
18+
* NOTE: For compatibility with PostgreSQL versions less than 12,
19+
* you need to transfer the src/backend/nodes/tidbitmap.c of the
20+
* required version to the RUM and include it here.
21+
*/
1722
#if PG_VERSION_NUM >= 170000
18-
#include "tidbitmap17.c"
23+
#include "tidbitmap/tidbitmap17.c"
1924
#elif PG_VERSION_NUM >= 160000
20-
#include "tidbitmap16.c"
25+
#include "tidbitmap/tidbitmap16.c"
2126
#elif PG_VERSION_NUM >= 150000
22-
#include "tidbitmap15.c"
27+
#include "tidbitmap/tidbitmap15.c"
2328
#elif PG_VERSION_NUM >= 140000
24-
#include "tidbitmap14.c"
29+
#include "tidbitmap/tidbitmap14.c"
2530
#elif PG_VERSION_NUM >= 130000
26-
#include "tidbitmap13.c"
31+
#include "tidbitmap/tidbitmap13.c"
2732
#elif PG_VERSION_NUM >= 120000
28-
#include "tidbitmap12.c"
33+
#include "tidbitmap/tidbitmap12.c"
2934
#endif
3035

3136
RumTIDBitmap *
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)