diff -Nru postgresql-pgmp-1.0.1/debian/changelog postgresql-pgmp-1.0.2/debian/changelog --- postgresql-pgmp-1.0.1/debian/changelog 2014-07-28 05:43:18.000000000 +0000 +++ postgresql-pgmp-1.0.2/debian/changelog 2016-01-08 17:36:16.000000000 +0000 @@ -1,8 +1,14 @@ -postgresql-pgmp (1.0.1-6build1) utopic; urgency=medium +postgresql-pgmp (1.0.2-2) unstable; urgency=medium - * Rebuild against postgresql-common with 9.4 as default + * Suppress hash index warning in testsuite to fix 9.5 build. - -- Martin Pitt Mon, 28 Jul 2014 07:43:18 +0200 + -- Christoph Berg Fri, 08 Jan 2016 18:36:07 +0100 + +postgresql-pgmp (1.0.2-1) experimental; urgency=medium + + * New upstream release. + + -- Christoph Berg Sat, 17 Jan 2015 22:30:36 +0100 postgresql-pgmp (1.0.1-6) unstable; urgency=medium diff -Nru postgresql-pgmp-1.0.1/debian/control postgresql-pgmp-1.0.2/debian/control --- postgresql-pgmp-1.0.1/debian/control 2014-07-25 20:16:07.000000000 +0000 +++ postgresql-pgmp-1.0.2/debian/control 2016-01-08 17:35:52.000000000 +0000 @@ -4,16 +4,16 @@ Maintainer: Debian PostgreSQL Maintainers Uploaders: Christoph Berg Build-Depends: debhelper (>= 9), libgmp-dev, postgresql-server-dev-all (>= 158~), python-minimal -Standards-Version: 3.9.5 +Standards-Version: 3.9.6 Homepage: https://github.com/dvarrazzo/pgmp Vcs-Git: git://anonscm.debian.org/pkg-postgresql/postgresql-pgmp.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-postgresql/postgresql-pgmp.git XS-Testsuite: autopkgtest -Package: postgresql-9.4-pgmp +Package: postgresql-9.5-pgmp Architecture: any -Depends: ${shlibs:Depends}, ${misc:Depends}, postgresql-9.4 -Description: arbitrary precision integers and rationals for PostgreSQL 9.4 +Depends: ${shlibs:Depends}, ${misc:Depends}, postgresql-9.5 +Description: arbitrary precision integers and rationals for PostgreSQL 9.5 pgmp is a PostgreSQL extension to add the GMP data types and functions directly into the database. . diff -Nru postgresql-pgmp-1.0.1/debian/control.in postgresql-pgmp-1.0.2/debian/control.in --- postgresql-pgmp-1.0.1/debian/control.in 2014-07-06 13:46:44.000000000 +0000 +++ postgresql-pgmp-1.0.2/debian/control.in 2015-01-17 21:32:38.000000000 +0000 @@ -4,7 +4,7 @@ Maintainer: Debian PostgreSQL Maintainers Uploaders: Christoph Berg Build-Depends: debhelper (>= 9), libgmp-dev, postgresql-server-dev-all (>= 158~), python-minimal -Standards-Version: 3.9.5 +Standards-Version: 3.9.6 Homepage: https://github.com/dvarrazzo/pgmp Vcs-Git: git://anonscm.debian.org/pkg-postgresql/postgresql-pgmp.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-postgresql/postgresql-pgmp.git diff -Nru postgresql-pgmp-1.0.1/debian/patches/9.5 postgresql-pgmp-1.0.2/debian/patches/9.5 --- postgresql-pgmp-1.0.1/debian/patches/9.5 1970-01-01 00:00:00.000000000 +0000 +++ postgresql-pgmp-1.0.2/debian/patches/9.5 2016-01-02 16:48:16.000000000 +0000 @@ -0,0 +1,48 @@ +--- a/test/sql/mpq.sql ++++ b/test/sql/mpq.sql +@@ -280,7 +280,9 @@ select mpq_cmp(1000::mpq, 1001::mpq); + create table test_mpq_idx (q mpq); + insert into test_mpq_idx select generate_series(1, 10000); + create index test_mpq_btree_idx on test_mpq_idx using btree (q); ++set client_min_messages = error; + create index test_mpq_hash_idx on test_mpq_idx using hash (q); ++reset client_min_messages; + + -- Hash is compatible with mpz + select mpq_hash(0) = mpz_hash(0); +--- a/test/sql/mpz.sql ++++ b/test/sql/mpz.sql +@@ -345,7 +345,9 @@ select mpz_cmp(1000::mpz, 1001::mpz); + create table test_mpz_idx (z mpz); + insert into test_mpz_idx select generate_series(1, 10000); + create index test_mpz_btree_idx on test_mpz_idx using btree (z); ++set client_min_messages = error; + create index test_mpz_hash_idx on test_mpz_idx using hash (z); ++reset client_min_messages; + + -- Hash is compatible with builtins + select mpz_hash(0) = hashint4(0); +--- a/test/expected/mpq.out ++++ b/test/expected/mpq.out +@@ -485,7 +485,9 @@ select mpq_cmp(1000::mpq, 1001::mpq); + create table test_mpq_idx (q mpq); + insert into test_mpq_idx select generate_series(1, 10000); + create index test_mpq_btree_idx on test_mpq_idx using btree (q); ++set client_min_messages = error; + create index test_mpq_hash_idx on test_mpq_idx using hash (q); ++reset client_min_messages; + -- Hash is compatible with mpz + select mpq_hash(0) = mpz_hash(0); + t +--- a/test/expected/mpz.out ++++ b/test/expected/mpz.out +@@ -559,7 +559,9 @@ select mpz_cmp(1000::mpz, 1001::mpz); + create table test_mpz_idx (z mpz); + insert into test_mpz_idx select generate_series(1, 10000); + create index test_mpz_btree_idx on test_mpz_idx using btree (z); ++set client_min_messages = error; + create index test_mpz_hash_idx on test_mpz_idx using hash (z); ++reset client_min_messages; + -- Hash is compatible with builtins + select mpz_hash(0) = hashint4(0); + t diff -Nru postgresql-pgmp-1.0.1/debian/patches/htup_details postgresql-pgmp-1.0.2/debian/patches/htup_details --- postgresql-pgmp-1.0.1/debian/patches/htup_details 2013-09-09 21:39:01.000000000 +0000 +++ postgresql-pgmp-1.0.2/debian/patches/htup_details 1970-01-01 00:00:00.000000000 +0000 @@ -1,42 +0,0 @@ -diff --git a/src/pmpz_arith.c b/src/pmpz_arith.c -index 6231e8b..91accce 100644 ---- a/src/pmpz_arith.c -+++ b/src/pmpz_arith.c -@@ -25,6 +25,9 @@ - #include "fmgr.h" - #include "funcapi.h" - #include "access/hash.h" /* for hash_any */ -+#if PG_VERSION_NUM >= 90300 -+#include /* for heap_form_tuple */ -+#endif - - - /* -diff --git a/src/pmpz_roots.c b/src/pmpz_roots.c -index d771342..1ac7b86 100644 ---- a/src/pmpz_roots.c -+++ b/src/pmpz_roots.c -@@ -24,6 +24,9 @@ - - #include "fmgr.h" - #include "funcapi.h" -+#if PG_VERSION_NUM >= 90300 -+#include /* for heap_form_tuple */ -+#endif - - - /* Functions with a more generic signature are defined in pmpz.arith.c */ -diff --git a/src/pmpz_theor.c b/src/pmpz_theor.c -index ef77065..4290fc9 100644 ---- a/src/pmpz_theor.c -+++ b/src/pmpz_theor.c -@@ -24,6 +24,9 @@ - - #include "fmgr.h" - #include "funcapi.h" -+#if PG_VERSION_NUM >= 90300 -+#include /* for heap_form_tuple */ -+#endif - - - /* Function with a more generic signature are defined in pmpz.arith.c */ diff -Nru postgresql-pgmp-1.0.1/debian/patches/series postgresql-pgmp-1.0.2/debian/patches/series --- postgresql-pgmp-1.0.1/debian/patches/series 2013-09-09 21:39:01.000000000 +0000 +++ postgresql-pgmp-1.0.2/debian/patches/series 2016-01-02 16:40:30.000000000 +0000 @@ -1,2 +1,2 @@ makefile -htup_details +9.5 diff -Nru postgresql-pgmp-1.0.1/docs/mpq.rst postgresql-pgmp-1.0.2/docs/mpq.rst --- postgresql-pgmp-1.0.1/docs/mpq.rst 2012-09-29 01:39:08.000000000 +0000 +++ postgresql-pgmp-1.0.2/docs/mpq.rst 2015-01-16 01:47:29.000000000 +0000 @@ -78,8 +78,8 @@ The string will be of the form :samp:`{num}/{den}`, or if the denominator is 1 then just :samp:`{num}`. - *base* may vary from 2 to 62 or from −2 to −36. For base in the range - 2..36, digits and lower-case letters are used; for −2..−36, digits and + *base* may vary from 2 to 62 or from -2 to -36. For base in the range + 2..36, digits and lower-case letters are used; for -2..-36, digits and upper-case letters are used; for 37..62, digits, upper-case letters, and lower-case letters (in that significance order) are used. If *base* is not specified, 10 is assumed. diff -Nru postgresql-pgmp-1.0.1/docs/mpz.rst postgresql-pgmp-1.0.2/docs/mpz.rst --- postgresql-pgmp-1.0.1/docs/mpz.rst 2012-09-29 01:39:08.000000000 +0000 +++ postgresql-pgmp-1.0.2/docs/mpz.rst 2015-01-16 01:47:29.000000000 +0000 @@ -61,8 +61,8 @@ Convert the `!mpz` *z* into a string. The form :samp:`{z}::text` is equivalent to :samp:`text({z})`. - *base* may vary from 2 to 62 or from −2 to −36. For base in the range - 2..36, digits and lower-case letters are used; for −2..−36, digits and + *base* may vary from 2 to 62 or from -2 to -36. For base in the range + 2..36, digits and lower-case letters are used; for -2..-36, digits and upper-case letters are used; for 37..62, digits, upper-case letters, and lower-case letters (in that significance order) are used. If *base* is not specified, 10 is assumed. @@ -653,7 +653,7 @@ .. function:: urandomb(n) Generate a uniformly distributed random integer in the range :math:`0` to - :math:`2^n−1`, inclusive. + :math:`2^n-1`, inclusive. The session state must be initialized by calling one of the `!randinit()` functions before invoking this function. @@ -662,7 +662,7 @@ .. function:: urandomm(n) Generate a uniformly distributed random integer in the range 0 to - *n*\−1, inclusive. + *n*\-1, inclusive. The session state must be initialized by calling one of the `!randinit()` functions before invoking this function. @@ -674,7 +674,7 @@ binary representation. Useful for testing functions and algorithms, since this kind of random numbers have proven to be more likely to trigger corner-case bugs. The random number will be in the range :math:`0` to - :math:`2^n−1`, inclusive. + :math:`2^n-1`, inclusive. The session state must be initialized by calling one of the `!randinit()` functions before invoking this function. diff -Nru postgresql-pgmp-1.0.1/META.json postgresql-pgmp-1.0.2/META.json --- postgresql-pgmp-1.0.1/META.json 2012-09-29 01:39:08.000000000 +0000 +++ postgresql-pgmp-1.0.2/META.json 2015-01-16 01:47:29.000000000 +0000 @@ -2,7 +2,7 @@ "name": "pgmp", "abstract": "PostgreSQL Multiple Precision Arithmetic extension", "description": "The pgmp extension adds PostgreSQL data types wrapping the high performance integer and rational data types offered by the GMP library.", - "version": "1.0.1", + "version": "1.0.2", "maintainer": "Daniele Varrazzo ", "tags": [ "arithmetic", "gmp", "rational", "integer", "data types" ], "release_status": "stable", @@ -10,7 +10,7 @@ "provides": { "pgmp": { "file": "sql/pgmp.sql", - "version": "1.0.1", + "version": "1.0.2", "abstract": "PostgreSQL Multiple Precision Arithmetic extension" } }, diff -Nru postgresql-pgmp-1.0.1/src/pmpq.h postgresql-pgmp-1.0.2/src/pmpq.h --- postgresql-pgmp-1.0.1/src/pmpq.h 2012-09-29 01:39:08.000000000 +0000 +++ postgresql-pgmp-1.0.2/src/pmpq.h 2015-01-16 01:47:29.000000000 +0000 @@ -34,7 +34,7 @@ } pmpq; /* Postgres only allows 2^30 bytes in varlena. Because each limb is at least 4 - * bytes we need at most 2^28 bits to store the size. So we can use the + * bytes we need at most 28 bits to store the size. So we can use the * higher 4 bits for other stuff: we use 2 bits for the version, 1 for the * sign and 1 for the order in which denom and numer limbs are stored. */ diff -Nru postgresql-pgmp-1.0.1/src/pmpz_arith.c postgresql-pgmp-1.0.2/src/pmpz_arith.c --- postgresql-pgmp-1.0.1/src/pmpz_arith.c 2012-09-29 01:39:08.000000000 +0000 +++ postgresql-pgmp-1.0.2/src/pmpz_arith.c 2015-01-16 01:47:29.000000000 +0000 @@ -25,6 +25,9 @@ #include "fmgr.h" #include "funcapi.h" #include "access/hash.h" /* for hash_any */ +#if PG_VERSION_NUM >= 90300 +#include /* for heap_form_tuple */ +#endif /* diff -Nru postgresql-pgmp-1.0.1/src/pmpz_roots.c postgresql-pgmp-1.0.2/src/pmpz_roots.c --- postgresql-pgmp-1.0.1/src/pmpz_roots.c 2012-09-29 01:39:08.000000000 +0000 +++ postgresql-pgmp-1.0.2/src/pmpz_roots.c 2015-01-16 01:47:29.000000000 +0000 @@ -24,6 +24,9 @@ #include "fmgr.h" #include "funcapi.h" +#if PG_VERSION_NUM >= 90300 +#include /* for heap_form_tuple */ +#endif /* Functions with a more generic signature are defined in pmpz.arith.c */ diff -Nru postgresql-pgmp-1.0.1/src/pmpz_theor.c postgresql-pgmp-1.0.2/src/pmpz_theor.c --- postgresql-pgmp-1.0.1/src/pmpz_theor.c 2012-09-29 01:39:08.000000000 +0000 +++ postgresql-pgmp-1.0.2/src/pmpz_theor.c 2015-01-16 01:47:29.000000000 +0000 @@ -24,6 +24,9 @@ #include "fmgr.h" #include "funcapi.h" +#if PG_VERSION_NUM >= 90300 +#include /* for heap_form_tuple */ +#endif /* Function with a more generic signature are defined in pmpz.arith.c */