Skip to content

Commit

Permalink
reverted part of PR#88. postgres has reverted the changes to hex_deco…
Browse files Browse the repository at this point in the history
…de that made it necessary (#120)
  • Loading branch information
davecramer authored Aug 31, 2021
1 parent 1689332 commit 5bf6e4f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
5 changes: 0 additions & 5 deletions pg_backend_support.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,14 +227,9 @@ get_lib_pathstr(Oid langOid)
size_t len = strlen(raw_path);
bc = (len - 2)/2 + 1; /* maximum possible length */

#if PG_VERSION_NUM >= 140000
result = palloc0(bc);
bc = pg_hex_decode(raw_path + 2, len - 2, result, bc);
#else
result = palloc0(bc);

bc = hex_decode(raw_path + 2, len - 2, result);
#endif
cooked_path = expand_dynamic_library_name(result);
}
else
Expand Down
3 changes: 0 additions & 3 deletions plr.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,6 @@
#include "tcop/tcopprot.h"
#include "utils/array.h"

#if PG_VERSION_NUM >= 140000
#include "common/hex.h"
#endif
#include "utils/builtins.h"

#if PG_VERSION_NUM >= 80500
Expand Down

0 comments on commit 5bf6e4f

Please sign in to comment.