# \[ANN\] pg 0.15.1 Released

**URL:** <https://rubytalk.org/t/ann-pg-0-15-1-released/67670>\
**Category:** ruby-talk\
**Created:** [8 April 2013 18:14 UTC](https://rubytalk.org/t/ann-pg-0-15-1-released/67670 "2013-04-08T18:14:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Granger](https://avatars.discourse-cdn.com/v4/letter/m/a88e4f/32.png) [@Michael\_Granger](https://rubytalk.org/u/Michael_Granger)\
**Post date:** [8 April 2013 18:14 UTC](https://rubytalk.org/t/ann-pg-0-15-1-released/67670/1 "2013-04-08T18:14:49Z")

</div>

pg version 0.15.1 has been released!

\* \<[https://bitbucket.org/ged/ruby-pg](https://bitbucket.org/ged/ruby-pg)\> (home)  
\* \<[https://github.com/ged/ruby-pg](https://github.com/ged/ruby-pg)\> (mirror)  
\* \<[http://deveiate.org/code/pg](http://deveiate.org/code/pg)\> (docs)

Pg is the Ruby interface to the {PostgreSQL RDBMS}[[http://www.postgresql.org/](http://www.postgresql.org/)].

It works with {PostgreSQL 8.4 and later}[[http://www.postgresql.org/support/versioning/](http://www.postgresql.org/support/versioning/)].

A small example usage:

&nbsp;&nbsp;#!/usr/bin/env ruby

&nbsp;&nbsp;require 'pg'

&nbsp;&nbsp;# Output a table of current connections to the DB  
&nbsp;&nbsp;conn = PG.connect( dbname: 'sales' )  
&nbsp;&nbsp;conn.exec( "SELECT \* FROM pg\_stat\_activity" ) do |result|  
&nbsp;&nbsp;&nbsp;&nbsp;puts " PID | User | Query"  
&nbsp;&nbsp;result.each do |row|  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;puts " %7d | %-16s | %s " %  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;row.values\_at('procpid', 'usename', 'current\_query')  
&nbsp;&nbsp;&nbsp;&nbsp;end  
&nbsp;&nbsp;end

Changes:

> **···**
>
> == v0.15.1 [2013-04-08] Michael Granger \<[ged@FaerieMUD.org](mailto:ged@FaerieMUD.org)\>
> 
> Bugfixes:
> 
> - Shorten application\_name to avoid warnings about truncated identifier.
