SQL changes in mod/chat/lib.php do not work under PostgreSQL:
ERROR: column "cm.course" must appear in the GROUP BY clause or be used in an aggregate function
SELECT cm.*, ch.name, 'chat' AS modname, MAX(chm.timestamp) AS lasttime FROM mdl_course_modules cm JOIN mdl_modules md ON md.id = cm.module JOIN mdl_chat ch ON ch.id = cm.instance JOIN mdl_chat_messages chm ON chm.chatid = ch.id WHERE chm.timestamp > 1202805600 AND ch.course = 8 AND md.name = 'chat' GROUP BY cm.id ORDER BY chm.timestamp ASC
- line 686 of lib/dmllib.php: call to debugging()
- line 944 of lib/dmllib.php: call to get_recordset_sql()
- line 152 of mod/chat/lib.php: call to get_records_sql()
- line 932 of course/lib.php: call to chat_print_recent_activity()
- line 27 of blocks/recent_activity/block_recent_activity.php: call to print_recent_activity()
- line 240 of blocks/moodleblock.class.php: call to block_recent_activity->get_content()
- line 264 of blocks/moodleblock.class.php: call to block_base->is_empty()
- line 338 of lib/blocklib.php: call to block_base->_print_block()
- line 284 of course/format/topics/format.php: call to blocks_print_group()
- line 206 of course/view.php: call to require()
adding first patch - not finished yet, but it should be suitable for basic perf testing
please note that full manual rebuild_course_cache() is required (not added into main upgrade.php yet)