---
title: "Postgres 12 Beta 1 Released"
publication: "Postgres Weekly"
issue: 307
published_at: "2019-05-29"
canonical_url: "https://postgresweekly.com/issues/307"
---

The latest Postgres news, articles, tools, and projects.       

#307 — May 29, 2019 

[Read on the Web](https://postgresweekly.com/issues/307)   

Postgres Weekly 

[![\](https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60/m6hlvb2bh95gyenivb2v.jpg)](http://dtrace.org/blogs/dap/2019/05/22/visualizing-postgresql-vacuum-progress/)   

[Visualizing the Postgres Vacuum Progress](http://dtrace.org/blogs/dap/2019/05/22/visualizing-postgresql-vacuum-progress/) — If your database’s vacuum procedure is taking an extensive amount of time (as it is here) being able to visualize its progress is surely desirable. 

Dave Pacheco   

[Postgres 12 Beta 1 Released](https://www.postgresql.org/about/news/1943/) — The [draft release notes](https://www.postgresql.org/docs/devel/release-12.html) go into detail on what’s new, but a few things worth looking at are: 

- Inlined `WITH` query support (one for you CTE fans).
- SQL:2016-compliant JSON path queries.
- Case and accent insensitive comparisons for ICU provided collations.
- [Generated columns](https://www.postgresql.org/docs/devel/ddl-generated-columns.html).
- A pluggable table storage mechanism. 

PostgreSQL Global Development Group   [![\](https://copm.s3.amazonaws.com/0c8e53d3.png)](https://www.cockroachlabs.com/blog/automatic-sql-statistics/) 

[Using Automatic Table Statistics to Improve the Optimizer](https://www.cockroachlabs.com/blog/automatic-sql-statistics/) — How automatically generating table statistics made a cost-based optimizer make better decisions when picking queries. 

Cockroach Labs sponsor   

[Parallel PostGIS and PgSQL 12: Problems Solved!](http://blog.cleverelephant.ca/2019/05/parallel-postgis-4.html) — Spatial queries are often CPU-bound so being able to process them in parallel potentially has big wins which Postgres 12 is now able to deliver on: _“PostgreSQL 12 and PostGIS 3 have finally cracked the parallel spatial query execution problem, and all major queries execute in parallel without extraordinary interventions.”_ 

Paul Ramsey   

[Using Docker Hub's Postgres Images](https://www.2ndquadrant.com/en/blog/using-docker-hub-postgresql-images/) — Very helpful advice if you want to use the Docker-hosted images to run up Postgres for things like CI jobs or development. 

Craig Ringer   

[Table Inheritance: What's it Good For?](https://ledgersmbdev.blogspot.com/2019/05/table-inheritance-whats-it-good-for.html) — I must admit, I’ve never used table inheritance, but Chris demonstrates how it can make certain database design problems a lot easier to handle. 

Chris Travers   

[Deploying Active-Active Postgres on Kubernetes](https://info.crunchydata.com/blog/active-active-on-kubernetes) — A step-by-step guide on how to deploy an active-active Postgres cluster on Kubernetes using [Symmetric-DS](https://www.symmetricds.org/) (an open source database replication tool). 

Dave Cramer   

▶[Postgres, C'est le Nouveau NoSQL (It's the New NoSQL)](https://www.youtube.com/watch?v=h_l2z-Ti8gg) — A talk that’s _in French_ which limits the audience somewhat but the slides are, handily, all in English. 

Laurent Doguin   

[Don’t Miss Postgres Vision 2019](https://postgresvision.com/) — Join us June 24 - 26, Boston, MA. Register now. 

EnterpriseDB sponsor   

[PostgresClientKit: A Client Library for Swift That Doesn't Require `libpq`](https://github.com/codewinsdotcom/PostgresClientKit) 

David Pitfield   

[Sequelize: An Easy-to-Use Multi SQL Dialect ORM for Node.js](https://github.com/sequelize/sequelize) — Works well with Postgres and good choice if you’re a Node developer. 

Sequelize       supported by [![Percona\](https://res.cloudinary.com/cpress/image/upload/v1559053486/vmjp4kyjuomp5klwidlw.png)](https://www.percona.com/live/19/postgresql-track)  

💡 Tip of the Week 

Spinning up a quick, temporary Postgres instance with Docker 

Docker makes it _really_ easy to spin up an independent Postgres server and `psql` quickly if you want to try something out. 

Craig Ringer's [Using Docker Hub's PostgreSQL Images](https://www.2ndquadrant.com/en/blog/using-docker-hub-postgresql-images/) tutorial (linked above) is fantastic if you want to use Docker's Postgres images at any serious level, but I also use them in a lightweight way for quick tasks such as checking SQL support between different versions or to test the tips we include here! 

Make sure you have Docker installed and fully working and then create a 'network' specifically for your experiementation (this 'network' enables `psql` to run in a separate container and connect across to the Postgres instance):  

docker network create pg1   

Now we can spin up a Postgres server instance like so:  

docker run --name my-pg-server -e \
 POSTGRES_PASSWORD= \
 --network pg1 --rm -d postgres   

_Note: If you want a specific version of Postgres, replace 'postgres' at the end with, say, 'postgres:10.8'. You can see [which versions are supported here.](https://hub.docker.com/_/postgres)_ 

To connect to this instance using `psql`:  

docker run -it --rm --network pg1 \
 postgres psql -h my-pg-server \
 -U postgres   

Once you've finished using the server, use `docker stop my-pg-server` and you're good to go about the rest of your day. Do not use this in a production scenario, however, as the server has been created with **no password** and is therefore unsecured. 

There's more [documentation on Docker Hub](https://hub.docker.com/_/postgres). 

This week's tip is sponsored by _[Percona](https://www.percona.com/live/19/postgresql-track)_. Expand your knowledge with insights on [Postgres at Percona Live](https://www.percona.com/live/19/postgresql-track) May 29-30th in Austin, TX.      

🗓 Upcoming Postgres Events 

- [PostgreSQL Ibiza](https://www.pgibz.io/index.html) (Jun 19-21 on Ibiza) — Spain's famous _party island_ promises you both "Postgres on the beach" while still having talks and training in a neat looking venue.
- [Postgres Vision 2019](https://postgresvision.com/) (June 24-26 in Boston, MA)
- [PostgresLondon 2019](https://postgreslondon.org/) (July 2-3 in London, UK)
- [PostgresConf Beijing 2019](https://postgresconf.org/conferences/Beijing) (July 3-6 in Beijing, China)          

Curated by [Cooperpress](https://cooperpress.com/) and [Craig Kerstiens](https://twitter.com/craigkerstiens). 

[Change your email address](https://postgresweekly.com/edit_subscription/*|UID|*) or[Stop getting this newsletter](https://postgresweekly.com/leave/*|UID|*) 

© Cooper Press Ltd · Fairfield Enterprise Centre, Louth, LN11 0LS, United Kingdom
