Neues vom PostgreSQL Planet

Neues vom PostgreSQL Planet Feed abonnieren
Planet PostgreSQL
Aktualisiert: vor 2 Stunden 36 Minuten

Henrietta Dombrovskaya: PG Day Chicago Volunteer Sign-Up

17. Januar 2023 - 21:16

Hi, friends and colleagues in Chicago, and those who plan to attend the PG Day Chicago on April 20! We are looking for volunteers, and there are many options available. I know that the volunteer sign-up was not working before, but now it is fixed, and you can sign up here: the link to the volunteer form.

Frits Hoogland: Watching a YugabyteDB table: replication factor

17. Januar 2023 - 16:48

One of the most frequently reoccurring questions that we get at YugabyteDB how to interpret the information that YugabyteDB provides when people are testing (high) availability. This is a summary of that.

Pavlo Golub: usql: universal psql?

17. Januar 2023 - 11:00
usql? But why?

usql is a universal command-line interface for many database(repositories). But why are we still using CLI (command line utilities) in the 21st century? And what is wrong with psql?

Luca Ferrari: Handling NULLs and Empty values in PL/Perl

17. Januar 2023 - 1:00

How to correctly detect an SQL NULL value in PL/Perl.

Henrietta Dombrovskaya: One of many dumb things I did recently…

16. Januar 2023 - 16:36

I know that many people are reluctant to admit they made some stupid mistakes (like accidentally dropping a table in production). Some of these mistakes are very visible to the rest of the world, like the infamous Amazon S3 rm *, but raise the hands those who never ever did anything like this?! That’s why I always try to share my “oops,” in hope that it will make many people feel better.

Now, here is my recent story.

Andreas 'ads' Scherbaum: Miroslav Šedivý

16. Januar 2023 - 15:00
PostgreSQL Person of the Week Interview with Miroslav Šedivý: My name is Miroslav Šedivý, but most people call me Miro, which allows them to avoid typing some letters they do not have on their keyboard. I was born in Czechoslovakia (yes, I am over 30 now), studied computer sciences in France and Germany, and now I am living in Austria.

Christophe Pettus: OK, sometimes you can lock tables.

16. Januar 2023 - 8:00

Previously, I wrote that you should never lock tables. And you usually shouldn’t! But sometimes, there’s a good reason to. Here’s one.

When you are doing a schema-modifying operation, like adding a column to a table, PostgreSQL needs to take an ACCESS EXCLUSIVE lock on the table while it is modifying the system catalogs. Unless it needs to rewrite the table, this lock isn’t held for very long.

Christophe Pettus: How slow is DECIMAL, anyway?

15. Januar 2023 - 8:00

In PostgreSQL, NUMERIC is a variable length type of fixed precision. You can have as many digits as you want (and you want to pay the storage for). DOUBLE PRECISION is a floating point type, with variable precision.

Sometimes, the question comes up: How much slower is NUMERIC than DOUBLE PRECISION, anyway?

Here’s a quick, highly unscientific benchmark:

Andrew Dunstan: Announcing Release 16 of the PostgreSQL Buildfarm client

14. Januar 2023 - 2:21

 

Hot on the heels of Release 15 comes Release 16.

This release deals with some issues that have been discovered with the check for update feature of Release 15 and the force_every and trigger_exclude features, so that it now works correctly with those features.

It also features these items:

Greg Sabino Mullane: How to Solve Advent of Code 2022 Using Postgres - Day 12

13. Januar 2023 - 19:30
Spoiler Alert!

This article will contain spoilers both on how I solved 2022 Day 12's challenge "Hill Climbing Algorithm" using SQL, as well as general ideas on how to approach the problem. I recommend trying to solve it yourself first, using your favorite language. This article is delayed from the actual puzzle's release. Also note that my solutions are seldom going to be the "best" solutions - they were solved as quickly as possible, and these articles will show my first solutions, with some minor reformatting and cleaning up.

Akhil Reddy Banappagari: Avoiding Constraint violations while migrating Oracle to PostgreSQL – DATE data type

13. Januar 2023 - 8:46

Choosing a correct datatype mapping while migrating from Oracle to PostgreSQL is very important to avoid migration failures. Especially when we have date and time involved, it is very important to understand the behavior in both Oracle and PostgreSQL. We have documented about DATE datatype in Oracle vs SQL Server vs PostgreSQL in our previous article.

Bruce Momjian: Beyond Joins and Indexes

12. Januar 2023 - 21:00

My presentation Explaining the Postgres Query Optimizer covers the details of query optimization, optimizer statistics, joins, and indexes. I have delivered it 20 times since 2011.

Tobias Petry: RETURNING Modified Rows

12. Januar 2023 - 16:43
Many maintenance operations are based on finding particular rows, processing them (e.g. sending an email) and finally applying changes to the database. Typically this is implemented as one query to find all rows and many subsequent queries to modify them. This workflow can sometimes be simplified by using the RETURNING feature to manipulate data and get the resulting rows in one step.

Jacob Coblentz: Fun with Letters in PostGIS 3.3!

12. Januar 2023 - 16:00

Working at Crunchy Data on the spatial team, I'm always looking for new features and fun things to show on live demos. I recently started playing around with ST_Letters and wanted to jot down some quick code samples for playing around with this feature, introduced in PostGIS 3.3. These examples are super easy to use, they don't need any data!

The screenshots shown below came from pgAdmin's geometry viewer and will also work with other query GUI tools like QGIS or DBeaver.

Henrietta Dombrovskaya: PGSQL Phriday #004 Recap

12. Januar 2023 - 4:26

Thank you to everybody who contributed to the January PGSQL Phriday topic! I suggested “Postgres and Software Development,” while being very well aware that this topic is not popular in the PostgreSQL community. To be completely honest, I thought that it was possible that only Ryan Booz would contribute! 

That being said – a big thank you to everyone who participated! Please find a summary of contributions below, and please let me know if I missed your post!

Luca Ferrari: From Numbers to Words using Perl (and Lingua::)!

12. Januar 2023 - 1:00

How to convert a digit into a sentence with the power of Perl.

Hubert 'depesz' Lubaczewski: Waiting for PostgreSQL 16 – Invent random_normal() to provide normally-distributed random numbers.

11. Januar 2023 - 17:19
On 9th of January 2023, Tom Lane committed patch: Invent random_normal() to provide normally-distributed random numbers.   There is already a version of this in contrib/tablefunc, but it seems sufficiently widely useful to justify having it in core.   Paul Ramsey   Discussion: https://postgr.es/m/CACowWR0DqHAvOKUCNxTrASFkWsDLqKMd6WiXvVvaWg4pV1BMnQ@mail.gmail.com Description tells is all, but let's see how that works.

Chris Travers: A PostgreSQL Developer's Perspective: Six Interesting Patches From November's Commitfest

11. Januar 2023 - 15:30
🐘 The PostgreSQL community organizes patch reviews into “commitfests” which last for a month at a time, every other month. In this series, our very own PostgreSQL developer advocate and expert, Chris Travers, will discuss a few patches that may be of interest to PostgreSQL users after each commitfest.

Ibrar Ahmed: Upgrading PostgreSQL Extensions

11. Januar 2023 - 14:12

PostgreSQL is a powerful and flexible open-source database management system that allows users to install and use extensions to add additional functionality to their databases. In this tutorial, we will cover the process of installing and upgrading PostgreSQL extensions using the example of the pg_stat_monitor extension.

Peter Eisentraut: PostgreSQL largest commits

11. Januar 2023 - 6:00

I like to poke around the PostgreSQL Git repository to find interesting statistics and trends that affect PostgreSQL development. The question I had lately is, what are the largest patches that have been committed? That might indicate some kind of upper bound on the size of features you can get committed in one piece. If something is larger, you might need to split it up.

Seiten