News for hackers. Stuff that matters.
Re:Amazon RDS for PostgreSQL by chc on Thursday November 14, 2013 @01:38PM (#6734385)
I don't know if I would really say Postgres won. Among people who care about databases, Postgres has always been the more popular of the big two free databases. Postgres was actually dedicated to being a good relational database, whereas MySQL in its earlier days was willing to cut corners to the point where it wasn't even ACID in most common configurations. But MySQL was faster (because, again, cutting corners) and its tooling was a little more friendly (especially for the PHP crowd).

Over the years, Postgres has made up those shortcomings, so it retains its respect among database wonks and now other people can easily use it too, so you see a lot of people adopting it over the past few years.

But in overall usage numbers, I would be surprised if it were anywhere near MySQL. It takes a long time to overcome that kind of inertia.

Re:Amazon RDS for PostgreSQL by nerfhammer on Thursday November 14, 2013 @03:48PM (#6735443)
don't forget postgres didn't officially support replication until late 2010, which was a total non-starter for many/most production uses
Re:Amazon RDS for PostgreSQL by gtaylor on Thursday November 14, 2013 @04:07PM (#6735587)
It is a bit surprising how long it took for that to land. On the plus side, replication is very easy and low latency with 9.3.

There's still a bit to do on the auto-failover front, but that may end up being more of a third party undertaking. Postgres has failover facilities included, they just have to be driven by something external right now.

Re:Amazon RDS for PostgreSQL by jeltz on Friday November 15, 2013 @11:22AM (#6740229)
We ran PostgreSQL in production before 2010, and there were several solutions back then for replication but all of them had their own set of problems. We went with shipping the write-ahead log with rsync to the standby server, but this was trickier to set up and had much worse latency than the current built-in solution (which is basically streaming the write-ahead log over a tcp connection).
Re:Amazon RDS for PostgreSQL by chc on Thursday November 14, 2013 @04:00PM (#6735530)
Yeah, I think that was the big hurdle that finally made Postgres acceptable to people and started the wave of switchers.
Re:Amazon RDS for PostgreSQL by Sssnake on Thursday November 14, 2013 @07:27PM (#6736869)
That is absolutely ridiculous. Less than 1% of 1% of mysql users are using replication. Suggesting it is a "total non-starter" for most production uses is crazy.
Re:Amazon RDS for PostgreSQL by ceejayoz on Thursday November 14, 2013 @09:01PM (#6737230)
> Less than 1% of 1% of mysql users are using replication.

If you count all the crappy shared hosts, XAMPP local installs, and hobbyists setting up their own little VPSes, perhaps.

Using a single, unreplicated database instance in production for anything serious is bizarre. Failed hardware is hardly unheard of.

Re:Amazon RDS for PostgreSQL by Sssnake on Thursday November 14, 2013 @11:34PM (#6737769)
>Using a single, unreplicated database instance in production for anything serious is bizarre

It is incredibly common. Go check out a thousand businesses running mysql, you'll be able to count the ones using replication on your fingers.

>Failed hardware is hardly unheard of.

You don't need to use mysql replication to deal with that. Even the crappiest low end SAN storage devices do it vastly better than mysql does, without any of the bugs and problems mysql replication has.

Re:Amazon RDS for PostgreSQL by jeltz on Friday November 15, 2013 @11:14AM (#6740191)
I have heard stories of entire SANs failing so I would not advice trusting your SAN too much. For example there was a huge outage at a Swedish host caused by a failed SAN, all data was lost so people had to use daily backups to restore.

Replication can be done off-site so you at most lose a couple of seconds worth of data. I do not know anything about MySQL's replciation but my trust in PostgreSQL's is very high.

Re:Amazon RDS for PostgreSQL by Sssnake on Saturday November 16, 2013 @12:19PM (#6745498)
>I have heard stories of entire SANs failing

Which is why it is being replicated, like I said.

Re:Amazon RDS for PostgreSQL by oceanplexian on Thursday November 14, 2013 @08:10PM (#6737069)
You're kidding right?

I'd wager that a huge number of MySQL users are using replication. Running a single database in a production environment is totally unacceptable and a major business continuity problem.

Re:Amazon RDS for PostgreSQL by whatusername on Thursday November 14, 2013 @11:48PM (#6737798)
How many wordpress installs use replication?
Re:Amazon RDS for PostgreSQL by Sssnake on Thursday November 14, 2013 @11:36PM (#6737776)
>Running a single database in a production environment is totally unacceptable and a major business continuity problem.

You don't need to use mysql's broken replication to get HA. Hell, I've seen more people (wisely) using DRBD for that than using mysql's replication. But even entry level storage devices do replication.