You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18-43Lines changed: 18 additions & 43 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,8 @@ Roaring bitmaps are compressed bitmaps which tend to outperform conventional com
14
14
- PostgreSQL 10+
15
15
- Other Requirements from https://github.com/RoaringBitmap/CRoaring
16
16
17
+
Note: The regression testing before the version release only covers PostgreSQL 13 and above.
18
+
17
19
## Build
18
20
19
21
su - postgres
@@ -27,43 +29,16 @@ Note:You can use `make -f Makefile_native` instead of `make` to let the compiler
27
29
28
30
make installcheck
29
31
30
-
# Build on PostgreSQL 9.x or Greenplum 6.0
31
-
32
-
Parallel execution is not supported in PostgreSQL 9.5 and earlier.
33
-
If you want to compile on these early PostgreSQL versions or Greenplum 6.0(based on PostgreSQL 9.4), you need to remove the `PARALLEL` keyword from these SQL files.
34
-
35
-
cd pg_roaringbitmap
36
-
sed 's/PARALLEL SAFE//g' -i roaringbitmap--*.sql
37
-
sed -z 's/,[ \r\n]*PARALLEL = SAFE//g' -i roaringbitmap--*.sql
38
-
39
-
Then refer to [Build] above for building, such as the steps to build on Greenplum 6.0:
40
-
41
-
## Build
42
-
43
-
su - gpadmin
44
-
make
45
-
make install
46
-
psql -c "create extension roaringbitmap"
47
-
48
-
## Test
49
-
50
-
sudo yum install 'perl(Data::Dumper)'
51
-
make installcheck
52
-
53
-
Since the expected output is based on PostgreSQL 10+, this test will not pass.
54
-
Check the difference in the output file. If the execution results are the same, only the execution plan or other content that is not related to pg_roaringbitmap` is different, the test can be considered OK.
Logically, you could think of roaringbitmap data type as `bit(4294967296)`, and it should be noted that
63
38
the integers added to bitmaps is considered to be unsigned. Within bitmaps, numbers are ordered according to uint32. We order the numbers like 0, 1, ..., 2147483647, -2147483648, -2147483647,..., -1. But we use bigint to
64
39
reference the range of these integers, that is [0 4294967296).
65
40
66
-
## input and ouput
41
+
###input and ouput
67
42
68
43
Support two kind of input/output syntax 'array' and 'bytea',
69
44
The default output format is 'bytea'.
@@ -101,49 +76,49 @@ output format can changed by `roaringbitmap.output_format`
101
76
{1}
102
77
(1 row)
103
78
104
-
105
-
## Use bitmap as type of column
79
+
### sample of usage
80
+
####Use bitmap as type of column
106
81
107
82
CREATE TABLE t1 (id integer, bitmap roaringbitmap);
108
83
109
84
110
-
## Build bitmap from integers
85
+
####Build bitmap from integers
111
86
112
87
INSERT INTO t1 SELECT 1,rb_build(ARRAY[1,2,3,4,5,6,7,8,9,200]);
113
88
114
89
INSERT INTO t1 SELECT 2,rb_build_agg(e) FROM generate_series(1,100) e;
0 commit comments