Wochennotiz 2025.09

Posted on Mo 03 März 2025 in Blog

Am Samstag war Firmenskitag, daher kommt die Wochennotiz mit einem Tag Verspätung. Was konnte man auf dem Firmenskitag lernen? Reservierungen in Skihütten skalieren nicht so gut, wie es digitale Produkte tun. Mehr oder minder die gleichen Plätze an mehrere Gruppen zu vergeben, führt nicht zu höherer Zufriedenheit.

Zudem habe ich gestern in einem Beitrag gefragt, wo der Weg Europas hinführt. Heute gibt es bei Golem einen Artikel mit dem Titel Warum Unternehmen aus US-Diensten aussteigen sollten. Man sieht, die geopolitischen Ereignisse führen auch immer wieder zu Fragen im digitalen Bereich.

Inhalt:

Postgres und die Datenwelt

Vergleich zwischen Oracle und Postgres

In einem sehr detaillierten Artikel beschreibt Laurenz Albe, was man beachten muss, wenn man Applikationen von Oracle Richtung Postgres migriert.

Sein Fokus liegt dabei am Vergleich des transaction system. Da der SQL Standard gewisse Dinge definiert, gibt es naturgemäß viele Gemeinsamkeiten, aber es gibt auch Unterschiede:

This is perhaps the area where Oracle and PostgreSQL differ most. Oracle's support for transaction isolation is rather limited.

Comparison of the transaction systems of Oracle and PostgreSQL

Virtual generated columns

Depesz betrachtet in seiner Waiting for PostgreSQL 18-Serie einen neuen Patch, der sich virtual generated columns befasst.

And now, we got generated, but not stored – virtual columns.

The idea is very simple – if you have something that can be calculated, you can have it named, available in table, without having to type the full expression to generate the value. And without storing the data.

Waiting for PostgreSQL 18 – Virtual generated columns

VectorChord-BM25

Jinjing Zhou beschreibt eine neue Postgres-Erweiterung, die BM25-Suchen in Postgres sehr schnell machen soll. Der Unterschied zur Lösung von ParadeDB ist laut Beitrag:

Another solution is ParadeDB, which pushes full-text search queries down to Tantivy for results. It supports BM25 scoring and complex query patterns like negative terms, aiming to be a complete replacement for ElasticSearch. However, it uses its own unique syntax for filtering and querying and delegates filtering operations to Tantivy instead of relying on Postgres directly. Its implementation requires several hooks into Postgres' query planning and storage, potentially leading to compatibility issues.

In contrast, VectorChord-BM25 takes a different approach. It focuses exclusively on bringing BM25 ranking to PostgreSQL in a lightweight and native way. We implemented the BM25 ranking algorithm and the Block WeakAnd technique from scratch, building it as a custom operator and index (similar to pgvector) to accelerate queries.

VectorChord-BM25: Revolutionize PostgreSQL Search with BM25 Ranking — 3x Faster Than ElasticSearch

pgRouting

Paul Copplestone von Supabase hat sich überlegt, was man mit pgRouting alles machen kann. pgRouting ist eine Erweiterung, die entwickelt worden ist, um Postgres/Postgis um ein räumliches Routing zu erweitern. Er zeigt einige Anwendungsfälle abseits des klassischen räumlichen Routings und verwendet pgRouting als Graph-Datenbank.

Ich arbeite ja gerade in einem Projekt daran GTFS-Daten mittels pgRouting abzufragen. Wenn ich Zeit habe, werde ich darüber einmal einen Blog-Beitrag verfassen.

Postgres as a Graph Database: (Ab)using pgRouting

Benchmarks

Benchmarks sind immer so eine Sache. Oftmals hat man Expertise mit System A und vergleicht es dann mit System B. So verliert dann oft das System, mit dem man nicht vertraut ist, bei den Benchmarks. Das zur Einordnung von Benchmarks.

EDB hat laut diesem Beitrag eine externe Consulting-Firma beauftragt:

EDB commissioned McKnight Consulting Group to run a pair of benchmark tests to measure the relative performance of EDB Postgres AI against relational and non-relational databases. McKnight set up a TPC-C-like test to compare the transaction processing prowess of EDB Postgres AI against Oracle and Microsoft SQL Server, while it set up a JSON processing test to compare the multi-modal database against MongoDB and MySQL, which is controlled by Oracle and can also process JSON documents.

Laut diesem Benchmark schneidet Postgres im Vergleich zu den anderen Datenbanken gut ab.

EDB Says It Tops Oracle, Other Databases in Benchmarks

Aus EdgeDB wird Gel

Elvis Pranskevichus beschreibt in einem Beitrag, warum sie auf Postgres setzen und es zu einem Rebranding gekommen ist.

PostgreSQL is the cleanest and most documented C project of this scale, and the sheer quality of the codebase is what gives Postgres all of the powers mentioned above while also keeping it extremely stable and secure.

Was ist Gel:

Where Aurora and Neon replace PostgreSQL's storage layer, Gel replaces the frontend layer. To oversimplify, Gel to Postgres is what TypeScript is to JavaScript, and our business is that we write intelligent compilers for data schemas and queries and run the outputs in Postgres efficiently.

EdgeDB is now Gel and Postgres is the Future

Postgres Release Monitor

Security und Privacy

Copilot macht private Repos auffindbar...

...aber nicht in einem guten Sinn.

Dan Goodin berichtet darüber:

These repositories, belonging to more than 16,000 organizations, were originally posted to GitHub as public, but were later set to private, often after the developers responsible realized they contained authentication credentials allowing unauthorized access or other types of confidential data. Even months later, however, the private pages remain available in their entirety through Copilot.

Copilot exposes private GitHub pages, some removed by Microsoft

China hat Sicherheitsbedenken bei Reisen in die USA

Die Welt entwickelt sich wirklich nicht in eine gute Richtung.

The authorities are concerned that Chinese AI experts traveling abroad could divulge confidential information about the nation’s progress. They also worry that executives could be detained and used as a bargaining chip in U.S.-China negotiations, in an echo of a fight over a Huawei executive held in Canada at Washington’s request during the first Trump administration.

China Tells Its AI Leaders to Avoid U.S. Travel Over Security Concerns

Das Netzwerk der Armee der Philippinen wird attackiert

Interessanterweise wurde das Netzwerk von einer "normalen" Hacker-Gruppe übernommen:

The leaked information reportedly includes sensitive personal and military details, such as names, ranks, addresses, medical records, financial data and criminal histories, researchers said. Deep Web Konek also added that the authenticity and exact volume of stolen data have not been verified.

In a statement, the hackers said that the army breach exposes “the complete failure of Philippine military cybersecurity,” warning that if local hackers could achieve such an infiltration, foreign state-sponsored threat actors from China, Russia, or North Korea could potentially do far worse.

Philippine army confirms attack on its networks

Data breach ticker

AI

Wieder einmal große Ankündigungen

Aus Oberösterreich von Sepp Hochreiter gibt es scheinbar wieder einmal große Ankündigungen:

Eine neue Form der Künstlichen Intelligenz (KI) soll sich selbst flexibel an verschiedene Situationen anpassen können, logisch denken und über ein tieferes Verständnis der Welt verfügen als beispielsweise ChatGPT und Co. Daran wird im Exzellenzcluster "Bilateral Artificial Intelligence", für den heute Abend in Linz der Startschuss fällt, gearbeitet, erklärte Projektleiter und KI-Pionier Sepp Hochreiter von der Universität Linz (JKU) im Gespräch mit der APA.

KI-Modell aus Österreich soll ChatGPT und Co deutlich übertrumpfen

Diverses

Skype wird zu Grabe getragen

Alles hat seine Zeit. So auch Skype.

Skype's days are numbered, as the Skype apps are now warning users that the service will be going away on May 5, and that existing users should migrate to Teams.

Microsoft is killing Skype after 14 years of neglect

Zahlt es sich aus zu bloggen?

Dieser Frage Giles Thomas auf den Grund.

Your GitHub profile shows your contributions to open source and lets people know how well you can code. But your blog shows your contributions to knowledge, and shows how well you can think. That's valuable!

It's still worth blogging in the age of AI