Dimitri Fontaine's Blog
December 25, 2019
pgDay Paris 2019 presentation: How to write SQL queries?
The videos from pgDay Paris 2019 are online, and
they look stunning! If you’ve been to the conference, you will be able to
enjoy great memories, and if you’ve not been there, you can now enjoy all
the fine content that was recorded there at the Youtube Channel for
pgDay.Paris.
This year at pgday Paris I tried something new. My presentation was
interactive, and I’ve been writing queries together with the audience,
making mistakes, loosing keystrokes and having all the fun!
The idea behind looking like a fool writing queries in front of an audience
was to show the process behind those elegant queries that we tend to share
in one piece, on a slide where they shine, beautifully indented. We don’t
get to those queries writing them like we would prose. It takes multiple
iterations to get there. From something quite simple to something more and
more sophisticated, until we have exactly the result set we are interested
in.
November 29, 2019
Black Friday & Cyber Monday
From today to Monday included my book The Art of PostgreSQL is available at a 50% discount with the coupon ���BLACKFRIDAY2019���. Enjoy!
November 6, 2019
PostgreSQL Query Plan Visualizer
Parsing Planning Optimization Execution When it comes to the execution step, all Postgres does is follow the selected optimized plan. It is possible to ask Postgres for the query plan and inspect it, in order to better understand the execution of any query and then when necessary find a way to execute the same query faster.
October 13, 2019
Table of Content
Compute database size
But what is a large amount of data? Do you need to pay attention to those scalability trade-offs now, or can you wait until later?
September 27, 2019
Why Postgres?
Photo by Emily Morter
unsplash-logoEmily Morter
That’s a very popular question to ask these days, it seems. The quick answer
is easy and is the slogan of PostgreSQL, as seen on the community website
for it: ���PostgreSQL: The World’s Most Advanced Open Source Relational
Database���. What does that mean for you, the developer?
In my recent article The Art of PostgreSQL: The Transcript, part I
you will read why I
think it’s interesting to use Postgres in your application’s stack. My
conference talk addresses the main area where I think many people get it
wrong:
Postgres is a RDBMS
RDBMS are not a storage solution
Do not use Postgres to solve a storage problem!
September 25, 2019
The Art of PostgreSQL: The Transcript, part III
This article is a transcript of the conference I gave at Postgres Open 2019,
titled the same as the book: The Art of
PostgreSQL. It’s availble as a video online
at Youtube if you want to watch the slides and listen to it, and it even has
a subtext!
Some people still prefer to read the text, so here it is. This text is the
third part of the transcript of the video.
The first part is available at The Art of PostgreSQL: The Transcript, part
I.
The second part is available at The Art of PostgreSQL: The Transcript, part
II.
September 23, 2019
The Art of PostgreSQL: The Transcript, part II
This article is a transcript of the conference I gave at Postgres Open 2019,
titled the same as the book: The Art of
PostgreSQL. It’s availble as a video online
at Youtube if you want to watch the slides and listen to it, and it even has
a subtext!
Some people still prefer to read the text, so here it is. This text is the
second part of the transcript of the video. The first part is available at
The Art of PostgreSQL: The Transcript, part I
.
September 20, 2019
The Art of PostgreSQL: The Transcript, part I
This article is a transcript of the conference I gave at Postgres Open 2019,
titled the same as the book: The Art of
PostgreSQL. It’s availble as a video online
at Youtube if you want to watch the slides and listen to it, and it even has
a subtext!
Some people still prefer to read the text, so here it is.
September 16, 2019
How to Learn SQL?
Here we are, another SQL query to write. You wish you knew how to write that
mechanically, like you would a loop in your favorite programming language.
Or at least have a pretty clear idea of a skeleton to tweak until it gives
the result set you expect. So instead of working on your SQL query, you
google How to write a SQL query? or maybe even How to learn SQL?
Right. I feel you, I’ve been there too, even if quite some time ago���
So here my article where I teach you how to learn SQL.
I want to share with you how I did it, and how I continue to do it. There’s
no magic secret sauce to it though, it’s all basic work. Again, we have to
learn the main concepts and how they play together, then practice simple
steps, and then build from there.


