Kommentare
Serendipity 1.3.1 released
Judebert am um :
This release also includes updates to the Karma plugin, allowing karma bars to be displayed on summary pages.
Simone am um :
I fail to see how "there is no ultimate solution to" PostgreSQL problems: simply use explict casts where needed.
Garvin am um :
Simone,
thanks for discussing this. We are actually in need of people who use pgsql and s9y and can help in finding a solution.
Additionally to what is stated in http://board.s9y.org/viewtopic.php?t=12402 here's a quick summary: Serendipity uses a single SQL code that runs on all DBs we support (MySQL,SQLite,PGSql,SQRelay). There are only few exceptions to that SQL, namely where DISTINCT vs. GROUP is used, which requires special case for PostgreSQL.
As for implicit casts, we use those in a central place of the code, where basically any involved DB table can contain a column that is matched against a user specified term. At that point in code, plugins can interfer and supply custom joined tables with differing column types, but all need to be generally matched against the key.
So for this, onle the "LIKE" command or "=" term with single quotes (implicit string cast) really works, because at that place in code, the script might not know if it needs to match an integer or a string. To change this would mean that every plugin or code that hooks into those central functions first needs to check which column type a match key is. That would mean additional performance hits as well as changing all plugins that relate to this. This is nearly an impossible task and involves tidious patching of a lot of plugins.
However, this really is a thing where implicit string typecasting makes sense, and I actually fail to see why this is removed in PGSQL, BC-breaking a lot of existing code (not only s9y).
Typecasting should not simply be put up to the application; IMHO it's the job of a database to do actual casting on its own, introspecting the input and other meta information that is. It's just like lazy variable initializing in PHP: You can simply prototype faster if you are not restricted to explicit casting.
Hope that clears up some things and why I see that more of a shortcoming of PGSQL design decisions.
Regards, Garvin
Michael am um :
This seems to be a release with lots of helpful options. As I've been to busy to notices this new release I will catch up on this now.
Place on Map am um :
i mean its down again. SourceForge, Berlios miss many plugins. really infuriating
Bernd am um :
Good to know that the problem is the server itself. Unfortunately I know such problems from other servers. So hope it will be fixed soon.