摘要:
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
阅读(275)
评论(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
阅读(89)
评论(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
阅读(354)
评论(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
阅读(619)
评论(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
阅读(190)
评论(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
阅读(192)
评论(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
阅读(191)
评论(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
阅读(98)
评论(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
阅读(131)
评论(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
阅读(222)
评论(0)
推荐(0)

浙公网安备 33010602011771号