This is the extension library to access a PostgreSQL database from Ruby.
2024-10-27 14:30:34 by Takahiro Kambe | Files touched by this commit (3) | |
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) | |
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) | |
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) | |
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) | |
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) | |
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) | |
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) | |
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.
|