pg 1.7.0 → 1.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data/CHANGELOG.md +16 -0
  4. data/Gemfile +17 -1
  5. data/README.md +1 -0
  6. data/Rakefile +8 -3
  7. data/duel/coder_duel.rb +105 -0
  8. data/duel/connect_duel.rb +26 -0
  9. data/duel/copy_duel.rb +59 -0
  10. data/duel/duel_helper.rb +47 -0
  11. data/duel/escape_duel.rb +31 -0
  12. data/duel/query_duel.rb +42 -0
  13. data/duel/result_duel.rb +64 -0
  14. data/duel/type_map_duel.rb +53 -0
  15. data/ext/errorcodes.def +4 -0
  16. data/ext/errorcodes.txt +2 -1
  17. data/ext/extconf.rb +10 -4
  18. data/ext/pg.c +53 -0
  19. data/ext/pg.h +6 -0
  20. data/ext/pg_binary_decoder.c +3 -4
  21. data/ext/pg_copy_coder.c +7 -3
  22. data/ext/pg_record_coder.c +5 -1
  23. data/ext/pg_text_decoder.c +113 -69
  24. data/ext/pg_text_encoder.c +6 -3
  25. data/ext/pg_tuple.c +17 -1
  26. data/ext/pg_type_map_by_class.c +1 -1
  27. data/ext/pg_type_map_by_column.c +1 -1
  28. data/ext/pg_util.c +8 -8
  29. data/lib/pg/connection.rb +3 -2
  30. data/lib/pg/text_decoder/date.rb +2 -14
  31. data/lib/pg/version.rb +1 -1
  32. data/ports/patches/postgresql/19.0/0001-Don-t-stop-build-due-to-atexit.patch +27 -0
  33. data/ports/patches/postgresql/19.0/0001-Fix-compatibility-to-old-MacOSX11.1.sdk-of-rake-comp.patch +31 -0
  34. data/ports/patches/postgresql/19.0/0001-PATCH-Don-t-use-workaround-of-__builtin_setjmp-on-MI.patch +27 -0
  35. data.tar.gz.sig +0 -0
  36. metadata +14 -4
  37. metadata.gz.sig +0 -0
  38. data/ports/patches/postgresql/18.6/0001-Use-workaround-of-__builtin_setjmp-only-on-MINGW-on-.patch +0 -42
  39. /data/ports/patches/krb5/{1.22.2 → 1.22.3}/0001-Allow-static-linking-krb5-library.patch +0 -0
  40. /data/ports/patches/krb5/{1.22.2 → 1.22.3}/0002-unknown-command-line-option-on-clang.patch +0 -0
@@ -0,0 +1,27 @@
1
+ From 90764b079c8291039ea154268f4631acd7ba32d7 Mon Sep 17 00:00:00 2001
2
+ From: Lars Kanis <lars@greiz-reinsdorf.de>
3
+ Date: Sat, 5 Dec 2026 16:36:30 +0100
4
+ Subject: [PATCH] Don't stop build due to atexit
5
+
6
+ It is present due to static linking krb5.
7
+ ---
8
+ src/interfaces/libpq/libpq_check.pl | 3 +++
9
+ 1 file changed, 3 insertions(+)
10
+
11
+ diff --git a/src/interfaces/libpq/libpq_check.pl b/src/interfaces/libpq/libpq_check.pl
12
+ index 833f5315c3c..bec2f604576 100755
13
+ --- a/src/interfaces/libpq/libpq_check.pl
14
+ +++ b/src/interfaces/libpq/libpq_check.pl
15
+ @@ -55,6 +55,9 @@ while (<$fh>)
16
+ # to insert references to that even in pure C code.
17
+ next if /__cxa_atexit/;
18
+
19
+ + # False positive in ruby-pg static build
20
+ + next if /atexit/;
21
+ +
22
+ # Excluding __tsan_func_exit is necessary when using ThreadSanitizer data
23
+ # race detector which uses this function for instrumentation of function
24
+ # exit.
25
+ --
26
+ 2.55.0
27
+
@@ -0,0 +1,31 @@
1
+ From 542984a3cf61b2066359a3d5bb4b12b341e258bb Mon Sep 17 00:00:00 2001
2
+ From: Lars Kanis <lars@greiz-reinsdorf.de>
3
+ Date: Sat, 5 Dec 2026 16:43:02 +0100
4
+ Subject: [PATCH] Fix compatibility to old MacOSX11.1.sdk of rake-compiler-dock
5
+
6
+ ---
7
+ src/include/c.h | 7 +++++++
8
+ src/include/mb/pg_wchar.h | 6 ++++++
9
+ 2 files changed, 13 insertions(+)
10
+
11
+ diff --git a/src/include/c.h b/src/include/c.h
12
+ index 6e543a00841..c8ef937113a 100644
13
+ --- a/src/include/c.h
14
+ +++ b/src/include/c.h
15
+ @@ -84,6 +84,13 @@
16
+ #include <libintl.h>
17
+ #endif
18
+
19
+ +#if defined(__APPLE__) && !defined(_UCHAR_H_)
20
+ +typedef uint_least16_t char16_t;
21
+ +typedef uint_least32_t char32_t;
22
+ +#define _UCHAR_H_
23
+ +#endif
24
+ +
25
+ +
26
+ #ifdef __cplusplus
27
+ extern "C++"
28
+ {
29
+ --
30
+ 2.55.0
31
+
@@ -0,0 +1,27 @@
1
+ From 413d853fbe76b21c93637db29f0d5fc57ddc52a2 Mon Sep 17 00:00:00 2001
2
+ From: Lars Kanis <lars@greiz-reinsdorf.de>
3
+ Date: Sat, 5 Dec 2026 16:26:32 +0100
4
+ Subject: [PATCH] [PATCH] Don't use workaround of __builtin_setjmp on MINGW on
5
+ ARM64
6
+
7
+ Because it is not present on ARM64 on Windows.
8
+ ---
9
+ src/include/c.h | 2 +-
10
+ 1 file changed, 1 insertion(+), 1 deletion(-)
11
+
12
+ diff --git a/src/include/c.h b/src/include/c.h
13
+ index 2fd1782bf03..6e543a00841 100644
14
+ --- a/src/include/c.h
15
+ +++ b/src/include/c.h
16
+ @@ -1490,7 +1490,7 @@ typedef struct pg_signal_info
17
+ * If you change this, see also PG_PERL_TRY in plperl.h.
18
+ */
19
+ #ifdef WIN32
20
+ -#ifdef __MINGW64__
21
+ +#if defined(__MINGW64__) && !defined(__aarch64__)
22
+ typedef intptr_t sigjmp_buf[5];
23
+ #define sigsetjmp(x,y) __builtin_setjmp(x)
24
+ #define siglongjmp __builtin_longjmp
25
+ --
26
+ 2.55.0
27
+
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 1.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Granger
@@ -119,6 +119,14 @@ files:
119
119
  - certs/larskanis-2023.pem
120
120
  - certs/larskanis-2024.pem
121
121
  - certs/larskanis-2026.pem
122
+ - duel/coder_duel.rb
123
+ - duel/connect_duel.rb
124
+ - duel/copy_duel.rb
125
+ - duel/duel_helper.rb
126
+ - duel/escape_duel.rb
127
+ - duel/query_duel.rb
128
+ - duel/result_duel.rb
129
+ - duel/type_map_duel.rb
122
130
  - ext/errorcodes.def
123
131
  - ext/errorcodes.rb
124
132
  - ext/errorcodes.txt
@@ -195,9 +203,11 @@ files:
195
203
  - misc/yugabyte/docker-compose.yml
196
204
  - misc/yugabyte/pg-test.rb
197
205
  - pg.gemspec
198
- - ports/patches/krb5/1.22.2/0001-Allow-static-linking-krb5-library.patch
199
- - ports/patches/krb5/1.22.2/0002-unknown-command-line-option-on-clang.patch
200
- - ports/patches/postgresql/18.6/0001-Use-workaround-of-__builtin_setjmp-only-on-MINGW-on-.patch
206
+ - ports/patches/krb5/1.22.3/0001-Allow-static-linking-krb5-library.patch
207
+ - ports/patches/krb5/1.22.3/0002-unknown-command-line-option-on-clang.patch
208
+ - ports/patches/postgresql/19.0/0001-Don-t-stop-build-due-to-atexit.patch
209
+ - ports/patches/postgresql/19.0/0001-Fix-compatibility-to-old-MacOSX11.1.sdk-of-rake-comp.patch
210
+ - ports/patches/postgresql/19.0/0001-PATCH-Don-t-use-workaround-of-__builtin_setjmp-on-MI.patch
201
211
  - rakelib/pg_gem_helper.rb
202
212
  - rakelib/task_extension.rb
203
213
  - sample/array_insert.rb
metadata.gz.sig CHANGED
Binary file
@@ -1,42 +0,0 @@
1
- From 746e8e250b265c40d9706f26560e02e8623f123f Mon Sep 17 00:00:00 2001
2
- From: Lars Kanis <lars@greiz-reinsdorf.de>
3
- Date: Fri, 31 Jan 2025 21:58:00 +0100
4
- Subject: [PATCH] Use workaround of __builtin_setjmp only on MINGW on MSVCRT
5
-
6
- Because it is not present on ARM64 on Windows and not necessary on any UCRT based toolchain.
7
- ---
8
- src/include/c.h | 10 +++++-----
9
- 1 file changed, 5 insertions(+), 5 deletions(-)
10
-
11
- diff --git a/src/include/c.h b/src/include/c.h
12
- index a14c631516..33792c860c 100644
13
- --- a/src/include/c.h
14
- +++ b/src/include/c.h
15
- @@ -1312,19 +1312,19 @@ extern int fdatasync(int fildes);
16
- /*
17
- * When there is no sigsetjmp, its functionality is provided by plain
18
- * setjmp. We now support the case only on Windows. However, it seems
19
- - * that MinGW-64 has some longstanding issues in its setjmp support,
20
- - * so on that toolchain we cheat and use gcc's builtins.
21
- + * that MinGW-64 on x86_64 has some longstanding issues in its setjmp
22
- + * support, so on that toolchain we cheat and use gcc's builtins.
23
- */
24
- #ifdef WIN32
25
- -#ifdef __MINGW64__
26
- +#if defined(__MINGW64__) && !defined(_UCRT)
27
- typedef intptr_t sigjmp_buf[5];
28
- #define sigsetjmp(x,y) __builtin_setjmp(x)
29
- #define siglongjmp __builtin_longjmp
30
- -#else /* !__MINGW64__ */
31
- +#else /* !defined(__MINGW64__) || defined(_UCRT) */
32
- #define sigjmp_buf jmp_buf
33
- #define sigsetjmp(x,y) setjmp(x)
34
- #define siglongjmp longjmp
35
- -#endif /* __MINGW64__ */
36
- +#endif /* defined(__MINGW64__) && !defined(_UCRT) */
37
- #endif /* WIN32 */
38
-
39
- /* /port compatibility functions */
40
- --
41
- 2.43.0
42
-