摘要: http://blog.csdn.net/hantiannan/article/details/4517192http://www.cnblogs.com/gaojian/archive/2012/11/08/2759874.htmlhttp://m.oschina.net/blog/135872h... 阅读全文
posted @ 2014-05-30 17:33 bielidefeng 阅读(314) 评论(0) 推荐(0) 编辑
摘要: ubuntu追加空间http://blog.csdn.net/openme_openwrt/article/details/8099956-------------------播放视频avi等使用SMPLAYER播放器-----------终端目录的说明使用“/usr/.....”===>系统目录... 阅读全文
posted @ 2014-05-30 11:05 bielidefeng 阅读(413) 评论(0) 推荐(0) 编辑
摘要: ----------ps -ewf显示所有进程,ps -a|grep ss指的是显示ss关键字的所有进程。top是动态显示进程。---------cat直接将文件内容显示在终端上。 ---------查看linux系统版本信息cat /etc/*release。---------从一台Linux机子... 阅读全文
posted @ 2014-05-30 11:04 bielidefeng 阅读(245) 评论(0) 推荐(0) 编辑
摘要: update/delete .. order by .. limit ..:update aa set b='mmmmmmmmbbbbbbbb' where a>10 order by a limit 1; 会报错:因为update 不能和order by 或limit 联合使用。如果需要使用则需要... 阅读全文
posted @ 2014-05-30 10:34 bielidefeng 阅读(199) 评论(0) 推荐(0) 编辑
摘要: http://www.postgresql.org/docs/9.3/static/plpgsql-statements.html#PLPGSQL-STATEMENTS-DIAGNOSTICSEXECUTE format('UPDATE tbl SET %I = $1 WHERE key = $2'... 阅读全文
posted @ 2014-05-30 10:34 bielidefeng 阅读(94) 评论(0) 推荐(0) 编辑
摘要: 参看:http://blog.163.com/czg_e/blog/static/461045612012129105020629/http://pgpool.projects.pgfoundry.org/pgpool-II/doc/pgpool-zh_cn.html#connection_pool... 阅读全文
posted @ 2014-05-30 10:34 bielidefeng 阅读(592) 评论(0) 推荐(0) 编辑
摘要: postgresql 流复制:http://francs3.blog.163.com/blog/static/4057672720136210240967/master(127.0.0.1:5432):数据目录:/home/pg93/test_rep/datainitdb -D $PGDATA -E... 阅读全文
posted @ 2014-05-30 10:34 bielidefeng 阅读(169) 评论(0) 推荐(0) 编辑
摘要: postgresql利用归档文件恢复:http://bbs.chinaunix.net/thread-1771360-1-1.html http://blog.163.com/digoal@126/blog/static/16387704020110442050808/ master:ip:127... 阅读全文
posted @ 2014-05-30 10:34 bielidefeng 阅读(157) 评论(0) 推荐(0) 编辑
摘要: http://docs.oracle.com/cd/E19253-01/819-6951/index.htmlhttp://lovesoo.org/linux-sar-command-detailed.htmlhttp://www.live-in.org/archives/922.htmlfree:... 阅读全文
posted @ 2014-05-30 10:34 bielidefeng 阅读(292) 评论(0) 推荐(0) 编辑
摘要: Postgres-XC:http://blog.csdn.net/huguangshanse00/article/details/9636621http://blog.163.com/digoal@126/blog/static/1638770402013332335933/http://blog.... 阅读全文
posted @ 2014-05-30 10:34 bielidefeng 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 全文检索:http://www.postgresql.org/docs/9.3/interactive/textsearch.htmlpostgres 切词:http://blog.163.com/digoal@126/blog/static/163877040201422410175698/ts_... 阅读全文
posted @ 2014-05-30 10:34 bielidefeng 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 继承:http://www.postgresql.org/docs/9.3/static/ddl-inherit.html分区表:http://www.postgresql.org/docs/9.3/static/ddl-partitioning.html分区表需要和trigger一起使用才可。CR... 阅读全文
posted @ 2014-05-30 10:34 bielidefeng 阅读(85) 评论(0) 推荐(0) 编辑
摘要: http://www.postgresql.org/docs/9.3/static/functions-admin.htmlGeneric File Access Functions:普通文件的访问方法:digoal=# select pg_ls_dir('.'); pg_ls_dir ... 阅读全文
posted @ 2014-05-30 10:34 bielidefeng 阅读(178) 评论(0) 推荐(0) 编辑
摘要: http://www.postgresql.org/docs/9.3/static/functions-comparisons.html#AEN18448Row-wise Comparison:row的定义:http://www.postgresql.org/docs/9.3/static/sql-... 阅读全文
posted @ 2014-05-30 10:34 bielidefeng 阅读(186) 评论(0) 推荐(0) 编辑
摘要: alter一个表的列的时候会出现rewrites表:比如添加一个有默认值的新列会rewrites重写表(即先vacuum full此表):http://my.oschina.net/Kenyon/blog/99757ctid来查看有默认值的新列:digoal=# select ctid,* from... 阅读全文
posted @ 2014-05-30 10:34 bielidefeng 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 1:vacuum full会lock table ,vacuum不会。2:vacuum只是将deadtuple的行的空间转换为能够使用的状态,vacuum full会将这些空间碎片后面的数据上移。http://www.postgresql.org/docs/9.2/static/routine-va... 阅读全文
posted @ 2014-05-30 10:34 bielidefeng 阅读(542) 评论(0) 推荐(0) 编辑
摘要: setof:返回多行结果集:digoal=# CREATE TYPE compfoo AS (f1 int, f2 text); CREATE TYPE digoal=# CREATE FUNCTION textst() RETURNS SETOF compfoo AS $$ digoal$# SE... 阅读全文
posted @ 2014-05-30 10:34 bielidefeng 阅读(330) 评论(0) 推荐(0) 编辑
摘要: http://www.postgresql.org/docs/9.3/static/functions-aggregate.htmlarray_agg:聚合函数,返回一个array,相当于oracle的wm_concat:digoal=# select array_agg(fooid) from f... 阅读全文
posted @ 2014-05-30 10:34 bielidefeng 阅读(78) 评论(0) 推荐(0) 编辑
摘要: create type:http://www.postgresql.org/docs/9.3/static/sql-createtype.htmlenum:http://www.postgresql.org/docs/9.3/static/datatype-enum.html,http://www.... 阅读全文
posted @ 2014-05-30 10:34 bielidefeng 阅读(263) 评论(0) 推荐(0) 编辑
摘要: http://www.postgresql.org/docs/9.3/static/tablefunc.html安装extensiontablefunc:digoal=# create extension tablefunc ; CREATE EXTENSION几个主要函数介绍:normal_ran... 阅读全文
posted @ 2014-05-30 10:34 bielidefeng 阅读(629) 评论(0) 推荐(0) 编辑