News for hackers. Stuff that matters.
Re:A love affair with PostgreSQL by zanny on Wednesday January 02, 2013 @12:29AM (#4995450)
I'm glad to see Rails supporting Postres more in a world where the future of MySQL is in flux. Postres is solid.
Re:A love affair with PostgreSQL by kawsper on Wednesday January 02, 2013 @01:10AM (#4995522)
Its seems like newer frameworks and languages moves to Postgres.

But where MySQL have always been strong has been in the PHP community. And it still seems to me that there isn't much of a change here. Wordpress is still only thinking about getting Postgres support: https://codex.wordpress.org/Using_Alternative_Databases

Re:A love affair with PostgreSQL by taligent on Wednesday January 02, 2013 @01:46AM (#4995575)
IMHO it is the NoSQL databases like Redis and MongoDB that seem to be the most popular amongst newer platforms e.g. NodeJS.
Re:A love affair with PostgreSQL by Firehed on Wednesday January 02, 2013 @01:55AM (#4995600)
Yes, that does seem to be the trend. However, that's all it really is: a trend. Schemaless databases are good for certain tasks, but are also really terrible for other things. It seems that people interested in using new tech like to use as much new tech as possible for the sake of it, rather than because it's actually the right tool for the job.

I know multiple people who have lost literally months of work because they tried to use Mongo in a place where a relational database made a lot more sense (incidentally, they're also using Node), and ultimately had to rebuild and migrate their entire data model layer to Postgres.

That's not a knock on Node or Mongo, just an observation. They're the right tools for some things, and the wrong tools for others. If you're choosing your tech stack based on current trends rather than spending a few minutes thinking what problems you're trying to solve, God help you.

Re:A love affair with PostgreSQL by ishbits on Wednesday January 02, 2013 @10:14AM (#4997052)
That is a trend. I'm already seeing some startups pulling back into MySQL from Mongo admitting they followed the hype rather than using the best tool for the job.

While it could be the perfect fit for some tasks, I know there are a ton of Mongo deployments that would be better served by Postgres or MySQL.

Re:A love affair with PostgreSQL by taligent on Wednesday January 02, 2013 @01:42AM (#4995564)
MySQL isn't in flux. It is getting better every single day because of the contributions from Percona, MariaDB, Facebook, Twitter and even Oracle. It's just that people have a nervousness because of the Oracle connection.

And PostgreSQL maybe solid but developers want a solution that horizontally scales. Until this is addressed it is going to find itself increasingly marginalised.

Re:A love affair with PostgreSQL by codewright on Wednesday January 02, 2013 @01:56AM (#4995609)
PostgreSQL horizontally scales in the same fashion as MySQL. What are you talking about?

http://instagram-engineering.tumblr.com/post/10853187575/sha...

http://postgres-xc.sourceforge.net/

http://www.pgpool.net/mediawiki/index.php/Main_Page (you can use this to transparently shard)

Re:A love affair with PostgreSQL by taligent on Wednesday January 02, 2013 @03:57AM (#4995870)
No it's not like MySQL which has MySQL Cluster a supported, well documented, OOTB, easy to use solution with lots of enterprise customers. Similarly Percona has a very, very impressive product with great support.

Instagram had to roll their own and Postgres XC, PGPool both have always seemed pretty sketchy. No official support, no notable customers, shocking complexity and everything just seems all over the place with documentation from say 2009 referencing PostgreSQL 8 e.g. PgPool beginner guide. They may be great solutions but do they really look like something that inspires confidence ?

These guys seem to have the right idea: http://www.cloudpostgres.com

It would just be nice to have something as simple and polished built into PostgreSQL.

Re:A love affair with PostgreSQL by frankwiles on Wednesday January 02, 2013 @08:31AM (#4996558)
Pretty sure Skype scales PG horizontally pretty darn well. PgPool is probably the least used, least recommended replication method out there. Streaming replication in 9, WAL shipping, and things like Londiste (Skype) are what real large production users use.
Re:A love affair with PostgreSQL by viraptor on Wednesday January 02, 2013 @09:43AM (#4996882)
Have you ever used mysql cluster in a bigger deployment? I wonder if it got usable over the last ~4 years when I tried it. At the time it was buggy, continuously corrupting data and had no real support apart from a very niche IRC channel. I've still got some very basic bugs open against it without any resolution at all.
Re:A love affair with PostgreSQL by Shorel on Thursday January 03, 2013 @09:08AM (#5002377)
You are right. MySQL will be used for years and years. And it is getting better every day.

But MySQL is still behind Postgres in features and reliability. I have being bitten by MySQL shortcomings for a year. Last month was the limit of max 64 indexes per table. Before that it was the dozens of stupid limitations in the procedures and functions. Before that it was some stupid bug that only happens in master-master replication. I can go on for days ranting about MySQL.

Think SVN vs Git. SVN can get better everyday and it does get better, but incremental upgrades will never convert SVN to Git. You scale MySQL by putting Memcached in front of it. But this makes MySQL a fast read-only DB. You can't scale MySQL in a OLTP setup.

Postgres had some performance and scalability issues about 3 or 4 years ago. But the foundations were solid. Now Postgres has fixed those issues and the foundations are better than ever. You can scale Postgres in a OLTP setup and it will eat MySQL lunch every time.