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

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


Branch: CURRENT, Version: 1.5.6, Package name: ruby32-pg-1.5.6, 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: 216 KB

Version history: (Expand)


CVS history: (Expand)


   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.
   2023-09-03 03:39:54 by Takahiro Kambe | Files touched by this commit (2) | Package updated
Log message:
databases/ruby-pg: update to 1.5.4

1.5.4 (2023-09-01)

* Fix compiling the pg extension with MSVC 2022.  #535
* Set PG::Connection's encoding even if setting client_encoding on
  connection startup fails.  #541
* Don't set the server's client_encoding if it's unnecessary.  #542 This is
  important for connection proxies, who disallow configuration settings.
* Update Windows fat binary gem to OpenSSL-3.1.2 and PostgreSQL-15.4.
   2023-04-29 15:32:28 by Takahiro Kambe | Files touched by this commit (2) | Package updated
Log message:
databases/ruby-pg: update to 1.5.3

1.5.3 (2023-04-28)

* Fix possible segfault when creating a new PG::Result with type map. #530
* Add category to deprecation warnings of Coder.new, so that they are
  suppressed for most users. #528
   2023-04-27 15:46:29 by Takahiro Kambe | Files touched by this commit (3) | Package updated
Log message:
databases/ruby-pg: update to 1.5.2

1.5.0 (2023-04-24)

Enhancements:

o Better support for binary format:

  * Extend PG::Connection#copy_data to better support binary transfers #511
  * Add binary COPY encoder and decoder:
    - PG::BinaryEncoder::CopyRow
    - PG::BinaryDecoder::CopyRow
  * Add binary timestamp encoders:
    - PG::BinaryEncoder::TimestampUtc
    - PG::BinaryEncoder::TimestampLocal
    - PG::BinaryEncoder::Timestamp
  * Add PG::BinaryEncoder::Float4 and Float8
  * Add binary date type: #515
    - PG::BinaryEncoder::Date
    - PG::BinaryDecoder::Date
  * Add PG::Result#binary_tuples #511 It is useful for COPY and not
    deprecated in that context.
  * Add PG::TextEncoder::Bytea to BasicTypeRegistry #506

o Ractor support: #519

  * Pg is now fully compatible with Ractor introduced in Ruby-3.0 and
    doesn't use any global mutable state.
  * All type en/decoders and type maps are shareable between ractors if they
    are made frozen by Ractor.make_shareable.
  * Also frozen PG::Result and PG::Tuple objects can be shared.
  * All frozen objects (except PG::Connection) can still be used to do
    communication with the PostgreSQL server or to read retrieved data.
  * PG::Connection is not shareable and must be created within each Ractor
    to establish a dedicated connection.

o Use keyword arguments instead of hashes for Coder initialization and
  #to_h.  #511

o Add PG::Result.res_status as a class method and extend Result#res_status
  to return the status of self.  #508

o Reduce the number of files loaded at require 'pg' by using autoload.  #513
  Previously stdlib libraries date, json, ipaddr and bigdecimal were static
  dependencies, but now only socket is mandatory.

o Improve garbage collector performance by adding write barriers to all PG
  classes.  #518 Now they can be promoted to the old generation, which means
  they only get marked on major GC.

o New method PG::Connection#check_socket to check the socket state. #521

o Mark many internal constants as private. #522

o Update Windows fat binary gem to OpenSSL-3.1.0.

Bugfixes:

o Move nfields-check of stream-methods after result status check #507 This
  ensures that the nfield-check doesn't hide errors like statement timeout.

Removed:

o Remove deprecated PG::BasicTypeRegistry.register_type and co. Part of #519

o Add deprecation warning about PG::Coder initialization per Hash argument.
  #514 It is recommended to use keyword arguments instead.

o The internal encoding cache was removed.  #516 It shouldn't have a
  practical performance impact.

Repository:

o rake test tries to find PostgreSQL server commands by pg_config #503 So
  there's no need to set the PATH manuelly any longer.

1.5.1 (2023-04-24)

o Don't overwrite flags of timestamp coders.  #524 Fixes a regression in
  rails: rails/rails#48049

1.5.2 (2023-04-26)

o Fix regression in copy_data regarding binary format when using no coder.
  #527
   2023-02-26 15:30:35 by Takahiro Kambe | Files touched by this commit (3) | Package updated
Log message:
databases/ruby-pg: update to 1.4.6

1.4.6 [2023-02-26] Lars Kanis lars@greiz-reinsdorf.de

* Add japanese README file.  #502

* Improve discard_results to not block under memory pressure.  #500

* Use a dedicated error class PG::LostCopyState for errors due to another
  query within copy_data and mention that it's probably due to another
  query.  Previously the "no COPY in progress" PG::Error was less specific.
  #499

* Make sure an error in put_copy_end of copy_data doesn't lose the original
  exception.

* Disable nonblocking mode while large object calls.  #498 Since pg-1.3.0
  libpq's "lo_*" calls failed when a bigger amount of data was transferred.
  This specifically forced the active_storage-postgresql gem to use
  pg-1.2.3.

* Add rdoc options to gemspec, so that "gem install" generates complete
  offline documentation.

* Add binary Windows gems for Ruby 3.2.

* Update Windows fat binary gem to PostgreSQL-15.2 and OpenSSL-3.0.8.
   2022-11-26 15:03:55 by Takahiro Kambe | Files touched by this commit (2) | Package updated
Log message:
databases/ruby-pg: update to 1.4.5

1.4.5 (2022-11-17)

* Return the libpq default port when blank in conninfo. #492

* Add PG::DEF_PGPORT constant and use it in specs. #492

* Fix name resolution when empty or `nil` port is given.

* Update error codes to PostgreSQL-15.

* Update Windows fat binary gem to PostgreSQL-15.1 AND OpenSSL-1.1.1s.
   2022-11-11 14:01:50 by Takahiro Kambe | Files touched by this commit (2) | Package updated
Log message:
databases/ruby-pg: update to 1.4.4

1.4.4 (2022-10-11)

* Revert to let libpq do the host iteration while connecting.  #485 Ensure
  that parameter `connect_timeout` is still respected.
* Handle multiple hosts in the connection string, where only one host has
  writable session. #476
* Add some useful information to PG::Connection#inspect. #487
* Support new pgresult_stream_any API in sequel_pg-1.17.0. #481
* Update Windows fat binary gem to PostgreSQL-14.5.