Mar 23rd, 2017

PgDay Paris 2017

conference, pgday, Paris, postgresql

PostgreSQL is known to be a very good relational database system. Because it is robust, because it has all the features that modern RDBMS databases systems expects. On top of that it is an open source and free software with a very wide community behind it. This community is filled with great people trying to make the postgreSQL ecosystem as good as possible.

Today I had the chance to attend the PgDay Paris 2017 event and it was a very nice day. I tried to take some notes about the talks and wanted to share with you what I saw. Most of the talks have slides available online but if you want more detail about what was said and what I captured during this event please follow the page bellow :).

Small conference for better encounters

This is a great one day conference. It is usually an affordable event, with great speakers from the PostgreSQL community around the world and is held entirely in English. If you have the chance to attend you should come! This year's 2017 edition was my second pgday.paris and I was verry happy to be part as a spectator.

Huge thanks to the Staff organising the event! @shaysler, @pg_krol, @pg_xocolatl, and Katharine Atwood.

Talks

Morning

Afternoon

A PG DBAs Toolbelt

Setup

Monitoring

Monitoring frameworks

Common data tools

Indexing

Bloat

Data integrations

For developers

Scaling

↑ Back to the list of talks


Corruption War Stories

it will happen /o\

Preventing corruption

Hardware is cheap. But data is expensive

Technic, Process

Find corruptions

HW failures

HW features

PG bugs

Operator error

What to do?

Basics

Again: use pg_dump

Bad data page

Really bad data pages

Desperate cures

WORK ON A COPY

Check system logs

WAL files corrupt or missing

pg_clog

system catalog corruption

Real life corruptions stories

pg_clog corruption

upgrade

the fix

Moral

Other moral

Too many autovacuums going on

Moral

TL;DR

Q/A

↑ Back to the list of talks


Can't imagine what a newbie can do with PG on Linux in a month

IPrec

Beginnings (our first test)

Good for newbies

Newbies got something out of the training program

TL;DR

It is Not Because Things are Difficult that We Do Not Dare; It Is Because We Do Not Dare that They are Difficult.

~Seneca~

↑ Back to the list of talks


Measuring and Reducing Postgres Transaction Latency

OLTP - Online Transaction Processing

Typical 3-tier web app

Transaction perf measures

PG perf swiss army knife

Connection costs

→ of course avoid reconnections for each transaction.

Comparing 9.5 vs 9.6

Why?

Solutions?

Rate vs Limit

Play with FILLFACTOR storage param

Hardware

UNLOGGED tables (mysql style - data at risk)

RO test (in-cache)

Query combination trick

Client-server distance

Scalibility

Misc settings

TL; DR

Q/A

↑ Back to the list of talks


A look at the Elephant's Trunk - PG 10

New era of versioning

Schedule of PG 10

Go go go, New features

Small things

Bigger things

good news (client)

SCRAM authentication

libpq enhancements (client)

Monitoring

pg_stat_activity

Developer and SQL features

PL/python

Data ingestion

XMLTABLE

Backup and replication

new defaults

Replication slots

pg_basebackup

pg_receivewal

quorum based sync repli

logical replication

postgres_fdw

Hash indexes

Partitioning

More Parallelism

Usability

Subqueries

index scans

merge joins

Still lots to do

Please help! Please

↑ Back to the list of talks


Infrastructure Monitoring

openstack

Problem about monitoring?

Why monitoring?

Existing tools

Can become complex

Why not put PG where you need to store data?

PG for metrics

Some problems arises

Use indexes luke!

Use IDs to map values

As time window grows, less detail is necessary

Log searching

*

Log parsing?

PG for Queueing (replace Kafka)

POC available on Github

TL; DR

↑ Back to the list of talks


MLS Postgres and SELinux

Replication & Recovery in PG 10

PG 10

Recovery & Robustness

Design, Code, Review, Commit

Review

Design

Replication lag tracking

Logical Replication - "Data flow"

Data integration

PG Rollout

PG rollup

Online upgrade

Row filtering

Multi-master repli

Postgresql-BDR

All this for free?

Postgresql

↑ Back to the list of talks