Changeset 146 for trunk

Show
Ignore:
Timestamp:
05/20/10 15:01:26 (4 years ago)
Author:
ssteinpreis
Message:

Removed fully qualified pathname for psql.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/table_growth/table_growth_report.sh

    r145 r146  
    1212DNAME=your_real_postgres_db_name 
    1313 
    14 /opt/pgsql90alpha4/bin/psql -d ${DNAME} -c "select 'Top 10 Tables Growth For:-  '||to_char(current_date - '1 month'::interval,'Mon-YYYY') as Month; select table_owner, schema_name, table_name, pg_size_pretty(growth_size::bigint) as Growth_size_MB from otools.table_growth where sum_flag = 2 and to_char(capture_time,'mm/yyyy')=to_char((current_date - '1 month'::interval),'mm/yyyy') order by growth_size desc limit 10;" > $LOGFILE 
     14psql -d ${DNAME} -c "select 'Top 10 Tables Growth For:-  '||to_char(current_date - '1 month'::interval,'Mon-YYYY') as Month; select table_owner, schema_name, table_name, pg_size_pretty(growth_size::bigint) as Growth_size_MB from otools.table_growth where sum_flag = 2 and to_char(capture_time,'mm/yyyy')=to_char((current_date - '1 month'::interval),'mm/yyyy') order by growth_size desc limit 10;" > $LOGFILE 
    1515 
    1616if [ -s "$LOGFILE" ]; then