随笔 - 92  文章 - 0  评论 - 13  阅读 - 17万
09 2013 档案
[Postgres]关于Postgres的INHERIT,分表
摘要:实在是很强大的功能可以通过Check的制约把结构相同的表合并起来,或者反过来说,可以在一个表名下数据库自动的根据Check条件往对应的分表里存储数据[USER_DATA表]CREATE TABLE test."USER_DATA"( "MAC" character varying(12) NOT NULL, "ID" character(3) NOT NULL, "YEARS" numeric(6,0) NOT NULL, "DAY" numeric(2,0) NOT NULL, "H 阅读全文
posted @ 2013-09-30 16:30 BoneKing 阅读(1741) 评论(0) 推荐(0) 编辑
[Postgres]Postgres单用户模式执行VACUUM
摘要:# su - postgres$ /usr/local/pgsql/bin/postgres --single -D /usr/local/pgsql/data [不能VACUUM的数据库]PostgreSQL stand-alone backend 8.3.6backend>执行VACUUMbackend> VACUUMCtrl + D退出单用户模式 阅读全文
posted @ 2013-09-30 16:03 BoneKing 阅读(914) 评论(0) 推荐(0) 编辑
[CentOS]yum安装postgres和ntfs-3g
摘要:卸载已经存在的postgreSqlyum list | grep postgresyum remove postgresql-server获取rpm文件并安装rpm -i http://yum.postgresql.org/9.0/redhat/rhel-6.0-x86_64/pgdg-centos90-9.0-5.noarch.rpmyum install postgresql90-server postgresql90-contrib初始化数据库service postgresql-9.0 initdb启动配置chkconfig postgresql-9.0 onservice post. 阅读全文
posted @ 2013-09-30 15:56 BoneKing 阅读(2729) 评论(0) 推荐(0) 编辑
[CentOS]CentOS/RedHat/Fedora的Proxy设定(yum,wget,,rpm)
摘要:yum「/etc/yum.conf」proxy=http://proxy.xxx.com:8080/wget「/etc/wgetrc」http_proxy=http://proxy.xxx.com:8080/rpmrpm --httpproxy proxy.xxx.com--httpport 8080 ~ 阅读全文
posted @ 2013-09-26 14:56 BoneKing 阅读(346) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示