Why did I do that?

Gallery 2.3 just came out, and I made the mistake of upgrading instead of waiting for it to shake out a bit. And of course, things are slightly broken. Everything works, but at the end of every page is this:

Database Error
An error has occurred while interacting with the database.

The exact nature of database errors is not captured unless Gallery debug mode is enabled in config.php. Before seeking support for this error please enable buffered debug output and retry the operation. Look near the bottom of the lengthy debug output to find error details.
Back to the Gallery

Error Detail –
in modules/core/classes/GalleryStorage/GalleryStorageExtras.class at line 1007 (gallerycoreapi::error)
in modules/core/classes/GalleryStorage.class at line 521 (gallerystorageextras::addmapentry)
in modules/core/classes/GalleryCoreApi.class at line 2955 (postgresqlstorage::addmapentry)
in modules/core/classes/GalleryDataCache.class at line 692 (gallerycoreapi::addmapentry)
in main.php at line 594 (gallerydatacache::putpagedata)
in main.php at line 104
in main.php at line 88
System Information
Gallery version 2.3
PHP version 4.4.4-8+etch6 apache2handler
Webserver Apache/2.2.3 (Debian) mod_python/3.2.10 Python/2.4.4 PHP/4.4.4-8+etch6 mod_perl/2.0.2 Perl/v5.8.8
Database postgres7
Operating system Linux xen1.xcski.com 2.6.18-3-xen-686 #1 SMP Mon Dec 4 20:48:20 UTC 2006 i686
Browser Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_5; en-us) AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.2 Safari/525.20.1

The weird thing is that it was happening almost everywhere, and now it’s only some pages.