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

rubygems activerecord mvc activejob rack ruby-gem rspec libyaml sinatra documentation-tool

Last synced: about 16 hours ago
JSON representation

Repository metadata

A PostgreSQL client library for Ruby

README-OS_X.rdoc

          = Compiling on MacOS X

The EnterpriseDB packages are the recommended PostgreSQL installations to use
with MacOS X. They eliminate most or all of the issues with getting 'pg'
installed, linked correctly, and running.

== Segfaults and SSL Support

If you need a custom installation of PostgreSQL, you should ensure that you
either compile it against the same version of OpenSSL as the OpenSSL extension
of the Ruby you'll be using, or compile it without SSL support. If you fail to
do this, you will likely see segfaults when you use 'pg' and the 'openssl'
extension at the same time. You can see what library it's linked against using
'otool -L'; for example, on my 10.7 machine I use for 'pg' development:

    $ otool -L /System/Library/Frameworks/Ruby.framework/Versions\
      /1.8/usr/lib/ruby/1.8/universal-darwin11.0/openssl.bundle

    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/\
        lib/ruby/1.8/universal-darwin11.0/openssl.bundle:
        /System/Library/Frameworks/Ruby.framework/Versions/1.8/\
            usr/lib/libruby.1.dylib (compatibility version 1.8.0, \
            current version 1.8.7)
        /usr/lib/libssl.0.9.8.dylib (compatibility version 0.9.8, \
            current version 0.9.8)
        /usr/lib/libcrypto.0.9.8.dylib (compatibility version 0.9.8, \
            current version 0.9.8)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, \
            current version 159.0.0)


== Dealing with Installation Problems

If you are building/installing pg on MacOS X, and the installation doesn't
work at first, here are a few things you can try.

=== pg_config

The first thing you should do is ensure that the 'pg_config' tool that comes
with Postgres is in your path. If it isn't, or the one that's first in your
path isn't the one that was installed with the Postgres you want to build
against, you can specify the path to it with the --with-pg-config option.

For example, if you're using the Ruby binary that comes with OSX, and
PostgreSQL 9.0.x installed from MacPorts, do:

	gem install -- --with-pg-config=/opt/local/lib/postgresql90/bin/pg_config

=== ARCHFLAGS and Universal Binaries

OS X supports both architecture-specific binaries (e.g. i386), as well as
universal binaries (i.e. i386 & ppc). If Ruby is built as a universal binary
and PostgreSQL is not, you need to specify the path to the appropriate
pg_config binary or set the environment variable ARCHFLAGS appropriately.

Alternatively, if the build system can't figure out which architectures it
should include, you may need to set the 'ARCHFLAGS' environment variable
explicitly:

	sudo env ARCHFLAGS='-arch x86_64' gem install pg

or, if you're building from source:

	rake compile ARCHFLAGS="-arch x86_64"

Note that the recommended EnterpriseDB packages are correctly compiled as
universal binaries, and don't need any of these workarounds.


        

Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 4 days ago

Total Commits: 1,985
Total Committers: 69
Avg Commits per committer: 28.768
Development Distribution Score (DDS): 0.295

Commits in past year: 96
Committers in past year: 4
Avg Commits per committer in past year: 24.0
Development Distribution Score (DDS) in past year: 0.031

Name Email Commits
Lars Kanis l****s@g****e 1400
Michael Granger g****d@F****g 360
Jeff Davis d****y@g****m 85
Charlie Savage c****s@r****g 14
Jeremy Evans c****e@j****t 12
Samuel Williams s****s@o****z 7
Jun Aruga j****a@r****m 7
Kashif Rasul k****f@n****m 7
gemmaro g****v@g****m 5
Remy Obein r****y@c****h 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
Chris Bandy b****s@g****m 3
rafal@Bonifacy.intranet r****l@B****t 3
Jarek Prokop j****p@r****m 2
Akito Kasai a****5@g****m 2
Mahlon E. Smith m****n@l****m 2
Mahlon E. Smith m****n@m****u 2
Ryuta Kamizono k****o@g****m 2
Steve Woodcock s****k@s****k 2
ejoubaud e****d@g****m 2
fatkodima f****3@g****m 2
Alyssa Ross hi@a****s 1
Benoit Daloze e****p@g****m 1
Brandon Dunne b****e@h****m 1
Alexander J. Maidak a****k@e****m 1
Ethan Pailes e****s@g****m 1
cwgem c****m@l****m 1
and 39 more...

Committer domains:


Issue and Pull Request metadata

Last synced: about 1 month ago

Total issues: 108
Total pull requests: 183
Average time to close issues: 5 months
Average time to close pull requests: about 1 month
Total issue authors: 90
Total pull request authors: 26
Average comments per issue: 4.0
Average comments per pull request: 0.56
Merged pull request: 150
Bot issues: 0
Bot pull requests: 2

Past year issues: 26
Past year pull requests: 70
Past year average time to close issues: 10 days
Past year average time to close pull requests: 12 days
Past year issue authors: 25
Past year pull request authors: 6
Past year average comments per issue: 1.04
Past year average comments per pull request: 0.24
Past year merged pull request: 52
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

  • larskanis (11)
  • voxik (4)
  • stanhu (3)
  • ged (2)
  • sridharraman (2)
  • dentarg (2)
  • Navbryce (1)
  • kirqe (1)
  • lpar (1)
  • imamdg (1)
  • pgundlupetvenkatesh (1)
  • benone (1)
  • trak3r (1)
  • thibpoullain (1)
  • tnir (1)

Top Pull Request Authors

  • larskanis (141)
  • AlexWayfer (5)
  • gemmaro (3)
  • drdrsh (2)
  • byroot (2)
  • jcalvert (2)
  • dependabot[bot] (2)
  • danlo (2)
  • kianmeng (2)
  • matt-domsch-sp (2)
  • ajmaidak (2)
  • kwatch (2)
  • jeremyevans (2)
  • jackorp (2)
  • neilvcarvalho (1)

Top Issue Labels

  • bug (2)
  • major (2)
  • migrated (2)
  • Library (1)
  • 1.1.4 (1)

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.6.2 (published 3 months ago)
  • Last Synced: 2025-12-09T13:02:00.475Z (1 day ago)
  • Versions: 307
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 410,032,911 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.6.2 (published 3 months ago)
  • Last Synced: 2025-12-08T18:34:21.749Z (2 days ago)
  • Versions: 307
  • Dependent Packages: 2,180
  • Dependent Repositories: 468,233
  • Downloads: 409,854,864 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 2 years ago)
  • Last Synced: 2025-11-12T05:27:27.426Z (28 days 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.6.2 (published 3 months ago)
  • Last Synced: 2025-12-07T21:02:31.880Z (3 days ago)
  • Versions: 62
  • 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 5 years ago)
  • Last Synced: 2025-12-07T21:02:43.437Z (3 days 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.5.9-r1 (published 8 months ago)
  • Last Synced: 2025-12-07T21:03:11.237Z (3 days ago)
  • Versions: 8
  • 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 4 years ago)
  • Last Synced: 2025-12-07T21:02:37.951Z (3 days 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 3 years ago)
  • Last Synced: 2025-12-07T21:02:36.578Z (3 days 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 about 3 years ago)
  • Last Synced: 2025-12-07T21:02:39.740Z (3 days 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)
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 over 2 years ago)
  • Last Synced: 2025-12-07T21:03:00.293Z (3 days 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.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 1 year ago)
  • Last Synced: 2025-11-13T04:47:04.385Z (27 days 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.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 about 1 year ago)
  • Last Synced: 2025-12-07T21:02:42.602Z (3 days 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.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 8 months ago)
  • Last Synced: 2025-12-07T21:02:44.046Z (3 days 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
pg.gemspec rubygems

Score: 32.61388676179989