./databases/ruby-pg, Ruby extension for PostgreSQL

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 1.6.3, Package name: ruby32-pg-1.6.3, Maintainer: pkgsrc-users

This is the extension library to access a PostgreSQL database from Ruby.
This library works with PostgreSQL 7.4 and later.


Required to run:
[databases/postgresql14-client] [lang/ruby31-base]

Master sites:

Filesize: 220 KB

Version history: (Expand)


CVS history: (Expand)


   2026-01-13 15:52:18 by Takahiro Kambe | Files touched by this commit (3) | Package updated
Log message:
databases/ruby-pg: update to 1.6.3

1.6.3 (2025-12-29)

Added:

* Add binary gems for ruby-4.0, now providing ruby-3.0 to 4.0. #682
* Update fat binary gem to OpenSSL-3.6.0 and PostgreSQL-18.1.
* Improve documentation of PG::Result and README. #676
* Update errorcodes to PostgreSQL-18.
* Use rb_hash_new_capa on Ruby-3.2+ . #674
* Deny any server communication on a frozen PG::Connection . #677
* Fix possible race condition in PG::Result in Ractor context. #674

Removed:

* Drop binary gem support for platform x86-mingw32. #682
* Drop binary gems for ruby-2.7.
   2025-09-15 16:45:56 by Takahiro Kambe | Files touched by this commit (3) | Package updated
Log message:
databases/ruby-pg: update to 1.6.2

1.6.2 (2025-09-02)

* Remove several absolute paths from native binaries which pointed to build
  directories. #668
* Fix bad fallback path to pg_service.conf. #666
* Use rbpg_ prefix for base64_* functions to avoid name clashes with
  functions provided by other libraries like Heimdal on Macos. #667
* Raise a more descriptive error message in case of pg_ext LoadError. #664
* Freeze some constants to make them available in a Ractor context. #660
* Several documentation improvements.
* Update native binary gems to OpenSSL-3.5.2, krb5-1.22.1 and
  PostgreSQL-17.6.
   2025-08-11 16:29:40 by Takahiro Kambe | Files touched by this commit (2) | Package updated
Log message:
databases/ruby-pg: update to 1.6.1

1.6.1 (2025-08-03)

* Add binary gems for platforms aarch64-linux-musl and x86_64-linux-musl
  without the need to install package gcompat.  #657.

* Serialize CompositeCoder#dimensions only when set.  #652 This fixes the
  compatibility to pg-1.5.9, when deserializing Marshal data from pg-1.6, as
  long as the new attribute isn't used.

* Remove dependency to MSYS2 package "postgresql" from binary Windows gem
  #654
   2025-08-02 05:25:05 by Takahiro Kambe | Files touched by this commit (3) | Package updated
Log message:
databases/ruby-pg: update to 1.6.0

1.6.0 (2025-07-27)

Added:

* Add binary gems for Ruby 3.4.
* Add fat binary gem for platform aarch64-mingw-ucrt aka Windows on ARM
  #626, for platform Macos on Intel and ARM #643, for platform aarch64-linux
  #646 and for platform x86_64-linux #551.
* Update fat binary gem to OpenSSL-3.5.1 and PostgreSQL-17.5.

* Add a patch to libpq to avoid starvation on bigger SSL records, which some
  database engines other than vanilla PostgreSQL use.  This patch applies to
  platform specific binary gems only.  #616

* Add support for new query cancel functions of PostgreSQL-17.  This adds
  the new class PG::CancelConnection which provides the ability to cancel a
  query per blocking or per non-blocking functions.  If the new functions
  are available they are used and the older are no longer compiled in.  This
  way we can get rid of reading out the internal PGcancel struct by
  Connection#backend_key.  #614

* Add PG::BinaryDecoder::Array and PG::BinaryEncoder::Array to parse and
  encode PostgreSQL arrays in binary format.  #603

* Add possibility to define the number of array dimensions to be encoded.
  Setting dimensions is especially useful, when a Record shall be encoded
  into an Array, since the Array encoder can not distinguish if the array
  shall be encoded as a higher dimension or as a record otherwise.  #622

* Add Connection#set_chunked_rows_mode #610

* Add PG::Connection#close_prepared, PG::Connection#close_portal,
  PG::Connection#send_close_prepared and PG::Connection#send_close_portal
  which are new in PostgreSQL-17.  #611

* Add Connection#send_pipeline_sync, async_pipeline_sync and release GVL at
  PQ(sendP|P)ipelineSync.  #612

* Add MINGW package dependency which is resolved by RubyInstaller.  #617

* Change conn.server_version and conn.protocol_version to raise instead of
  return 0 on error.  #632

* Fix connecting to multiple hosts after connnect_timeout.  #637

* Fix making PG::BasicTypeMapForQueries shareable for Ractor in ruby-3.5.
  #636

* Fix missing array input verification in PG::TypeMapByColumn.  This could
  cause a segfault.  #620

* Rename History.md to CHANGELOG.md, which is more common.  #642

Removed:

* Drop support of Ruby < 2.7 #606

* Drop support of PostgreSQL < 10 #606

* Remove workaround for Truffleruby < 21.3.0 #613
   2024-10-27 14:30:34 by Takahiro Kambe | Files touched by this commit (3) | Package updated
Log message:
databases/ruby-pg: update to 1.5.9

1.5.9 (2024-10-24)

* Enable thread safety in static OpenSSL build for Windows. #595
* Remove raising conect_timeout from 1 to 2 seconds. #590
* Fix binary copy_data in Ractor context. #594
* Exclude CI files and hidden files from built gem. #591 This is to simplify
  security inspection.
* Update error classes to PostgreSQL-17.
* Update Windows fat binary gem to OpenSSL-3.4.0 and PostgreSQL-17.0.
   2024-09-18 16:45:39 by Takahiro Kambe | Files touched by this commit (2) | Package updated
Log message:
databases/ruby-pg: update to 1.5.8

1.5.7 (2024-07-28)

* Remove deprecated use of fptr->fd.#562 Direct access is disallowed since
  ruby-3.4.
* Make pgconn_connect_poll close the socket prior to calling PQconnectPoll.
  #564 This could result in an exception while connecting when used multi
  threaded.
* Fix several typos and improve spelling in documentation and code.  #566
* Add missing PG::RollbackTransaction as an option to exit conn.transaction.
  #560 Usage like in rails:
  https://api.rubyonrails.org/classes/ActiveRecord/Rollback.html
* Don't print a warning when bigdecimal is required on ruby-3.4+ #574
* Update Windows fat binary gem to OpenSSL-3.3.1 and PostgreSQL-16.3.

1.5.8 (2024-09-06)

* Fix host list duplication every time conn.reset is used.  #586
* Add default decoder for anonymous record types to BasicTypeRegistry #579
* Update Windows fat binary gem to OpenSSL-3.3.2 and PostgreSQL-16.4.
   2024-03-03 09:16:48 by Takahiro Kambe | Files touched by this commit (3) | Package updated
Log message:
databases/ruby-pg: update to 1.5.6

1.5.6 (2024-03-01)

* Renew address resolution (DNS) in conn.reset. #558 This is important, if
  DNS is used for load balancing, etc.

* Make bigdecimal an optional dependency. #556 It's a gem in ruby-3.4+, so
  that users shouldn't be forced to use it.
   2024-02-19 15:54:59 by Takahiro Kambe | Files touched by this commit (3) | Package updated
Log message:
databases/ruby-pg: update to 1.5.5

1.5.5 (2024-02-15)

* Explicitly retype timespec fields to int64_t to fix compatibility with
  32bit arches. #547
* Fix possible buffer overflows in PG::BinaryDecoder::CopyRow on 32 bit
  systems. #548
* Add binary Windows gems for Ruby 3.3.
* Update Windows fat binary gem to OpenSSL-3.2.1 and PostgreSQL-16.2.