---
title: "This Week's PostgreSQL News (#124)"
publication: "Postgres Weekly"
issue: 124
published_at: "2015-09-24"
canonical_url: "https://postgresweekly.com/issues/124"
---

Postgres Weekly 124   . 

[Read this on the Web](http://postgresweekly.com/issues/124) 

[Postgres Weekly](http://postgresweekly.com) Issue 124 — September 24, 2015     

[Projection Tables in Postgres](https://medium.com/namely-labs/projection-tables-in-postgres-8aaf290c7645?utm_source=postgresweekly&utm_medium=email)Sometimes you’ll have a mix of different types of data in a single table and want to roll it up into a more standard report - as you might do with a pivot table in Excel. Thankfully you can do this directly in Postgres without having to grab the raw data then manipulate elsewhere. Jim Walker [In PostgreSQL, As in Life, Don't Wait Too Long to Commit](http://blog.lerner.co.il/in-postgresql-as-in-life-dont-wait-too-long-to-commit/?utm_source=postgresweekly&utm_medium=email)Transactions can be very useful but in Postgres you shouldn’t be holding onto open transactions for too long. Doing so can have surprisingly unpleasant consequences. Commit or rollback as soon as you can — or you might find yourself with a database accumulating gigabytes full of old, unnecessary rows. Reuven Lerner [Customer-Facing Analytics Dashboards on Real-Time Big Data for SaaS Apps](http://info.citusdata.com/BigDataPW2.html?utm_source=postgresweekly&utm_medium=email)CitusDB can deliver [analytics dashboards into real-time Big Data](http://info.citusdata.com/BigDataPW2.html) for your SaaS customers. It can reduce the cost and complexity of your database infrastructure and leverage your existing PostgreSQL knowledge and applications. CitusDB [elastically scales](http://info.citusdata.com/BigDataPW2.html) and supports JSONB. Citus Data#sponsored[![\](https://copm.s3.amazonaws.com/30ab7a09.png)](http://info.citusdata.com/BigDataPW2.html?utm_source=postgresweekly&utm_medium=email) [Stored Procedures: Benefits and Pitfalls](http://goto.project-a.com/stored-procedures/?utm_source=postgresweekly&utm_medium=email)A look at the benefits of using stored procedures while taking into account some challenges and potential pitfalls. Florian Brick [Explain Explained: A Slidedeck](http://jberkus.github.io/explain_explained/index.html?utm_source=postgresweekly&utm_medium=email#1)Explain shows you what happens when your query actually executes, though even to many experienced with Postgres deciphering the results can be a bit painful. Here’s a great deck from a recent talk that walks you through what’s there. Josh Berkus#code [Handling Circular Data Structures in Postgres](https://www.garysieling.com/blog/handling-circular-data-structures-in-postgres?utm_source=postgresweekly&utm_medium=email)If you’re dealing with groups that contain other groups, or any other kind of nested structure the default might be to simply make a bunch of separate database calls from within your app. Fortunately with recursive queries there is a better way. Gary Sieling [node-pg-util: Utility Belt for PostgreSQL](https://github.com/lalitkapoor/node-pg-util?utm_source=postgresweekly&utm_medium=email)If your style isn’t for a heavy weight ORM, but something to let you work with more raw SQL then here’s a great solution for you with Node. Lalit Kapoor#code [PostgreSQL for MySQL Administrators](https://opslife.org/postgresql-for-mysql-administrators/?utm_source=postgresweekly&utm_medium=email)If you’re familiar with MySQL but are still finding the ropes with psql and Postgres, this will help. Daniel Hauck#tutorial [Senior Backend & API Developer (Berlin, Germany)](http://idagio.com/work)Do you have experience with Java and Ruby on Rails and want to work on something meaningful? Come join us at IDAGIO, a classical music platform already used in over 68 countries globally. You’ll help build our new backend and API and join our experienced team. We help with visas and relocation. Idagio#job [Want to work on new projects? Make more money? Try a new stack? Relocate?](https://hired.com/?utm_source=postgresweekly&utm_medium=email&utm_campaign=n-q3_15-petercooperpress&utm_content=options)On Hired, we'll bring the options to you. With over 2,000 pre-screened tech companies in 10 cities in the US UK, you'll be sure to find what you're looking for. Join Hired today. Hired.​com#job    

Postgres Weekly is curated by [Craig Kerstiens](https://twitter.com/craigkerstiens) [Read this issue on the Web](http://postgresweekly.com/issues/124) [See our archives](http://postgresweekly.com/issues) [Change your email address](*|UPDATE_PROFILE|*)  [Stop getting this newsletter](*|UNSUB|*)  

Published by [Cooperpress](https://cooperpress.com/)
Fairfield Enterprise Centre, Lincoln Way, Louth, LN11 0LS, UK
