Skip to content

Commit 279e3fe

Browse files
committedMay 20, 2021
Fix hash table creation on PostgreSQL 14.
1 parent 0c0783b commit 279e3fe

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed
 

‎NEWS.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
7.4: May 20, 2021 - World Metrology Day
2+
---------------------------------------
3+
* Fix hash table creation on PostgreSQL 14.
4+
5+
7.3: Oct 19, 2020
6+
-----------------
7+
* Packaging updates.
8+
19
7.2: May 20, 2019 - World Metrology Day
210
---------------------------------------
311
* Rewire PostgreSQL 12's new extra_float_digits=1 default internally to 0 to

‎debian/changelog

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
postgresql-unit (7.4-1) experimental; urgency=medium
2+
3+
* Fix hash table creation on PostgreSQL 14.
4+
5+
-- Christoph Berg <myon@debian.org> Thu, 20 May 2021 17:27:35 +0200
6+
17
postgresql-unit (7.3-1) unstable; urgency=medium
28

39
* Upload for PostgreSQL 13.

‎unit.c

+3
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ unit_get_definitions(void)
6262
tmp_unit_names = hash_create("unit_names",
6363
20,
6464
&hinfo,
65+
#if PG_VERSION_NUM >= 140000
66+
HASH_STRINGS |
67+
#endif
6568
HASH_ELEM); /* Set keysize and entrysize */
6669

6770
PG_TRY();

0 commit comments

Comments
 (0)
Please sign in to comment.