摘要:
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)
摘要:
继承: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)
摘要:
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)
摘要:
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)
摘要:
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)

浙公网安备 33010602011771号