mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #29089
[Bug 1497053] [NEW] Cron error with over 65535 users
Public bug reported:
I discovered another case of things failing when there are too many
users to substitute IDs as question marks in a postgres query -
specifically, when running cron on a site with ~68000 users I get:
[WAR] 3f (lib/dml.php:480) Failed to get a recordset: postgres8 error: [-1: number of parameters must be between 0 and 65535] in EXECUTE("SELECT COUNT(*) FROM "usr" WHERE lastaccess >= DATE(?) AND lastaccess < DATE(?)+ INTERVAL '1 day' AND id IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,...)
Command was: SELECT COUNT(*) FROM "usr" WHERE lastaccess >= DATE(?) AND lastaccess < DATE(?)+ INTERVAL '1 day' AND id IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,...)
Call stack (most recent first):
get_recordset_sql("SELECT COUNT(*) FROM "usr" WHERE lastaccess >= DAT...", array(size 66885)) at /home/jonom/mahara/mahara/htdocs/lib/dml.php:269
count_records_sql("SELECT COUNT(*) FROM "usr" WHERE lastaccess >= DAT...", array(size 66885)) at /home/jonom/mahara/mahara/htdocs/lib/dml.php:251
count_records_select("usr", "lastaccess >= DATE(?) AND lastaccess < DATE(?)+ IN...", array(size 66885)) at /home/jonom/mahara/mahara/htdocs/lib/mahara.php:3782
cron_institution_data_daily() at /home/jonom/mahara/mahara/htdocs/lib/cron.php:142
Should be a similar fix to Bug #1456849
** Affects: mahara
Importance: High
Status: New
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1497053
Title:
Cron error with over 65535 users
Status in Mahara:
New
Bug description:
I discovered another case of things failing when there are too many
users to substitute IDs as question marks in a postgres query -
specifically, when running cron on a site with ~68000 users I get:
[WAR] 3f (lib/dml.php:480) Failed to get a recordset: postgres8 error: [-1: number of parameters must be between 0 and 65535] in EXECUTE("SELECT COUNT(*) FROM "usr" WHERE lastaccess >= DATE(?) AND lastaccess < DATE(?)+ INTERVAL '1 day' AND id IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,...)
Command was: SELECT COUNT(*) FROM "usr" WHERE lastaccess >= DATE(?) AND lastaccess < DATE(?)+ INTERVAL '1 day' AND id IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,...)
Call stack (most recent first):
get_recordset_sql("SELECT COUNT(*) FROM "usr" WHERE lastaccess >= DAT...", array(size 66885)) at /home/jonom/mahara/mahara/htdocs/lib/dml.php:269
count_records_sql("SELECT COUNT(*) FROM "usr" WHERE lastaccess >= DAT...", array(size 66885)) at /home/jonom/mahara/mahara/htdocs/lib/dml.php:251
count_records_select("usr", "lastaccess >= DATE(?) AND lastaccess < DATE(?)+ IN...", array(size 66885)) at /home/jonom/mahara/mahara/htdocs/lib/mahara.php:3782
cron_institution_data_daily() at /home/jonom/mahara/mahara/htdocs/lib/cron.php:142
Should be a similar fix to Bug #1456849
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1497053/+subscriptions
Follow ups
-
[Bug 1497053] Re: Cron error with over 65535 users
From: Kristina Hoeppner, 2016-04-29
-
[Bug 1497053] Re: Cron error with over 65535 users
From: Robert Lyon, 2015-10-27
-
[Bug 1497053] Re: Cron error with over 65535 users
From: Robert Lyon, 2015-10-27
-
[Bug 1497053] Re: Cron error with over 65535 users
From: Aaron Wells, 2015-10-27
-
[Bug 1497053] Re: Cron error with over 65535 users
From: Aaron Wells, 2015-10-23
-
[Bug 1497053] A change has been merged
From: Mahara Bot, 2015-10-19
-
[Bug 1497053] Re: Cron error with over 65535 users
From: Robert Lyon, 2015-10-19
-
[Bug 1497053] A change has been merged
From: Mahara Bot, 2015-10-11
-
[Bug 1497053] Re: Cron error with over 65535 users
From: Robert Lyon, 2015-10-11
-
[Bug 1497053] Re: Cron error with over 65535 users
From: Aaron Wells, 2015-10-08
-
[Bug 1497053] A patch has been submitted for review
From: Mahara Bot, 2015-10-08
-
[Bug 1497053] A patch has been submitted for review
From: Mahara Bot, 2015-10-08
-
[Bug 1497053] A change has been merged
From: Mahara Bot, 2015-10-08
-
[Bug 1497053] Re: Cron error with over 65535 users
From: Aaron Wells, 2015-10-08
-
[Bug 1497053] A patch has been submitted for review
From: Mahara Bot, 2015-10-08
-
[Bug 1497053] Re: Cron error with over 65535 users
From: Jono Mingard, 2015-10-08