coffee_cn

博客园 首页 新随笔 联系 订阅 管理

2008年8月5日 #

摘要: 查看数据库占用磁盘空间[root@test ~]# cd /var/lib/pgsql/data/base/[root@test base]# du -h -s ./*4.7M ./156M ./157359015381M ./15747361566M ./1589854634.7M ./17229[root@test base]# 查看数据表占用磁盘空间 阅读全文
posted @ 2008-08-05 21:22 coffee 阅读(1807) 评论(0) 推荐(0) 编辑

摘要: PostgreSQL不是很熟悉,不知道有没有好的办法取出数据中所有表及表中的记录数,各位如果有好的方法请转告,谢谢!!本来有一个数据库,里面大概有200多表,用了一种笨方法编写了一个简单的PHP程序实现.取出所有的表postgresql#\dt 然后写了个php程序获取表记录数,当然如果你的表比较少,直接用SELECT COUNT(*) FROM TABLE就了事!!<?php$tables... 阅读全文
posted @ 2008-08-05 21:19 coffee 阅读(1396) 评论(0) 推荐(0) 编辑

摘要: #pg_dump -h192.168.2.30 -Upostgres test > test.sql#pg_dump -h192.168.2.30 -Upostgres test -t test > test.sql 阅读全文
posted @ 2008-08-05 18:42 coffee 阅读(979) 评论(0) 推荐(0) 编辑

摘要: 发送传真最简单方式#sendfax -n -dfax_number doc292.ps指定参数发送传真#sendfax -n -T 3 -I 1 -dfax_number doc292.ps正在发送的传真#faxstat -s传真报表#faxstat -d | sort删除传真队列#faxrm 454启动停止传真服务#/etc/init.d/hylafax start[stop]更改配置文件hfa... 阅读全文
posted @ 2008-08-05 11:35 coffee 阅读(1398) 评论(0) 推荐(0) 编辑

摘要: #du -h -s ./* | sort12K ./store156M ./test_deploy_106159M ./test_deploy_107166M ./test_deploy_old20K ./deploy215M ./test_deploy234M ./test_deploy_1088.0K ./site_content 阅读全文
posted @ 2008-08-05 11:14 coffee 阅读(2619) 评论(1) 推荐(0) 编辑