A summary of data about the Ruby ecosystem.

https://github.com/ged/ruby-pg

A PostgreSQL client library for Ruby
https://github.com/ged/ruby-pg

Keywords

c client database postgresql rdbms ruby

Keywords from Contributors

activerecord activejob mvc rubygems rack ruby-gem rspec rubocop code-formatter yaml-parser

Last synced: about 23 hours ago
JSON representation

Repository metadata

A PostgreSQL client library for Ruby

README.md

pg

Join the chat at https://gitter.im/ged/ruby-pg

Description

Pg is the Ruby interface to the PostgreSQL RDBMS.
It works with PostgreSQL 10 and later.

A small example usage:

  #!/usr/bin/env ruby

  require 'pg'

  # Output a table of current connections to the DB
  conn = PG.connect( dbname: 'sales' )
  conn.exec( "SELECT * FROM pg_stat_activity" ) do |result|
    puts "     PID | User             | Query"
    result.each do |row|
      puts " %7d | %-16s | %s " %
        row.values_at('pid', 'usename', 'query')
    end
  end

See the PG::Connection class for query methods and the PG::Result class for information on working with the results of a query.

Build Status

Build Status Github Actions
Binary gems
Build Status Appveyor

Requirements

  • Ruby 3.1 or newer
  • PostgreSQL 10.x or later
  • When installing the source gem: libpq with headers, -dev packages, etc.

How To Install

Install via RubyGems:

gem install pg

This installs the binary gem, specific to the running platform by default.

Binary gem

The binary gems don't depend on the libpq package on the running system.
They have libpq builtin.

The gems for platform x86_64-linux and aarch64-linux run on Alpine Linux, but require the package gcompat, while the native gems for platform *-linux-musl work without that dependency.

There is one use case the binary gems don't support: Retrieval of connection options from LDAP. To support this libldap would be necessary, but it has a lot of dependencies. It doesn't seem to be a widely used feature and that it's worth to support it. If it's necessary, the source gem can be forced.

Source gem

The source gem can be forced by:

gem uninstall pg --all
gem install pg --platform ruby

You may need to specify the path to the 'pg_config' program installed with
Postgres:

gem install pg -- --with-pg-config=<path to pg_config>

If you're installing via Bundler, you can provide compile hints like so:

bundle config build.pg --with-pg-config=<path to pg_config>

Bundler

To make sure, the necessary platforms and the source gem are fetched by bundler, they can be added like so

bundle lock --add-platform x86_64-linux
bundle lock --add-platform arm64-darwin
bundle lock --add-platform x64-mingw-ucrt
bundle lock --add-platform ruby
bundle package --all-platforms

A re-run of bundle package is also necessary after bundle update, in order to retrieve the new specific gems of all platforms.

If the binary gems don't work for some reason, it's easy to force the usage of the source gem in the Gemfile:

gem "pg", force_ruby_platform: true

More

See README-OS_X.rdoc for more information about installing under MacOS X, and
README-Windows.rdoc for Windows build/installation instructions.

There's also a Google+ group and a
mailing list if you get stuck, or just
want to chat about something.

If you want to install as a signed gem, the public certs of the gem signers
can be found in the certs directory
of the repository.

Versioning

We tag and release gems according to the Semantic Versioning principle.

As a result of this policy, you can (and should) specify a dependency on this gem using the Pessimistic Version Constraint with two digits of precision.

For example:

  spec.add_dependency 'pg', '~> 1.0'

Type Casts

Pg can optionally type cast result values and query parameters in Ruby or
native C code. This can speed up data transfers to and from the database,
because String allocations are reduced and conversions in (slower) Ruby code
can be omitted.

Very basic type casting can be enabled by:

    conn.type_map_for_results = PG::BasicTypeMapForResults.new conn
    # ... this works for result value mapping:
    conn.exec("select 1, now(), '{2,3}'::int[]").values
        # => [[1, 2014-09-21 20:51:56 +0200, [2, 3]]]

    conn.type_map_for_queries = PG::BasicTypeMapForQueries.new conn
    # ... and this for param value mapping:
    conn.exec_params("SELECT $1::text, $2::text, $3::text", [1, 1.23, [2,3]]).values
        # => [["1", "1.2300000000000000E+00", "{2,3}"]]

But Pg's type casting is highly customizable. That's why it's divided into
2 layers:

Encoders / Decoders (ext/pg_*coder.c, lib/pg/*coder.rb)

This is the lower layer, containing encoding classes that convert Ruby
objects for transmission to the DBMS and decoding classes to convert
received data back to Ruby objects. The classes are namespaced according
to their format and direction in PG::TextEncoder, PG::TextDecoder,
PG::BinaryEncoder and PG::BinaryDecoder.

It is possible to assign a type OID, format code (text or binary) and
optionally a name to an encoder or decoder object. It's also possible
to build composite types by assigning an element encoder/decoder.
PG::Coder objects can be used to set up a PG::TypeMap or alternatively
to convert single values to/from their string representation.

The following PostgreSQL column types are supported by ruby-pg (TE = Text Encoder, TD = Text Decoder, BE = Binary Encoder, BD = Binary Decoder):

The following text and binary formats can also be encoded although they are not used as column type:

  • COPY input and output data: TE, TD, BE, BD
  • Literal for insertion into SQL string: TE
  • SQL-Identifier: TE, TD

TypeMap and derivations (ext/pg_type_map*.c, lib/pg/type_map*.rb)

A PG::TypeMap defines which value will be converted by which encoder/decoder.
There are different type map strategies, implemented by several derivations
of this class. They can be chosen and configured according to the particular
needs for type casting. The default type map is PG::TypeMapAllStrings.

A type map can be assigned per connection or per query respectively per
result set. Type maps can also be used for COPY in and out data streaming.
See PG::Connection#copy_data .

The following base type maps are available:

  • PG::TypeMapAllStrings - encodes and decodes all values to and from strings (default)
  • PG::TypeMapByClass - selects encoder based on the class of the value to be sent
  • PG::TypeMapByColumn - selects encoder and decoder by column order
  • PG::TypeMapByOid - selects decoder by PostgreSQL type OID
  • PG::TypeMapInRuby - define a custom type map in ruby

The following type maps are prefilled with type mappings from the PG::BasicTypeRegistry :

  • PG::BasicTypeMapForResults - a PG::TypeMapByOid prefilled with decoders for common PostgreSQL column types
  • PG::BasicTypeMapBasedOnResult - a PG::TypeMapByOid prefilled with encoders for common PostgreSQL column types
  • PG::BasicTypeMapForQueries - a PG::TypeMapByClass prefilled with encoders for common Ruby value classes

Several type maps can be chained by setting PG::TypeMap::DefaultTypeMappable#default_type_map .

Thread support

PG is thread safe in such a way that different threads or fibers can use different PG::Connection objects concurrently.
However it is not safe to access any PG object simultaneously from more than one thread or fiber unless the object is frozen.
So make sure to open a new database server connection for every new thread or use a wrapper library like ActiveRecord that manages connections in a thread safe way.

If messages like the following are printed to stderr, you're probably using one connection from several threads:

message type 0x31 arrived from server while idle
message type 0x32 arrived from server while idle
message type 0x54 arrived from server while idle
message type 0x43 arrived from server while idle
message type 0x5a arrived from server while idle

Fiber IO scheduler support

Pg is fully compatible with Fiber.scheduler introduced in Ruby-3.0 since pg-1.3.0.
All possibly blocking IO operations are routed through the Fiber.scheduler if one is registered for the running thread.
That is why pg internally uses the asynchronous libpq interface even for synchronous/blocking method calls.
It also uses Ruby's DNS resolution instead of libpq's builtin functions.

Internally Pg always uses the nonblocking connection mode of libpq.
It then behaves like running in blocking mode but ensures, that all blocking IO is handled in Ruby through a possibly registered Fiber.scheduler.
When PG::Connection#setnonblocking(true) is called then the nonblocking state stays enabled, but the additional handling of blocking states is disabled, so that the calling program has to handle blocking states on its own.

There are some exceptions to the Fiber.scheduler compatibility, so that blocking states are not passed to the registered IO scheduler.
That means the operation will work properly, but IO waiting states can not be used to switch to another Fiber doing IO:

  • Methods for large objects like PG::Connection#lo_create
  • Authentication methods using external libraries (like GSSAPI or LDAP authentication)
  • LDAP lookup of connection parameters: https://www.postgresql.org/docs/current/libpq-ldap.html
  • A connection string/hash with the service parameter set but not host and port.
    Thread.scheduler compatible alternatives are:
    • Set the service via PGSERVICEenvironment variable
    • Set the host and port parameters explicit in the connection string/hash.
    • Set the hostaddr in the service file.

Ractor support

Pg is fully compatible with Ractor introduced in Ruby-3.0 since pg-1.5.0.
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.

Contributing

To report bugs, suggest features, or check out the source with Git,
check out the project page.

After checking out the source, install all dependencies:

$ bundle install

Cleanup extension files, packaging files, test databases.
Run this to change between PostgreSQL versions:

$ rake clean

Compile extension:

$ rake compile

Run tests/specs on the PostgreSQL version that pg_config --bindir points to:

$ rake test

Or run a specific test per file and line number on a specific PostgreSQL version:

$ PATH=/usr/lib/postgresql/14/bin:$PATH rspec -Ilib -fd spec/pg/connection_spec.rb:455

Generate the API documentation:

$ rake docs

Make sure, that all bugs and new features are verified by tests.

The current maintainers are Michael Granger ged@FaerieMUD.org and
Lars Kanis lars@greiz-reinsdorf.de.

Copying

Copyright (c) 1997-2022 by the authors.

You may redistribute this software under the same terms as Ruby itself; see
https://www.ruby-lang.org/en/about/license.txt or the BSDL file in the source
for details.

Portions of the code are from the PostgreSQL project, and are distributed
under the terms of the PostgreSQL license, included in the file POSTGRES.

Portions copyright LAIKA, Inc.

Acknowledgments

See Contributors.rdoc for the many additional fine people that have contributed
to this library over the years.

We are thankful to the people at the ruby-list and ruby-dev mailing lists.
And to the people who developed PostgreSQL.


Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 2 days ago

Total Commits: 2,106
Total Committers: 76
Avg Commits per committer: 27.711
Development Distribution Score (DDS): 0.3

Commits in past year: 120
Committers in past year: 10
Avg Commits per committer in past year: 12.0
Development Distribution Score (DDS) in past year: 0.383

Name Email Commits
Lars Kanis l****s@g****e 1475
Michael Granger g****d@F****g 360
Jeff Davis d****y@g****m 85
Andreas Karlsson a****n@p****m 18
Charlie Savage c****s@r****g 14
Jeremy Evans c****e@j****t 12
Clément Joubert c****j 12
gemmaro g****v@g****m 8
Samuel Williams s****s@o****z 7
Jun Aruga j****a@r****m 7
Kashif Rasul k****f@n****m 7
Remy Obein r****y@c****h 5
Oskar Eichler o****r@s****m 5
Duncan MacGregor d****r@o****m 5
Andrew Marshall a****w@j****m 4
Alexander Popov a****r@g****m 4
Aaron Patterson a****n@g****m 3
Ivan Dzyzenko i****a@g****m 3
Chris Bandy b****s@g****m 3
rafal@Bonifacy.intranet r****l@B****t 3
Akito Kasai a****5@g****m 2
Jarek Prokop j****p@r****m 2
Mahlon E. Smith m****n@m****u 2
Ryuta Kamizono k****o@g****m 2
Steve Woodcock s****k@s****k 2
Yasuo Honda y****a@g****m 2
Yuki Fukuma f****1@g****m 2
ejoubaud e****d@g****m 2
fatkodima f****3@g****m 2
Mahlon E. Smith m****n@l****m 2
and 46 more...

Committer domains:


Issue and Pull Request metadata

Last synced: 2 days ago

Total issues: 463
Total pull requests: 367
Average time to close issues: 6 months
Average time to close pull requests: about 1 month
Total issue authors: 160
Total pull request authors: 77
Average comments per issue: 4.22
Average comments per pull request: 1.13
Merged pull request: 300
Bot issues: 0
Bot pull requests: 2

Past year issues: 23
Past year pull requests: 71
Past year average time to close issues: 11 days
Past year average time to close pull requests: 4 days
Past year issue authors: 14
Past year pull request authors: 13
Past year average comments per issue: 1.52
Past year average comments per pull request: 1.0
Past year merged pull request: 55
Past year bot issues: 0
Past year bot pull requests: 0

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/ged/ruby-pg

Top Issue Authors

  • ged (255)
  • larskanis (32)
  • voxik (6)
  • junaruga (4)
  • stanhu (3)
  • jackorp (3)
  • dentarg (2)
  • sridharraman (2)
  • aaronjensen (2)
  • yahonda (2)
  • askreet (2)
  • drdrsh (2)
  • hennevogel (1)
  • cmrd-senya (1)
  • ThomasCrambert (1)

Top Pull Request Authors

  • larskanis (223)
  • jeremyevans (9)
  • czj (9)
  • jeltz (9)
  • junaruga (8)
  • OskarEichler (6)
  • AlexWayfer (5)
  • gemmaro (4)
  • cbandy (3)
  • ged (3)
  • stanhu (2)
  • eregon (2)
  • jasl (2)
  • yahonda (2)
  • jackorp (2)

Top Issue Labels

  • bug (196)
  • major (193)
  • Library (167)
  • minor (43)
  • enhancement (34)
  • 0.14.0 (27)
  • 0.18.4 (24)
  • 0.17.1 (21)
  • 0.18.1 (21)
  • proposal (17)
  • 0.15.0 (12)
  • 0.13.1 (12)
  • 0.20.0 (11)
  • 0.10.0 (11)
  • 1.0.0 (9)
  • Packaging (9)
  • 0.11.0 (9)
  • migrated (9)
  • task (8)
  • critical (8)
  • 1.1.4 (8)
  • 1.1.3 (8)
  • trivial (7)
  • 0.16.0 (7)
  • 0.9.0 (5)
  • 0.19.0 (5)
  • 0.12.2 (5)
  • 0.10.1 (4)
  • blocker (4)
  • 0.13.2 (4)

Top Pull Request Labels

  • dependencies (2)

Package metadata

gem.coop: pg

Pg is the Ruby interface to the PostgreSQL RDBMS. It works with PostgreSQL 10 and later.

  • Homepage: https://github.com/ged/ruby-pg
  • Documentation: http://www.rubydoc.info/gems/pg/
  • Licenses: BSD-2-Clause
  • Latest release: 1.7.0 (published about 2 months ago)
  • Last Synced: 2026-11-16T00:59:21.415Z (2 days ago)
  • Versions: 326
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 489,230,917 Total
  • Docker Downloads: 817,679,683
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 0.043%
    • Downloads: 0.057%
    • Docker downloads count: 0.114%
  • Maintainers (3)
rubygems.org: pg

Pg is the Ruby interface to the PostgreSQL RDBMS. It works with PostgreSQL 10 and later.

  • Homepage: https://github.com/ged/ruby-pg
  • Documentation: http://www.rubydoc.info/gems/pg/
  • Licenses: BSD-2-Clause
  • Latest release: 1.7.0 (published about 2 months ago)
  • Last Synced: 2026-11-15T21:01:15.997Z (2 days ago)
  • Versions: 326
  • Dependent Packages: 2,180
  • Dependent Repositories: 468,233
  • Downloads: 489,204,337 Total
  • Docker Downloads: 817,679,683
  • Rankings:
    • Dependent packages count: 0.025%
    • Dependent repos count: 0.035%
    • Downloads: 0.059%
    • Docker downloads count: 0.146%
    • Average: 0.735%
    • Forks count: 2.005%
    • Stargazers count: 2.137%
  • Maintainers (3)
alpine-v3.18: ruby-pg

A PostgreSQL client library for Ruby

  • Homepage: https://github.com/ged/ruby-pg
  • Licenses: BSD-2-Clause PostgreSQL
  • Latest release: 1.5.3-r0 (published over 3 years ago)
  • Last Synced: 2026-03-14T16:50:08.591Z (8 months ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 4.535%
    • Forks count: 8.414%
    • Stargazers count: 9.725%
  • Maintainers (1)
proxy.golang.org: github.com/ged/ruby-pg

  • Homepage:
  • Documentation: https://pkg.go.dev/github.com/ged/ruby-pg#section-documentation
  • Licenses: other
  • Latest release: v1.7.0 (published about 2 months ago)
  • Last Synced: 2026-11-15T21:01:16.917Z (2 days ago)
  • Versions: 64
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent packages count: 6.999%
    • Average: 8.173%
    • Dependent repos count: 9.346%
alpine-v3.14: ruby-pg

A PostgreSQL client library for Ruby

  • Homepage: https://github.com/ged/ruby-pg
  • Licenses: BSD-2-Clause PostgreSQL
  • Latest release: 1.2.3-r0 (published almost 6 years ago)
  • Last Synced: 2026-04-01T01:10:11.946Z (8 months ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Forks count: 6.197%
    • Stargazers count: 6.364%
    • Average: 8.561%
    • Dependent packages count: 21.681%
  • Maintainers (1)
alpine-edge: ruby-pg

A PostgreSQL client library for Ruby

  • Homepage: https://github.com/ged/ruby-pg
  • Licenses: BSD-2-Clause PostgreSQL
  • Latest release: 1.6.3-r0 (published 10 months ago)
  • Last Synced: 2026-07-24T20:38:06.023Z (4 months ago)
  • Versions: 9
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Average: 8.862%
    • Forks count: 9.635%
    • Stargazers count: 11.173%
    • Dependent packages count: 14.641%
  • Maintainers (1)
alpine-v3.15: ruby-pg

A PostgreSQL client library for Ruby

  • Homepage: https://github.com/ged/ruby-pg
  • Licenses: BSD-2-Clause PostgreSQL
  • Latest release: 1.2.3-r1 (published about 5 years ago)
  • Last Synced: 2026-08-04T22:03:48.492Z (3 months ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Forks count: 6.483%
    • Stargazers count: 6.861%
    • Average: 9.732%
    • Dependent packages count: 25.585%
  • Maintainers (1)
alpine-v3.16: ruby-pg

A PostgreSQL client library for Ruby

  • Homepage: https://github.com/ged/ruby-pg
  • Licenses: BSD-2-Clause PostgreSQL
  • Latest release: 1.3.5-r0 (published over 4 years ago)
  • Last Synced: 2026-04-01T10:11:16.101Z (8 months ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Forks count: 6.732%
    • Stargazers count: 7.46%
    • Average: 10.376%
    • Dependent packages count: 27.311%
  • Maintainers (1)
alpine-v3.17: ruby-pg

A PostgreSQL client library for Ruby

  • Homepage: https://github.com/ged/ruby-pg
  • Licenses: BSD-2-Clause PostgreSQL
  • Latest release: 1.4.5-r0 (published almost 4 years ago)
  • Last Synced: 2026-04-01T09:16:15.724Z (8 months ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Forks count: 8.381%
    • Stargazers count: 9.201%
    • Average: 11.209%
    • Dependent packages count: 27.254%
  • Maintainers (1)
rubygems.org: cipherstash-pg

Pg is the Ruby interface to the PostgreSQL RDBMS. It works with PostgreSQL 9.3 and later.

  • Homepage: https://github.com/ged/ruby-pg
  • Documentation: http://www.rubydoc.info/gems/cipherstash-pg/
  • Licenses: BSD-2-Clause
  • Latest release: 1.0.0.beta.22-x86_64-linux (published about 3 years ago)
  • Last Synced: 2026-11-15T21:01:15.872Z (2 days ago)
  • Versions: 86
  • Dependent Packages: 1
  • Dependent Repositories: 0
  • Downloads: 125,144 Total
  • Rankings:
    • Forks count: 2.034%
    • Stargazers count: 2.141%
    • Dependent packages count: 15.722%
    • Average: 33.263%
    • Dependent repos count: 46.77%
    • Downloads: 99.646%
  • Maintainers (1)
guix: ruby-pg

Ruby interface to PostgreSQL

alpine-v3.22: ruby-pg

A PostgreSQL client library for Ruby

  • Homepage: https://github.com/ged/ruby-pg
  • Licenses: BSD-2-Clause PostgreSQL
  • Latest release: 1.5.9-r1 (published over 1 year ago)
  • Last Synced: 2026-08-10T15:06:37.795Z (3 months ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%
  • Maintainers (1)
alpine-v3.19: ruby-pg

A PostgreSQL client library for Ruby

  • Homepage: https://github.com/ged/ruby-pg
  • Licenses: BSD-2-Clause PostgreSQL
  • Latest release: 1.5.4-r0 (published about 3 years ago)
  • Last Synced: 2026-10-02T20:32:23.991Z (about 2 months ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%
  • Maintainers (1)
gentoo-portage: dev-ruby/pg

Ruby extension library providing an API to PostgreSQL

  • Homepage: https://github.com/ged/ruby-pg
  • Documentation: https://packages.gentoo.org/packages/dev-ruby/pg
  • Licenses: || ( BSD-2 Ruby-BSD )
  • Latest release: 1.6.3 (published 7 months ago)
  • Last Synced: 2026-05-27T02:48:38.083Z (6 months ago)
  • Versions: 5
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%
alpine-v3.21: ruby-pg

A PostgreSQL client library for Ruby

  • Homepage: https://github.com/ged/ruby-pg
  • Licenses: BSD-2-Clause PostgreSQL
  • Latest release: 1.5.9-r0 (published almost 2 years ago)
  • Last Synced: 2026-10-02T20:32:21.999Z (about 2 months ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%
  • Maintainers (1)
alpine-v3.23: ruby-pg

A PostgreSQL client library for Ruby

  • Homepage: https://github.com/ged/ruby-pg
  • Licenses: BSD-2-Clause PostgreSQL
  • Latest release: 1.5.9-r1 (published over 1 year ago)
  • Last Synced: 2026-04-09T02:02:58.818Z (7 months ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%
  • Maintainers (1)
pkgsrc-netbsd-x86_64-10.1-all: databases/ruby-pg

Ruby extension for PostgreSQL

  • Homepage: https://github.com/ged/ruby-pg
  • Documentation: https://pkgsrc.se/databases/ruby-pg
  • Licenses: 2-clause-bsd OR ruby-license
  • Latest release: 1.6.3 (published 8 months ago)
  • Last Synced: 2026-05-27T05:47:41.791Z (6 months ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%
alpine-v3.20: ruby-pg

A PostgreSQL client library for Ruby

  • Homepage: https://github.com/ged/ruby-pg
  • Licenses: BSD-2-Clause PostgreSQL
  • Latest release: 1.5.6-r0 (published over 2 years ago)
  • Last Synced: 2026-03-14T17:35:16.041Z (8 months ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%
  • Maintainers (1)

Dependencies

.github/workflows/binary-gems.yml actions
  • actions/checkout v2 composite
  • actions/download-artifact v2 composite
  • actions/upload-artifact v2 composite
  • ruby/setup-ruby v1 composite
.github/workflows/source-gem.yml actions
  • actions/checkout v2 composite
  • actions/download-artifact v2 composite
  • actions/upload-artifact v2 composite
  • ruby/setup-ruby v1 composite
Gemfile rubygems
  • bundler >= 1.16, < 3.0 development
  • rake-compiler ~> 1.0 development
  • rake-compiler-dock ~> 1.0 development
  • rdoc ~> 6.4 development
  • rspec ~> 3.5 development
misc/glibc/docker-compose.yml docker
misc/yugabyte/Dockerfile docker
  • yugabytedb/yugabyte 2024.1.0.0-b129 build
misc/yugabyte/docker-compose.yml docker
  • ruby 3.0
misc/glibc/Dockerfile docker
  • debian 10.13 build
pg.gemspec rubygems

Score: 32.80512814101168