Live data from Hacker News

When did Postgres become cool?

crunchydata.com

11–20 of 182 posts

Re: When did Postgres become cool?

#11

When I started using Django 10 years ago during the Django/Rails era, Postgres was by far the most recommended DB to use. Not sure if that was also true in Rails community.

I'm not sure it was as common as with Django, but it was a very common one, especially as Heroku only provided Postgres support.

Re: When did Postgres become cool?

#12

Since the second someone found a reasonable enterprise alternative to the proctology practice that is Oracle.

Oracle fucks you in pricing, PostgreSQL in the effort required to pull off a minor version upgrade.

What's the situation where minor version upgrades are giving you trouble?

Asking because it's not supposed to be troublesome. In theory (!), minor version upgrades don't require any change to the on-disk data, so you should be able to just upgrade your PG binaries then restart the database.

Re: When did Postgres become cool?

#13
I run Postgres since about 2016. I used to run MySQL behind the same frontend app.

I barely know anything about Postgres beyond installation for our use case, backup and recover. I used to know loads about obscure MySQL optimization techniques, fixing broken tables, fiddling with scary parameters and recovering from hair raising situations.

I like my current state of ignorance.

Re: When did Postgres become cool?

#14

When I started using Django 10 years ago during the Django/Rails era, Postgres was by far the most recommended DB to use. Not sure if that was also true in Rails community.

Second this, I'd say started being common for Web apps in 2008 and "industry standard" by 2012 in the SF Bay Area.

Re: When did Postgres become cool?

#15

When I started using Django 10 years ago during the Django/Rails era, Postgres was by far the most recommended DB to use. Not sure if that was also true in Rails community.

I definitely recall being on the talk committee one year for DjangoCon, and there was some rough discussion. (Context: The conference was generally a two track conference but keynotes and a few other sessions were single track). One of the single track talks was about Postgres. The discussion was roughly "If we have a Postgres talk we should have another talk like Mongo or MySQL" and the response was roughly "Everyone in Django is using Postgres and if you're not you should be at the talk to learn why you should".

Way more Rails apps used MySQL or other databases, it was largely Heroku winning Rails that led to the strong adoption amongst that community.

Re: When did Postgres become cool?

#16

Earlier quoted context omitted.

Oracle fucks you in pricing, PostgreSQL in the effort required to pull off a minor version upgrade.

What's the situation where minor version upgrades are giving you trouble? Asking because it's not supposed to be troublesome. In theory (!), minor version upgrades don't require any change to the on-disk data, so you should be able to just upgrade your PG binaries then restart the database.

Ah, looks like psql seems to have switched to actually using minor and major versions properly during the last two years - I remember the dance from the 9.x versions and postgres-upgrade [1].

In any case it's way more straightforward with mysql.

[1] https://hub.docker.com/r/tianon/postgres-upgrade

Re: When did Postgres become cool?

#17

Earlier quoted context omitted.

What's the situation where minor version upgrades are giving you trouble? Asking because it's not supposed to be troublesome. In theory (!), minor version upgrades don't require any change to the on-disk data, so you should be able to just upgrade your PG binaries then restart the database.

Ah, looks like psql seems to have switched to actually using minor and major versions properly during the last two years - I remember the dance from the 9.x versions and postgres-upgrade [1]. In any case it's way more straightforward with mysql. [1] https://hub.docker.com/r/tianon/postgres-upgrade

For Docker usage you'll probably be better off with the "automatic upgrade" images instead:

https://hub.docker.com/r/pgautoupgrade/pgautoupgrade

---

That being said, those pgautoupgrade images are alpine Linux based.

People coming from non-alpine Linux images of PostgreSQL will probably need that older not-automatic approach you linked to.

Re: When did Postgres become cool?

#19

When I started using Django 10 years ago during the Django/Rails era, Postgres was by far the most recommended DB to use. Not sure if that was also true in Rails community.

~2011 I remember people religiously recommending postgres over mysql. ~2009 it seemed the go to db was still mysql.
Post reply on HN