Title: PostgreSQL
Last modified: August 18, 2016

---

# PostgreSQL

 *  [adambracegirdle](https://wordpress.org/support/users/adambracegirdle/)
 * (@adambracegirdle)
 * [22 years, 9 months ago](https://wordpress.org/support/topic/postgresql/)
 * Is there anyway to use wordpress with PostgreSQL rather than MySQL?
    Adam

Viewing 15 replies - 61 through 75 (of 84 total)

[←](https://wordpress.org/support/topic/postgresql/page/4/?output_format=md) [1](https://wordpress.org/support/topic/postgresql/?output_format=md)
[2](https://wordpress.org/support/topic/postgresql/page/2/?output_format=md) [3](https://wordpress.org/support/topic/postgresql/page/3/?output_format=md)
[4](https://wordpress.org/support/topic/postgresql/page/4/?output_format=md) 5 [6](https://wordpress.org/support/topic/postgresql/page/6/?output_format=md)
[→](https://wordpress.org/support/topic/postgresql/page/6/?output_format=md)

 *  Anonymous
 * [21 years, 8 months ago](https://wordpress.org/support/topic/postgresql/page/5/#post-24312)
 * I would like to see ADODB support.. I just ran into a wall with the IT dept at
   my firm.. I (web design dept)build in php/mysql.. the IT dept are all asp/mssql
   dudes.. and the refuse to run mysql on the production(live) server.. So i need
   a way to intergrate wordpress and mssql.. can anyone point me in the right direction?
   
   Joshua, Thanks
 *  [fmayhar](https://wordpress.org/support/users/fmayhar/)
 * (@fmayhar)
 * [21 years, 6 months ago](https://wordpress.org/support/topic/postgresql/page/5/#post-24321)
 * Well, put me down as yet another who has been avoiding WordPress because of the
   lack of PostgreSQL support. As someone else said, I’ve looked at it several times
   and really want to use it, but I already run several PostgreSQL databases and
   really want to avoid dealing with MySQL.
    In fact, I just examined and tossed
   PostNuke for just that reason: It only supports MySQL (despite having Adodb embedded
   in it, it hardcodes MySQL support; when I saw that, I uninstalled it). I really
   like the look of WordPress and very much want something to replace the heavily
   license-encumbered Moveable Type that I’m currently running. Too bad it doesn’t
   support more than MySQL. I would happily toss in $25, myself, if PostgreSQL support
   were to suddenly appear…
 *  [tvongaza](https://wordpress.org/support/users/tvongaza/)
 * (@tvongaza)
 * [21 years, 6 months ago](https://wordpress.org/support/topic/postgresql/page/5/#post-24322)
 * I too am looking for PostreSQL support for WordPress.
 *  [error404](https://wordpress.org/support/users/error404/)
 * (@error404)
 * [21 years, 6 months ago](https://wordpress.org/support/topic/postgresql/page/5/#post-24323)
 * You guys clearly need to pay more attention 😉
    [http://wordpress-pg.sourceforge.net/](http://wordpress-pg.sourceforge.net/)
   I ported 1.2 by hand myself, and with William Carrel’s help we’ve got 1.2.1 running
   and have done some work on current CVS (though it’s far from working, we’re both
   busy). My port’s been around for a while, and linked on this board too ;). Any
   donations are very much appreciated. I’m a poor student that can’t afford to 
   renew his domains.
 *  [fmayhar](https://wordpress.org/support/users/fmayhar/)
 * (@fmayhar)
 * [21 years, 6 months ago](https://wordpress.org/support/topic/postgresql/page/5/#post-24324)
 * Well, yeah, I took a look at your port. That’s what I don’t like about it: It’s
   a **port**. It means that as WordPress went forward I would be dependent on you(
   or, I suppose, myself, if I wanted to take the time, which I don’t) to re-port
   it. The idea is for WordPress to support PostgreSQL (and other DBs) directly.
   At the moment, though, I’m sticking with my current plan, which is to continue
   to use MT 2.661 until it becomes too painful to continue.
    I do wish WordPress
   directly supported other DBs than MySQL. Unfortunately, it’s not the only one
   with this problem.
 *  [error404](https://wordpress.org/support/users/error404/)
 * (@error404)
 * [21 years, 6 months ago](https://wordpress.org/support/topic/postgresql/page/5/#post-24325)
 * Definitely agree with you on that one. Fact is, the WordPress code doesn’t do
   any sort of DB abstraction whatsoever; and doesn’t even attempt to be database
   independent. I had begun designing a new database access class for the whole 
   of WordPress, but I simply haven’t had time to go any further than a preliminary
   design. The developers themselves don’t seem to care about the issue and after
   discussing it at length, I doubt they’d be behind any sort of change in that 
   direction. My plan was to do all of the (huge amount) of work myself, along with
   any supporters I could gather from the IRC channel and mailing lists, and get
   something working to present to them.
    A good example of why DB stuff should 
   be abstracted and as independent as possible from the start, I’d say. But hey,
   it’s PHP, we can’t expect intelligent design now can we :P. (I find the tagline‘
   code is poetry’ at the bottom of this page slightly ironic, the WP code is not
   elegant nor well designed) It’s too bad the port’s not useful to you, but it’s
   the best it’s going to get for the time being. I may try to get some movement
   going on my original idea over the winter break, but I expect to be exceedingly
   busy.
 *  Anonymous
 * [21 years, 6 months ago](https://wordpress.org/support/topic/postgresql/page/5/#post-24326)
 * fmayhar – Well I guess if someone else’s (error404’s) hard work that you can 
   obtain for free isn’t good enough for you then you’ll just have to do some work
   yourself – oh, you don’t want to do that either well I guess your options for
   free development which is suitable to your requirements is going to be a long
   time coming.
    If you don’t appreciate error404’s work you don’t have to use it.
   Feel free to continue as you’re doing now. I for one can’t use error404’s work
   either but I am very greatful that he’s done as much as he has. If I had the 
   money, I’d pay him for what he’s done so far despite the fact that it’s no use
   to me because he’s done it for nothing and he’s giving away his work I imagine
   he has bills and expenses too.
 *  [Ryan Boren](https://wordpress.org/support/users/ryan/)
 * (@ryan)
 * [21 years, 6 months ago](https://wordpress.org/support/topic/postgresql/page/5/#post-24327)
 * Work has been done in 1.3 to clean up the messy installation. A little work to
   consolidate some of the DB manipulation and remove some MySQLisms has also been
   done. For the most part, however, DB abstraction has been put off until after
   1.3. error404’s work will be very useful once we attack this in earnest. For 
   those asking for PEAR::DB and ADODB, realize that these are 50% and 100+% the
   size of WP. They are large dependencies. Further, any abstraction layer will 
   require accompanying work to make the SQL portable. error404’s work looks like
   a good way forward.
 *  [error404](https://wordpress.org/support/users/error404/)
 * (@error404)
 * [21 years, 6 months ago](https://wordpress.org/support/topic/postgresql/page/5/#post-24328)
 * Good to hear that, it’s been a few months since I’ve checked out 1.3. I definitely
   have to reexamine where the DB code is going and plan accordingly; all that’s
   really necessary is for all the calls to mysql_* to be pulled out into a seperate
   file, which can be selected in the configuration. Then it’s a comparitavely simple
   matter for someone to replicate the schema and port only the centrally-organized
   SQL.
    Definitely nice to see the development team making an effort to move forward
   on it. SQLite support would be nice for many as well, I imagine, and I’d be willing
   to write it if the SQL were more centralized, even ignoring the real abstraction
   issues. ADODB would be nice for other reasons, but it wouldn’t be *that* much
   work to replicate the features we actually need.
 *  [fmayhar](https://wordpress.org/support/users/fmayhar/)
 * (@fmayhar)
 * [21 years, 6 months ago](https://wordpress.org/support/topic/postgresql/page/5/#post-24329)
 * I’m glad to hear that things are going forward. For my needs, ADODB would be 
   overkill; I just need a way to use my existing PostgreSQL installation. I suspect
   that most feel this way: the details don’t matter as long as it works. 🙂
    (Responding
   partly to Mr. Anonymous up there.) Unfortunately I simply have neither the time
   or the interest to help out technically in this. I have a Real Job that demands
   my time, and any “free” time that I may have left over from that or my family
   goes to kernel work, which is what I <i>am</i> interested in. But I do value 
   your work and by no means intend to imply that it was in any way a waste of time
   or useless. It’s just not suitable for my needs. And I have been known to toss
   a few bucks toward worthy causes when I have it to toss. Thanks for the responses.
   I’ll keep an eye on WordPress as it evolves…
 *  [padelsbach](https://wordpress.org/support/users/padelsbach/)
 * (@padelsbach)
 * [21 years, 5 months ago](https://wordpress.org/support/topic/postgresql/page/5/#post-24331)
 * i agree with the above posts. i looked into porting the db to a hacked version
   of the SQLite ezSQL script. however, many queries throughout are quite cluttered
   with mySQL-specific language. peardb is perfect for a wp-type application, but
   right now the wp codebase is not in any type of condition to support it without
   a major overhaul.
 *  [tblob](https://wordpress.org/support/users/tblob/)
 * (@tblob)
 * [21 years, 4 months ago](https://wordpress.org/support/topic/postgresql/page/5/#post-24332)
 * Here’s another request for POSTGRE.
 *  [yourcelf](https://wordpress.org/support/users/yourcelf/)
 * (@yourcelf)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/postgresql/page/5/#post-24333)
 * I started a page on the new WordPress MediaWiki, summarizing points discussed
   on this thread:
 * [http://codex.wordpress.org/Database_Support](http://codex.wordpress.org/Database_Support)
 * We should get together a battle plan, and actually get the dirty work done and
   make this happen. If we can figure out a bomber solution, the developers would
   probably do it (especially if people can contribute good code and maybe a few
   of those promised donations).
 *  [wac](https://wordpress.org/support/users/wac/)
 * (@wac)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/postgresql/page/5/#post-24334)
 * Yet another place I hadn’t seen yet. 🙂 This is a bit of a novel given what’s
   been said so far, so bear with me. I’m the other developer besides error404 on
   WordPress-Pg. My work is continuing on the WordPress-Pg 1.5 port at this time.
   It’s been a fair bit of work to say the least and the progress is lots of small
   victories.
 * The talk of going to some sort of large generic object persistance layer or database
   abstraction tool is most likely not going to work out in the long run. Such things
   tend to bloat and slow down your program. Given WordPress’s necessarily interactive
   nature such slowdowns would be bad. I imagine many are thinking like Dr. Venkman,“
   I’m fuzzy on the whole good/bad thing. What do you mean ‘bad’?” I’ve already 
   observed some performance issues with the number of queries and the load generated
   on modest servers, to add more would really grind everything down to a halt. 
   It doesn’t help that PHP isn’t exactly the fastest language on the block.
 * That said, I think there is room for database abstraction, if for no other reason
   so the code streams can come together at some point to satisfy many users like
   fmayhar (and myself) who think that vendor lock-in is bad. As an added benefit
   when things like “Getting the most recent N posts and the number of approved 
   comments for each” can become a function call that looks at some global “what
   database are we using” setting, they can be optimized on certain databases that
   only need one roundtrip to get that particular bunch of information (subqueries
   are good) as opposed to N+1 query roundtrips. I certainly plan on coding in that
   direction after the 1.5 port is more or less together, although I’m uncertain
   how receptive the existing WordPress maintainers will be. Maybe they’ll take 
   my patches if I send them some beer… 😉
 *  [jarlnicolson](https://wordpress.org/support/users/jarlnicolson/)
 * (@jarlnicolson)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/postgresql/page/5/#post-24335)
 * I too would like postgres support. I’d even help to add said support if I knew
   it would be added to the main tree.
 * I like the idea of going with a full abstraction layer (ADOdb being my favourite).
   Why, over a custom written one? Because it’s already there and it supports lots
   of databases.
 * Is the size issue really a problem? If it was a 10MB dependency I could understand
   the issue. But it’s <1MB uncompressed, probably smaller once you had gone through
   and removed some extra un-needed stuff (such as tests and performance monitoring).
 * Sure it’d break things like 3rd party plugins, but the longer we wait before 
   we do something, the more plugins it will break when we finally do.
 * You can’t please everyone. I suggest someone just makes a choice and we stick
   to it, seems as though politics are the main thing holding this back.

Viewing 15 replies - 61 through 75 (of 84 total)

[←](https://wordpress.org/support/topic/postgresql/page/4/?output_format=md) [1](https://wordpress.org/support/topic/postgresql/?output_format=md)
[2](https://wordpress.org/support/topic/postgresql/page/2/?output_format=md) [3](https://wordpress.org/support/topic/postgresql/page/3/?output_format=md)
[4](https://wordpress.org/support/topic/postgresql/page/4/?output_format=md) 5 [6](https://wordpress.org/support/topic/postgresql/page/6/?output_format=md)
[→](https://wordpress.org/support/topic/postgresql/page/6/?output_format=md)

The topic ‘PostgreSQL’ is closed to new replies.

## Tags

 * [PostgreSQL](https://wordpress.org/support/topic-tag/postgresql/)

 * In: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
 * 84 replies
 * 37 participants
 * Last reply from: [ifelse](https://wordpress.org/support/users/ifelse/)
 * Last activity: [20 years, 6 months ago](https://wordpress.org/support/topic/postgresql/page/6/#post-24358)
 * Status: not a support question

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
