Вход на сайт

Просмотр новости

Найдите то, что Вас интересует

YOURLS now speaks PostgreSQL

Дата публикации: 17-05-2026 18:17:54

YOURLS is my cherished project: I'm proud of it, and I'm also clear-eyed about its limitations. For instance, PostgreSQL support has been one of the frequently requested features for at least six years. There have been a few YOURLS PostgreSQL forks that tried to address this, but keeping a fork in sync is quite a task and they didn't keep…

Основное содержимое страницы с новостью.

YOURLS is my cherished project: I'm proud of it, and I'm also clear-eyed about its limitations. For instance, PostgreSQL support has been one of the frequently requested features for at least six years. There have been a few YOURLS PostgreSQL forks that tried to address this, but keeping a fork in sync is quite a task and they didn't keep up with YOURLS (albeit rather modest) development pace. Today I'm happy to say: the wait is over.

PostgreSQL support via plugin

PostgreSQL support comes as a drop-in plugin rather than a core feature: we like to keep YOURLS core light and let people add features only if they need it. This plugin intercepts database queries at runtime and translates MySQL to PostgreSQL syntax on the fly – backtick quoting, AUTO_INCREMENT ? SERIAL, RAND() ? RANDOM(), and so on. Obviously this is all transparent to the user and the application.

What will work, what won't

Everything core does, ie shortening URLs, tracking clicks, letting you add or edit short URLs, will work. The vast majority of existing YOURLS plugins will work. The drop-in plugin sits at the database layer and catches everything that flows through it.

To make sure everything core works perfectly, I've made sure YOURLS passes all its unit tests with the PostgreSQL plugin activated, under 3 latest versions of PostgreSQL and latest PHP. This will be easy to check with all future YOURLS releases.

The edge cases would be plugins that execute raw MySQL-flavored SQL directly, bypassing YOURLS' own database methods, won't be translated. I haven't encountered such plugin in the wild but if you have made custom query code, that would be something to fix.

Requirements

You'll need YOURLS 1.10.4, which is coming soon-ish or the current master branch (which is always stable and passing all unit tests). Drop in the plugin, configure your PostgreSQL DSN, and you're good to go. There is even a migration script to transfer everything from MySQL (or MariaDB) to PostgreSQL.

If you've been waiting for this – and I know some of you have been waiting for a long time – it's finally here :)

Схожие новости

#Наименование новостиТональностьИнформативностьДата публикации
1Allowing weird characters in YOURLS short URLs08.2823-06-2026
2Running OpenBao on Kubernetes with a CloudNativePG PostgreSQL backend010.7516-09-2026
3Swiss PGDay 2026: Schedule Published + New BoF Format 07.4421-05-2026
4Каждые 5 минут транзакции в PostgreSQL замирают на 3 - ...-111.8628-09-2026
5pg_tre 1.1.1 released -- an approximate-REGEX index AM for PostgreSQL 18+ 013.8522-05-2026
6PGConf.PL 2026 Call for Papers Open 08.4204-06-2026
7PGDay Israel 2026 - Call for Papers is Now Open 08.8221-05-2026
8MySQL Update from 8.0.40 to 8.4.8016.1118-02-2026
9Zwei Probleme in ty (Fedora)01001-10-2026

Классификация: . Схожих патентов: 0. Схожих новостей: 9. Тональность: 0. Информативность: 9.14. Источник: planetozh.com.