Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into NT-V2_0_2
Browse files Browse the repository at this point in the history
  • Loading branch information
smmathews-brandwatch committed Oct 10, 2023
2 parents c1ee25c + 9aa507d commit eb795b4
Show file tree
Hide file tree
Showing 8 changed files with 61 additions and 2,740 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# This workflow will build & run tests
name: CI

on:
push:
branches: [main]
pull_request:

jobs:
test:
strategy:
matrix:
pg: [ 16, 15, 14, 13, 12, 11 ]
name: 🐘 PostgreSQL ${{ matrix.pg }}
runs-on: ubuntu-latest
container: pgxn/pgxn-tools
steps:
- name: Start PostgreSQL ${{ matrix.pg }}
run: pg-start ${{ matrix.pg }}
- name: Check out the repo
uses: actions/checkout@v3
- name: Test on PostgreSQL ${{ matrix.pg }}
run: pg-build-test
40 changes: 0 additions & 40 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions META.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "pg_roaringbitmap",
"abstract": "A Roaring Bitmap data type",
"description": "This library contains a single PostgreSQL extension, a Roaring Bitmap data type called 'roaringbitmap', along with some convenience opperators and functions for constructing and handling Roaring Bitmap.",
"version": "0.5.4",
"version": "0.6.0",
"maintainer": [
"Chen Huajun <[email protected]>"
],
Expand All @@ -12,7 +12,7 @@
"abstract": "A Roaring Bitmap data type",
"file": "roaringbitmap--0.5.sql",
"docfile": "README.md",
"version": "0.5.4"
"version": "0.6.0"
}
},
"resources": {
Expand Down
32 changes: 2 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# pg_roaringbitmap
RoaringBitmap extension for PostgreSQL.

It's initial based on https://github.com/zeromax007/gpdb-roaringbitmap.

It's initially based on https://github.com/zeromax007/gpdb-roaringbitmap
and later forked from https://github.com/ChenHuajun/pg_roaringbitmap

# Introduction
Roaring bitmaps are compressed bitmaps which tend to outperform conventional compressed bitmaps such as WAH, EWAH or Concise. In some instances, roaring bitmaps can be hundreds of times faster and they often offer significantly better compression. They can even be faster than uncompressed bitmaps. More information https://github.com/RoaringBitmap/CRoaring .
Expand All @@ -27,34 +27,6 @@ Note:You can use `make -f Makefile_native` instead of` make` to let the compiler

make installcheck

# Build on PostgreSQL 9.x or Greenplum 6.0

Parallel execution is not supported in PostgreSQL 9.5 and earlier.
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.

cd pg_roaringbitmap
sed 's/PARALLEL SAFE//g' -i roaringbitmap--*.sql
sed -z 's/,[ \r\n]*PARALLEL = SAFE//g' -i roaringbitmap--*.sql

Then refer to [Build] above for building, such as the steps to build on Greenplum 6.0:

## Build

su - gpadmin
make
make install
psql -c "create extension roaringbitmap"

## Test

sudo yum install 'perl(Data::Dumper)'
make installcheck

Since the expected output is based on PostgreSQL 10+, this test will not pass.
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.

diff results/roaringbitmap.out expected/roaringbitmap_gpdb6.out

# Usage

## about roaringbitmap data type
Expand Down
Loading

0 comments on commit eb795b4

Please sign in to comment.