摘要: 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 阅读(322) 评论(0) 推荐(0)
摘要: ubuntu追加空间http://blog.csdn.net/openme_openwrt/article/details/8099956-------------------播放视频avi等使用SMPLAYER播放器-----------终端目录的说明使用“/usr/.....”===>系统目录... 阅读全文
posted @ 2014-05-30 11:05 bielidefeng 阅读(446) 评论(0) 推荐(0)
摘要: ----------ps -ewf显示所有进程,ps -a|grep ss指的是显示ss关键字的所有进程。top是动态显示进程。---------cat直接将文件内容显示在终端上。 ---------查看linux系统版本信息cat /etc/*release。---------从一台Linux机子... 阅读全文
posted @ 2014-05-30 11:04 bielidefeng 阅读(281) 评论(0) 推荐(0)
摘要: http://blog.163.com/digoal@126/blog/static/16387704020131410250983/http://www.cnblogs.com/gaojian/archive/2013/08/07/3243045.htmlPITR有三种方式:1:recovery_... 阅读全文
posted @ 2014-05-30 10:34 bielidefeng 阅读(486) 评论(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 阅读(671) 评论(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 阅读(270) 评论(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 阅读(86) 评论(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 阅读(352) 评论(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 阅读(612) 评论(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 阅读(185) 评论(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 阅读(191) 评论(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 阅读(185) 评论(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 阅读(97) 评论(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 阅读(127) 评论(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 阅读(212) 评论(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 阅读(216) 评论(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 阅读(98) 评论(0) 推荐(0)
摘要: http://blog.163.com/digoal@126/blog/static/163877040201111694355822/http://blog.163.com/digoal@126/blog/static/1638770402012520105855757/游标使用注意点:http:... 阅读全文
posted @ 2014-05-30 10:34 bielidefeng 阅读(302) 评论(0) 推荐(0)
摘要: btree & hash索引:http://www.kankanews.com/ICkengine/archives/127746.shtmlhttp://blog.csdn.net/tonyxf121/article/details/7976824http://www.uml.org.cn/sjj... 阅读全文
posted @ 2014-05-30 10:34 bielidefeng 阅读(170) 评论(0) 推荐(0)
摘要: http://blog.163.com/digoal@126/blog/static/1638770402014395222222/pg_current_xlog_insert_location函数:指的是写入wal buffer的位置pg_current_xlog_location函数:指的是已经... 阅读全文
posted @ 2014-05-30 10:34 bielidefeng 阅读(246) 评论(0) 推荐(0)
摘要: max_pool,num_init_children :通过pgpool连接进数据库的个数不能超过 num_init_children * max_pool 个connection_life_time:缓存的连接的过期时长。(超过num_init_children * max_pool后在一定空闲时... 阅读全文
posted @ 2014-05-30 10:34 bielidefeng 阅读(1357) 评论(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 阅读(617) 评论(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 阅读(174) 评论(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 阅读(167) 评论(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 阅读(304) 评论(0) 推荐(0)
摘要: http://my.oschina.net/Kenyon/blog/108850update tuple时会新增一个tuple然后将其隐藏。delete tuple时会隐藏tuple。postgres=# truncate table mmpostgres-# ;TRUNCATE TABLEpost... 阅读全文
posted @ 2014-05-30 10:33 bielidefeng 阅读(200) 评论(0) 推荐(0)
摘要: bgwriter:http://book.51cto.com/art/201201/313208.htmautovacuum:http://book.51cto.com/art/201201/313211.htmhttp://www.postgresql.org/docs/9.2/static/ro... 阅读全文
posted @ 2014-05-30 10:33 bielidefeng 阅读(84) 评论(0) 推荐(0)
摘要: http://blog.163.com/digoal@126/blog/static/1638770402013527920474/create extension pgstattuple;create extension pg_freespacemap;查看表文件路径 select * from ... 阅读全文
posted @ 2014-05-30 10:33 bielidefeng 阅读(111) 评论(0) 推荐(0)
摘要: page:是对block的描述,该如何存储8K数据。以下是Page的结构:http://blog.chinaunix.net/uid-24774106-id-3764606.html查看page:http://www.postgresql.org/docs/9.2/static/pageinspec... 阅读全文
posted @ 2014-05-30 10:33 bielidefeng 阅读(84) 评论(0) 推荐(0)
摘要: checkpoint参数描述:checkpoint的时候会将所有的脏数据都flush到磁盘上checkpoint_timeout:两次checkpoint间隔时长checkpoint_segments:两次checkpoint间隔最大的xlog日志文件数量(指的是pg_xlog下的文件:000000... 阅读全文
posted @ 2014-05-30 10:33 bielidefeng 阅读(588) 评论(0) 推荐(0)