So, converting the table initialization in setup.php and converting mysql functions to pgsql functions in functions-db.php wasn't bad (though I might not have done things completely correctly since my knowledge of DBs is poor). The problems are occuring whne trying to convert the SQL statements in classes.php. My SQL knowledge isn't good enough to figure out what the code is intended to do and why postgresql complains about it. e.g.
classes.php line 352:
`$entry = query_single_row("SELECT *, (date + 0) AS date FROM ".prefix("albums").
" WHERE folder=".mysql_escape_string($folder)." LIMIT 1;");`
doesn't make postgres happy:
Quote:postgreSQL Query ( SELECT *, (date + 0) AS date FROM albums WHERE folder=test LIMIT 1; ) Failed. Error: ERROR: operator does not exist: timestamp without time zone + integer HINT: No operator matches the given name and argument type(s). You may need to add explicit type casts.
but damned if I know why.