PostgreSQL
-
Extracting SQL from WAL? (part 2) In the previous article of this series, we saw how to extract WAL records related to the exact SQL commands we want, INSERTs on heap tables, and what the structure of those records was. In this article we will focus on the heap specific information contained in those records and how to extract SQL queries from them.
Continue reading -
Extracting SQL from WAL? (part 1) Is it actually possible to extract SQL commands from WAL generated in “replica”
Continue readingwal_level
? -
Queryid reporting in plpgsql_check plpgsql_check version 1.14.0 was just released and brings some improvement for performance diagnostic.
Continue reading -
New in pg13: WAL monitoring Write-Ahead Logs is a critical part of PostgreSQL, that ensures data durability. While there are multiple configuration parameters , there was no easy to monitor WAL activity, or what is generating it.
Continue reading -
New in pg13: Monitoring the query planner Depending on your workload, the planning time can represent a significant part of the overal query procesing time. This is especially import in OLTP workload, but OLAP queries with numerous tables being joined and an aggressive configuration on the JOIN order search can also lead to hight planning time.
Continue reading -
Planner selectivity estimation error statistics with pg_qualstats 2 Selectivity estimation error is one of the main cause of bad query plans. It’s quite straighforward to compute those estimation error using
Continue readingEXPLAIN (ANALYZE)
, either manually or with the help of explain.depesz.com (or other similar tools), but until now there were now tool available to get this information automatically and globally. Version 2 of pg_qualstats fixes that, thanks a lot to Oleg Bartunov for the original idea! -
New in pg13: New leader_pid column in pg_stat_activity New leader_pid column in pg_stat_activity view
Continue reading -
pg qualstats 2: Global index advisor Coming up with good index suggestion can be a complex task. It requires knowledge of both application queries and database specificities. Over the year multiple projects tried to solve this problem, one of which being PoWA with the version 3, with the help of pg_qualstats extension. It can give pretty good index suggestion, but it requires to install and configure PoWA, while some users wanted to only have the global index advisor. In such case and for simplicity, the algorithm used in PoWA is now available in pg_qualstats version 2 without requiring any additional component.
Continue reading -
PoWA 4: New powa-collector daemon This article is part of the PoWA 4 beta series, and describes the new powa-collector daemon.
Continue reading -
PoWA 4: changes in powa-archivist! This article is part of the PoWA 4 beta series, and describes the changes done in powa-archivist.
Continue reading -
PoWA 4 brings a remote mode, available in beta! PoWA 4 is available in beta.
Continue reading -
New in pg12: Statistics on checkums errors Data checksums
Continue reading -
pg_stat_kcache 2.1 is out A new version of pg_stat_kcache is out, with support for Windows and other platforms, and more counters available.
Continue reading -
Wait Events support for PoWA You can now view the Wait Events in PoWA thanks to the pg_wait_sampling extension.
Continue reading -
Diagnostic of an unexpected slowdown This blog post is a summary of a production issue I had to investigate some time ago with people from Oslandia, and since it’s quite unusual I wanted to share it with some methodology I used, if it can help anyone running into the same kind of problem. It’s also a good opportunity to say that upgrading to a newer PostgreSQL version is almost always a good idea.
Continue reading -
Minimizing tuple overhead I hear quite often people being disappointed on how much space PostgreSQL is wasting for each row it stores. I’ll try to show here some tricks to minimize this effect, to allow more efficient storage.
Continue reading -
Estimating Needed Memory for a Sort work_mem?
Continue reading -
Keep an eye on your PostgreSQL configuration Have you ever wished to know what configuration changed during the last weeks, when everything was so much faster, or wanted to check what happened on your beloved cluster while you were in vacation?
Continue reading -
How About Hypothetical Indexes ? After so much time missing this features, HypoPG implements hypothetical indexes support for PostgreSQl, available as an extension.
Continue reading -
Talking About OPM and PoWA at pgconf.ru Last month, I had the chance to talk about PostgreSQL monitoring, and present some of the tools I’m working on at pgconf.ru.
Continue reading -
pg_stat_kcache 2.0 Some history
Continue reading