When the Moodle cron is updating the tag_correlation table, it needs the id from the get_record query, otherwise you get this error :-
Default exception handler: Coding error detected, it must be fixed by a programmer: moodle_database::update_record_raw() id field must be specified. Debug:
- line 904 of /lib/dml/pgsql_native_moodle_database.php: coding_exception thrown
- line 967 of /lib/dml/pgsql_native_moodle_database.php: call to pgsql_native_moodle_database->update_record_raw()
- line 860 of /tag/lib.php: call to pgsql_native_moodle_database->update_record()
- line 873 of /tag/lib.php: call to tag_compute_correlations()
- line 313 of /lib/cronlib.php: call to tag_cron()
- line 61 of /admin/cli/cron.php: call to cron_run()