Posts with the tag postgresql:

I fought PostgreSQL (and eventually won)

We had severeral hours of downtime yesterday because of a “fun” PostgreSQL problem (see Beware of your next glibc upgrade for details). Short version: because there are lots of ways to encode text, and they can change subtly when you upgrade your OS, some of your unique database keys may end up being not so unique. This resulted in quite a few Mastodon tables having duplicate rows, despite having unique indexes.

Database upgrades are (finally) done

Today I set out to migrate Free Radical’s database from a small, disk-limited server running on the same host as the FR application server to a vastly beefier system. This should make larger database operations a lot faster, and backup processes won’t bog down the system anymore. It also frees up a lot of RAM, CPU, and disk toward running the Mastodon services. I apologize for the longer than expected downtime.