摘要: 1. 环境信息: 1. 安装有excel的windows,做为客户端,excel是为为测试odbc而要求,非必须; 2. 安装有PostgreSQL的服务器,我的是在Redhat Linux 4上装的。2. 下载PostgreSQL命令的ODBC,官方的我没有找到,不过可以从以下站点下载。 http://d.download.csdn.net/down/3059636/ldz_1_0_1下载下来psqlodbc_08_03_01.zip后,解压安装,就是一路next,不解释,你懂得。3. 配置,打开控制面板->管理工具->数据源(ODBC),如下:单击“添加”,选择PostgreS 阅读全文
posted @ 2011-07-24 18:27 Socrates 阅读(404) 评论(0) 推荐(0) 编辑
摘要: PostgreSQL配置文件的修改方法:1. 配置文件所在路径:[postgres@kevin data]$ pwd/opt/postgresql/data[postgres@kevin data]$ ll总用量 1332drwx------ 8 postgres dba 4096 7月 13 10:50 basedrwx------ 2 postgres dba 4096 7月 19 03:42 global-rw------- 1 postgres dba 1181357 7月 17 16:17 gmon.outdrwx------ 159 postg... 阅读全文
posted @ 2011-07-24 17:08 Socrates 阅读(1180) 评论(0) 推荐(0) 编辑
摘要: 1.使用命令行方式查看用户自己的表。[postgres@kevin root]$ psql -c "\d" -d kevin_testcould not change directory to "/root" List of relations Schema | Name | Type | Owner--------+---------------+-------+---------------- public | tbl_test_port | table | pg_test_user_3(1 row)[postgres@kevin ... 阅读全文
posted @ 2011-07-24 14:56 Socrates 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 1. 查看数据库到目前为止启动时长。kevin_test=# SELECT date_trunc('second', current_timestamp - pg_postmaster_start_time()) as uptime; uptime---------- 05:46:47(1 row)kevin_test=#2.查看启动时间。kevin_test=# SELECT pg_postmaster_start_time() as start_time; start_time-------------------------------2011-07-18 01:09:3 阅读全文
posted @ 2011-07-24 01:01 Socrates 阅读(297) 评论(0) 推荐(0) 编辑