What PostgreSQL is
PostgreSQL (pronounced "post-gres-cue-ell", often just Postgres) is an advanced open source object-relational database system. Its roots go back to 1986 at the University of California, Berkeley, and it is still developed by an independent community. It is known for reliability, strict adherence to standards and a range of features that puts it on a par with expensive commercial databases such as Oracle or Microsoft SQL Server.
Watch out for the common typo "PostgeSQL". The correct name is PostgreSQL.
What makes PostgreSQL different
- Relational and non-relational data: alongside classic tables and SQL, it can store and search JSON documents quickly.
- Reliability: it protects data integrity even during an outage or when many users work at once (ACID).
- Advanced data types: arrays, date ranges, IP addresses, geographic data.
- Extensions, such as PostGIS for maps and location or pgvector for similarity search in AI applications.
- Full-text search directly in the database.
PostgreSQL vs MySQL
An ordinary website or WordPress uses MySQL or MariaDB, and WordPress does not officially support PostgreSQL. PostgreSQL is chosen for more demanding applications: complex queries and reports, large volumes of data, financial systems, mapping applications or systems where every transaction has to be exactly right. MySQL tends to be a little easier to administer, while PostgreSQL can do more and is more resilient.
Where PostgreSQL is used
- web applications and SaaS services, for example built on Laravel or Django,
- analytics and reporting systems,
- geographic information systems and maps,
- AI applications that search by the meaning of text.
Companies such as Apple, Instagram, Spotify and Reddit use it.
When to choose PostgreSQL
If you are planning your own web application with lots of linked data, reports or search, PostgreSQL is often the best choice. It is free (open source) and scales well as the project grows. For databases in general, see the entry database.
Applications built on solid foundations
When developing web applications I choose the database according to what the project needs and design it to cope with future growth. I can help with applications that search by meaning as part of AI integrations.