Skip to content
 

PG4WP 1.0.0

Oui ! PostgreSQL pour WordPress 1.0.0 est sorti :)

Cela signifie que j’estime qu’il est suffisament stable pour une utilisation réelle ;)

J’ai optimisé un peu le code, principalement pour que le code le plus souvent utilisé soit atteint plus rapidement.

Un autre grand changement a eu lieu dans la taille du fichier ‘dp.php’ qui est passé d’environ 32ko à moins de 1ko.
Il s’agissait jusqu’à maintenant d’une copie du fichier ‘wp-db.php’ de WordPress intégrant quelques modifications, désormais il charge celui de votre installation de WordPress en effectuant les changements requis “à la volée”.
Le principal avantage de cette méthode est que je n’ai plus à me préoccuper de maintenir ma propre version à jour.
Attention ! Cette méthode nécessite PHP 4.3+ pour fonctionner, cela devient donc le prérequis pour l’utilisation de PG4WP (de toutes façons vous ne devriez pas utiliser une version de PHP plus ancienne).

J’ai également modifié la structure des dossiers, de façon à ce que le dossier ‘pg4wp’ se retrouve directement dans ‘wp-content’ plutôt que dans le sous-dossier ‘wp-content/plugins’.
PG4WP n’est pas un véritable plugin, il doit être installé et actif avant que le moindre plugin ne puisse être chargé.

Si vous activez les logs de débogage, les fichiers de log sont désormais écrits dans le dossier ‘pg4wp’.

Un fichier ‘readme.txt’ est inclus dans l’archive, décrivant PG4WP pour le répertoire de plugins de WordPress.Org
J’attends simplement l’ouverture de mon accès pour y placer PG4WP.

J’utilise PG4WP sur ce blog depuis son ouverture, et je n’ai rencontré aucun véritable problème (uniquement quelques dysfonctionnements que j’ai corrigé depuis).

Si vous utilisez PG4WP pour votre blog (en fait c’est vrai même si vous n’utilisez pas PG4WP), n’oubliez pas de faire des sauvegardes régulières (et de vérifier que vous pourrez les restaurer en cas de problème), ‘pg_dump’ est votre meilleur allié si vous utilisez PostgreSQL ;)

Si vous avez installé une version précédente de PG4WP, n’oubliez pas de supprimer le dossier ‘pg4wp’ du dossier ‘wp-contents/plugins’ car il n’est plus utilisé.

Téléchargement :

PG4WP 1.0.0

7 Comments

  1. Ed W says:

    Great stuff for working on this!

    I did attempt to get PG4WP working on a fresh install and for some reason the install.php just comes out as a blank page.
    (The same install works ok with MySQL)

    It’d be great if I can get this working though as it’s not ideal to have to have MySQL and PostgreSQL both running on my server!

  2. Inside install.txt
    DB_TYPE should be DB_DRIVER
    and db.php in the directory listing should be prefixed just like the rest of the files in that directory

    Apart from that WELL DONE!!!

  3. Serge Fonville says:

    I tried to install GD Star Rating http://wordpress.org/extend/plugins/gd-star-rating/ and it generated a lot of errors
    Do you have any experience with this plugin. Alternatively, do you know another rating plugin that is compatible with pg4wp

    Thansk

  4. Hawk__ says:

    I’m sorry but most database intensive plugins have poor chances to work correctly with PG4WP as it works by “translating” MySQL specific queries to more generalistic SQL ones.

    Plugins using direct my calls will never be supported as long as they are not modified to use WP’s “wpdb” database object which PG4WP hooks into.

    GD Star Rating seems to use many tables but may be supported some day if it uses the “wpdb” database object to work (I’ll put it in the list of plugins to watch for compatibility).
    I don’t have much experience with WP’s plugins, and I don’t know any rating plugin.

    Please excuse the delay for my answer.

  5. Hello Hawk__,

    I am attempting to get your plugin working. I have downloaded a clean copy of WordPress 2.8 (released June 2009) and followed the directions in the readme file for PG4WP. I have created a database with the database user as owner and I have double-checked the database name, user name, and password information for my server. When I attempt to go through the installation process, I see a “Can’t select database” error generated by Wordpress. It says that it was able to connect so the username and password are fine, but that it cannot select the database. Any advice/ideas?

    Again, I do not have any additional Wordpress plugins and this is a clean install attempt. I am running Apache, PostgreSQL 8.3 and PHP5. The server is a deployed web server with other content running on it just fine (including use of another PostgreSQL database). The Wordpress PostreSQL user is the owner of the database I am trying to use.

  6. rach says:

    Great stuff!

    But, i need help…

    i have downloaded a clean copy of wordcpress 2.8.6 and followed all the directions in the file readme PG4WP, but some reason the install.php just comes out as a blank page.

    cheack: http://oqueeutenho.uol.com.br/2.0/

    please help?

    thanks…

  7. balrog-kun says:

    Hey,
    I just installed wordpress for the first time and wanted to use PostgreSQL. I started with the latest wordpress 2.9.1 + your plugin which nearly worked fine but pgsql threw a bunch of syntax errors at me. Some related to the REGEXP keyword, some related to new primary key conflicts and some related to ON DUPLICATE KEY keyword. I modified your plugin to handle these cases (except the last one which I chose to ignore for simplicity) and it works like a charm, I’m blogging away. The patch against pg4wp 1.0.0 is at

    http://www.openstreetmap.pl/balrog/wordpress-pg4wp-update-2.9.1.patch

Leave a Reply