Skip to content

Commit

Permalink
Fix hash table creation on PostgreSQL 14.
Browse files Browse the repository at this point in the history
  • Loading branch information
df7cb committed May 20, 2021
1 parent 0c0783b commit 279e3fe
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
8 changes: 8 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
7.4: May 20, 2021 - World Metrology Day
---------------------------------------
* Fix hash table creation on PostgreSQL 14.

7.3: Oct 19, 2020
-----------------
* Packaging updates.

7.2: May 20, 2019 - World Metrology Day
---------------------------------------
* Rewire PostgreSQL 12's new extra_float_digits=1 default internally to 0 to
Expand Down
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
postgresql-unit (7.4-1) experimental; urgency=medium

* Fix hash table creation on PostgreSQL 14.

-- Christoph Berg <[email protected]> Thu, 20 May 2021 17:27:35 +0200

postgresql-unit (7.3-1) unstable; urgency=medium

* Upload for PostgreSQL 13.
Expand Down
3 changes: 3 additions & 0 deletions unit.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ unit_get_definitions(void)
tmp_unit_names = hash_create("unit_names",
20,
&hinfo,
#if PG_VERSION_NUM >= 140000
HASH_STRINGS |
#endif
HASH_ELEM); /* Set keysize and entrysize */

PG_TRY();
Expand Down

0 comments on commit 279e3fe

Please sign in to comment.