Ignore:
Timestamp:
06/29/07 15:17:46 (17 years ago)
Author:
niltonneto
Message:

Versão nova do ADODB (4.5 para 4.95)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpgwapi/inc/adodb/perf/perf-postgres.inc.php

    r2 r34  
    22 
    33/*  
    4 V4.51 29 July 2004  (c) 2000-2004 John Lim (jlim@natsoft.com.my). All rights reserved. 
     4V4.94 23 Jan 2007  (c) 2000-2007 John Lim (jlim#natsoft.com.my). All rights reserved. 
    55  Released under both BSD license and Lesser GPL library license.  
    66  Whenever there is any discrepancy between the two licenses,  
     
    4343                        'Value must be TRUE to enable hit ratio statistics (<i>stats_start_collector</i>,<i>stats_row_level</i> and <i>stats_block_level</i> must be set to true in postgresql.conf)'), 
    4444                'data cache hit ratio' => array('RATIO', 
    45                         "select case when blks_hit=0 then 0 else (1-blks_read::float/blks_hit)*100 end from pg_stat_database where datname='\$DATABASE'", 
     45                        "select case when blks_hit=0 then 0 else round( ((1-blks_read::float/blks_hit)*100)::numeric, 2) end from pg_stat_database where datname='\$DATABASE'", 
    4646                        '=WarnCacheRatio'), 
    4747        'IO', 
     
    5050                ), 
    5151                'data writes' => array('IO', 
    52                 'select sum(n_tup_ins/4.0+n_tup_upd/8.0+n_tup_del/4.0)/16 from pg_stat_user_tables', 
     52                'select round((sum(n_tup_ins/4.0+n_tup_upd/8.0+n_tup_del/4.0)/16)::numeric,2) from pg_stat_user_tables', 
    5353                'Count of inserts/updates/deletes * coef'), 
    5454 
     
    6767                        '(effective cache size)' ), 
    6868        'Memory Usage', 
    69                 'sort buffer size' => array('CACHE', 
    70                         "select setting::integer*1024 from pg_settings where name='sort_mem'", 
     69        # Postgres 7.5 changelog: Rename server parameters SortMem and VacuumMem to work_mem and maintenance_work_mem; 
     70                'sort/work buffer size' => array('CACHE', 
     71                        "select setting::integer*1024 from pg_settings where name='sort_mem' or name = 'work_mem' order by name", 
    7172                        'Size of sort buffer (per query)' ), 
    7273        'Connections', 
Note: See TracChangeset for help on using the changeset viewer.