Skip to content

Commit 873f81f

Browse files
author
Burak Yücesoy
authored
Merge pull request #59 from citusdata/release-2.11
Release 2.11
2 parents 3a6fa3c + 3551e79 commit 873f81f

File tree

9 files changed

+72
-37
lines changed

9 files changed

+72
-37
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ matrix:
99
- env: PGVERSION=9.6
1010
- env: PGVERSION=10
1111
- env: PGVERSION=11
12-
allow_failures:
1312
- env: PGVERSION=11
1413
before_install:
1514
- git clone -b v0.7.5 --depth 1 https://github.com/citusdata/tools.git

CHANGELOG.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2018-08-25
2+
==========
3+
v2.11 - Updated for PostgreSQL 11
4+
15
2017-06-22
26
==========
37
v2.10.2 - Updated for PostgreSQL 10
@@ -8,20 +12,20 @@ v2.10.1 - Updated for PostgreSQL 9.4 and 9.5.
812

913
2014-01-10
1014
==========
11-
v2.10.0 - Merged [PR #17](https://github.com/aggregateknowledge/postgresql-hll/pull/17), cleaned up compiler warnings and test cruft, added binary IO type for hll.
15+
v2.10.0 - Merged [PR #17](https://github.com/citusdata/postgresql-hll/pull/17), cleaned up compiler warnings and test cruft, added binary IO type for hll.
1216

1317
2013-12-16
1418
==========
15-
v2.9.0 - Fixed [issue #16](https://github.com/aggregateknowledge/postgresql-hll/issues/16), `bitstream_pack` fixed to write one byte at a time to avoid writing to unallocated memory.
19+
v2.9.0 - Fixed [issue #16](https://github.com/citusdata/postgresql-hll/issues/16), `bitstream_pack` fixed to write one byte at a time to avoid writing to unallocated memory.
1620

1721
2013-07-16
1822
==========
19-
v2.8.0 - Fixed [issue #2](https://github.com/aggregateknowledge/postgresql-hll/issues/2), `hll_add_agg` now returns `hll_empty` on input of an empty set. (Thanks to @ozgune!)
23+
v2.8.0 - Fixed [issue #2](https://github.com/citusdata/postgresql-hll/issues/2), `hll_add_agg` now returns `hll_empty` on input of an empty set. (Thanks to @ozgune!)
2024

2125
2013-06-12
2226
==========
2327
v2.7.1 - Build fixes for OS X and Debian. Documentation fixes. Small changes to test format to improve stability across `psql` versions.
2428

2529
2013-02-04
2630
==========
27-
v2.7 - First open-source release.
31+
v2.7 - First open-source release.

Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414
EXTENSION = hll
15-
EXTVERSION = 2.10
15+
EXTVERSIONS = 2.10 2.11
1616

17-
DATA_built = $(EXTENSION)--$(EXTVERSION).sql
17+
DATA_built = $(foreach v,$(EXTVERSIONS),$(EXTENSION)--$(v).sql)
1818
DATA = $(wildcard $(EXTENSION)--*--*.sql)
1919

2020
MODULE_big = $(EXTENSION)
@@ -33,4 +33,5 @@ src/hll.o: override CFLAGS += -std=c99
3333

3434
$(EXTENSION)--2.10.sql: $(EXTENSION).sql
3535
cat $^ > $@
36-
36+
$(EXTENSION)--2.11.sql: $(EXTENSION)--2.10.sql $(EXTENSION)--2.10--2.11.sql
37+
cat $^ > $@

README.md

Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -363,23 +363,25 @@ Compatibility
363363

364364
This module has been tested on:
365365

366-
* **Postgres 9.0, 9.1, 9.2, 9.3, 9.4**
366+
* **Postgres 9.4, 9.5, 9.6, 10, 11**
367367

368368
If you end up needing to change something to get this running on another system, send us the diff and we'll try to work it in!
369369

370+
Note: At the moment postgresql-hll does not wotk with 32bit systems.
371+
370372
Build
371373
=====
372374

373375
## With `rpmbuild` ##
374376

375377
Specify versions:
376378

377-
export VER=2.10.0
378-
export PGSHRT=93
379+
export VER=2.11
380+
export PGSHRT=11
379381

380382
Make sure `Makefile` points to the correct `pg_config` for the specified version, since `rpmbuild` doesn't respect env variables:
381383

382-
PG_CONFIG = /usr/pgsql-9.3/bin/pg_config
384+
PG_CONFIG = /usr/pgsql-11/bin/pg_config
383385

384386
Create a tarball from the source tree:
385387

@@ -392,18 +394,18 @@ Execute rpmbuild:
392394

393395
Install RPM:
394396

395-
rpm -Uv rpmbuild/RPMS/x86_64/postgresql91-hll-2.10.0-0.x86_64.rpm
397+
rpm -Uv rpmbuild/RPMS/x86_64/postgresql11-hll-2.11.x86_64.rpm
396398

397399
And if you want the debugging build:
398400

399-
rpm -Uv rpmbuild/RPMS/x86_64/postgresql91-hll-debuginfo-2.10.0-0.x86_64.rpm
401+
rpm -Uv rpmbuild/RPMS/x86_64/postgresql11-hll-debuginfo-2.11.x86_64.rpm
400402

401403

402404
## From source ##
403405

404406
If you aren't using the `pg_config` on your path (or don't have it on your path), specify the correct one to build against:
405407

406-
PG_CONFIG=/usr/pgsql-9.3/bin/pg_config make
408+
PG_CONFIG=/usr/pgsql-9.11/bin/pg_config make
407409

408410
Or to build with what's on your path, just:
409411

@@ -437,28 +439,21 @@ And then just verify it's there:
437439
List of installed extensions
438440
Name | Version | Schema | Description
439441
---------+---------+------------+-----------------------------------
440-
hll | 2.10.0 | public | type for storing hyperloglog data
442+
hll | 2.11 | public | type for storing hyperloglog data
441443
plpgsql | 1.0 | pg_catalog | PL/pgSQL procedural language
442444
(2 rows)
443445

444446
Tests
445447
=====
446448

447-
Create the regression database:
448-
449-
psql -d postgres
450-
CREATE DATABASE hll_regress;
451-
452-
Create the extension in the created database:
449+
Start a PostgreSQL server running in default port:
453450

454-
psql -d hll_regress
455-
CREATE EXTENSION hll;
451+
pg_ctl -D data -l logfile -c start
452+
initdb -D data
456453

457-
Run the regression:
454+
Run the tests:
458455

459-
cd regress
460-
make clean
461-
make -j5
456+
make installcheck
462457

463458
* * * * * * * * * * * * * * * * * * * * * * * * *
464459

expected/setup.out

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
CREATE EXTENSION hll;
1+
CREATE EXTENSION hll VERSION '2.10';
2+
ALTER EXTENSION hll UPDATE TO '2.11';

hll--2.10--2.11.sql

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
DROP AGGREGATE hll_add_agg (hll_hashval);
2+
DROP AGGREGATE hll_add_agg (hll_hashval, integer);
3+
DROP AGGREGATE hll_add_agg (hll_hashval, integer, integer);
4+
DROP AGGREGATE hll_add_agg (hll_hashval, integer, integer, bigint);
5+
DROP AGGREGATE hll_add_agg (hll_hashval, integer, integer, bigint, integer);
6+
7+
CREATE AGGREGATE hll_add_agg (hll_hashval) (
8+
SFUNC = hll_add_trans0,
9+
STYPE = internal,
10+
SSPACE = 131120,
11+
FINALFUNC = hll_pack
12+
);
13+
14+
CREATE AGGREGATE hll_add_agg (hll_hashval, integer) (
15+
SFUNC = hll_add_trans1,
16+
STYPE = internal,
17+
SSPACE = 131120,
18+
FINALFUNC = hll_pack
19+
);
20+
21+
CREATE AGGREGATE hll_add_agg (hll_hashval, integer, integer) (
22+
SFUNC = hll_add_trans2,
23+
STYPE = internal,
24+
SSPACE = 131120,
25+
FINALFUNC = hll_pack
26+
);
27+
28+
CREATE AGGREGATE hll_add_agg (hll_hashval, integer, integer, bigint) (
29+
SFUNC = hll_add_trans3,
30+
STYPE = internal,
31+
SSPACE = 131120,
32+
FINALFUNC = hll_pack
33+
);
34+
35+
CREATE AGGREGATE hll_add_agg (hll_hashval, integer, integer, bigint, integer) (
36+
SFUNC = hll_add_trans4,
37+
STYPE = internal,
38+
SSPACE = 131120,
39+
FINALFUNC = hll_pack
40+
);

hll.control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414

1515
# hll extension
1616
comment = 'type for storing hyperloglog data'
17-
default_version = '2.10'
17+
default_version = '2.11'
1818
module_pathname = '$libdir/hll'

hll.sql

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,6 @@ CREATE FUNCTION hll_ceil_card_unpacked(internal)
465465
CREATE AGGREGATE hll_union_agg (hll) (
466466
SFUNC = hll_union_trans,
467467
STYPE = internal,
468-
SSPACE = 131113,
469468
FINALFUNC = hll_pack
470469
);
471470

@@ -476,38 +475,33 @@ CREATE AGGREGATE hll_union_agg (hll) (
476475
CREATE AGGREGATE hll_add_agg (hll_hashval) (
477476
SFUNC = hll_add_trans0,
478477
STYPE = internal,
479-
SSPACE = 131113,
480478
FINALFUNC = hll_pack
481479
);
482480

483481
-- Add aggregate function, returns hll.
484482
CREATE AGGREGATE hll_add_agg (hll_hashval, integer) (
485483
SFUNC = hll_add_trans1,
486484
STYPE = internal,
487-
SSPACE = 131113,
488485
FINALFUNC = hll_pack
489486
);
490487

491488
-- Add aggregate function, returns hll.
492489
CREATE AGGREGATE hll_add_agg (hll_hashval, integer, integer) (
493490
SFUNC = hll_add_trans2,
494491
STYPE = internal,
495-
SSPACE = 131113,
496492
FINALFUNC = hll_pack
497493
);
498494

499495
-- Add aggregate function, returns hll.
500496
CREATE AGGREGATE hll_add_agg (hll_hashval, integer, integer, bigint) (
501497
SFUNC = hll_add_trans3,
502498
STYPE = internal,
503-
SSPACE = 131113,
504499
FINALFUNC = hll_pack
505500
);
506501

507502
-- Add aggregate function, returns hll.
508503
CREATE AGGREGATE hll_add_agg (hll_hashval, integer, integer, bigint, integer) (
509504
SFUNC = hll_add_trans4,
510505
STYPE = internal,
511-
SSPACE = 131113,
512506
FINALFUNC = hll_pack
513507
);

sql/setup.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
CREATE EXTENSION hll;
1+
CREATE EXTENSION hll VERSION '2.10';
2+
ALTER EXTENSION hll UPDATE TO '2.11';

0 commit comments

Comments
 (0)