|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| perf_postgres (&$conn) | |
| optimizeTable ($table, $mode=ADODB_OPT_LOW) | |
| Explain ($sql, $partial=false) | |
Data Fields | |
| $tablesSQL | |
| $createTableSQL | |
| $settings | |
| $optimizeTableLow = 'VACUUM %s' | |
| $optimizeTableHigh = 'VACUUM ANALYZE %s' | |
Definition at line 22 of file perf-postgres.inc.php.
| Explain | ( | $ | sql, |
| $ | partial = false |
||
| ) |
Reimplemented from adodb_perf.
Definition at line 124 of file perf-postgres.inc.php.

| optimizeTable | ( | $ | table, |
| $ | mode = ADODB_OPT_LOW |
||
| ) |
Definition at line 102 of file perf-postgres.inc.php.
| perf_postgres | ( | &$ | conn | ) |
Definition at line 90 of file perf-postgres.inc.php.
| $createTableSQL |
"CREATE TABLE adodb_logsql ( created timestamp NOT NULL, sql0 varchar(250) NOT NULL, sql1 text NOT NULL, params text NOT NULL, tracer text NOT NULL, timer decimal(16,6) NOT NULL )"
Reimplemented from adodb_perf.
Definition at line 30 of file perf-postgres.inc.php.
| $optimizeTableHigh = 'VACUUM ANALYZE %s' |
Definition at line 96 of file perf-postgres.inc.php.
| $optimizeTableLow = 'VACUUM %s' |
Definition at line 95 of file perf-postgres.inc.php.
| $settings |
Definition at line 39 of file perf-postgres.inc.php.
| $tablesSQL |
"select a.relname as tablename,(a.relpages+CASE WHEN b.relpages is null THEN 0 ELSE b.relpages END+CASE WHEN c.relpages is null THEN 0 ELSE c.relpages END)*8 as size_in_K,a.relfilenode as \"OID\" from pg_class a left join pg_class b on b.relname = 'pg_toast_'||trim(a.relfilenode) left join pg_class c on c.relname = 'pg_toast_'||trim(a.relfilenode)||'_index' where a.relname in (select tablename from pg_tables where tablename not like 'pg_%')"
Reimplemented from adodb_perf.
Definition at line 24 of file perf-postgres.inc.php.