3 ms·
Sadly, the LAMP stack has reached canonical status. To alter any portion of it is to depart from the standard and embark on a never-ending uphill hike. For exa
by mechanical_fish 18y ago
Sadly, the LAMP stack has reached canonical status. To alter any portion of it is to depart from the standard and embark on a never-ending uphill hike.
For example, nearly every Drupal module is developed against MySQL and then ported to PostgreSQL as an afterthought. Half of them have nothing but a big //FIXME where the PostgreSQL CREATE TABLE statements are supposed to be. And Drupal has actually made a big, occasionally controversial effort to remain DB-agnostic, to create and use an abstract database API, and to explicitly require every bit of core code to work and be tested under PostgreSQL. I'd guess that a lot of other PHP projects are far more tightly bound to MySQL.
Having said that, this article gives me fond thoughts of ripping MySQL off my servers and running aptitude install postgres.
- chaostheory 18y agoI could be wrong, but I feel the same could be said for rails (until very recently). It seemed to me that rail's primary target (and maybe ruby at large) is mysql and postgres support was just an afterthought (until the latest 2.2.2 release for rails) the only places that I don't feel treat mysql as the main premiere db is python and java in mysql's defense, they have come a long way. they finally added stuff like stored procedures and triggers
- Locke 18y agoIn what way do you feel like rails support for postgresql is an afterthought? I've noticed some books / documentation assume mysql, but that's usually limited to the "and now setup your database" section. I've been using rails + postgresql for a long time now (almost 2 years in production) and I can't think of a single problem that was due to not using mysql. Of course, I don't use every plugin or feature, so there may be something out there...
- chaostheory 18y agothe last one I remember are postgres specific bugs involving postgres datatypes. my memory could be fuzzy but I feel that this would generally occur after a fresh rails release (2.2.2 is the exception) well I am in the midst of migrating my rails app to postgres now - hopefully what I feel and reality don't match