[wp-hackers] port of 2.1 to postgresql

Sabin Iacob iacobs at m0n5t3r.info
Fri Mar 16 18:50:25 GMT 2007


Matt Mullenweg wrote:
> Dave Cramer wrote:
>> I can tell you that this isn't the case, sql code is *everywhere* :(
>
> Yes, but it all goes through a single filter in db.php, it'd be 
> interesting to see if some sort of query rewriting could address the 
> majority of the cases that cause problems.
>

the first thing that comes to my mind is some sort of table lookup for 
queries (have a list of problematic queries and get templates for them 
from an associative array, let the others through unaltered), but it's 
quite a hack :)

the real solution is moving queries into the database API.


More information about the wp-hackers mailing list