随笔分类 -  postgresql

摘要: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 阅读(333) 评论(0) 推荐(0)
摘要:ubuntu追加空间http://blog.csdn.net/openme_openwrt/article/details/8099956-------------------播放视频avi等使用SMPLAYER播放器-----------终端目录的说明使用“/usr/.....”===>系统目录... 阅读全文
posted @ 2014-05-30 11:05 bielidefeng 阅读(479) 评论(0) 推荐(0)
摘要:----------ps -ewf显示所有进程,ps -a|grep ss指的是显示ss关键字的所有进程。top是动态显示进程。---------cat直接将文件内容显示在终端上。 ---------查看linux系统版本信息cat /etc/*release。---------从一台Linux机子... 阅读全文
posted @ 2014-05-30 11:04 bielidefeng 阅读(302) 评论(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 阅读(686) 评论(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 阅读(95) 评论(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 阅读(628) 评论(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 阅读(207) 评论(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 阅读(139) 评论(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 阅读(232) 评论(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 阅读(203) 评论(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 阅读(109) 评论(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 阅读(230) 评论(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 阅读(517) 评论(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 阅读(287) 评论(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 阅读(363) 评论(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 阅读(203) 评论(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 阅读(309) 评论(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 阅读(260) 评论(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 阅读(635) 评论(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 阅读(169) 评论(0) 推荐(0)