Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
006fd925
G
Gpdb
项目概览
Greenplum
/
Gpdb
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gpdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
006fd925
编写于
3月 14, 1998
作者:
B
Bruce Momjian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Cluster fixup.
上级
3674ccdf
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
7 addition
and
6 deletion
+7
-6
src/man/cluster.l
src/man/cluster.l
+7
-6
未找到文件。
src/man/cluster.l
浏览文件 @
006fd925
.\" This is -*-nroff-*-
.\" This is -*-nroff-*-
.\" XXX standard disclaimer belongs here....
.\" XXX standard disclaimer belongs here....
.\" $Header: /cvsroot/pgsql/src/man/Attic/cluster.l,v 1.
5 1998/03/14 21:57:56
momjian Exp $
.\" $Header: /cvsroot/pgsql/src/man/Attic/cluster.l,v 1.
6 1998/03/14 22:55:21
momjian Exp $
.TH CLUSTER SQL 01/23/93 PostgreSQL PostgreSQL
.TH CLUSTER SQL 01/23/93 PostgreSQL PostgreSQL
.SH NAME
.SH NAME
cluster - give storage clustering advice to Postgres
cluster - give storage clustering advice to Postgres
...
@@ -48,11 +48,12 @@ unordered, the entries are on random pages, so there is one disk page
...
@@ -48,11 +48,12 @@ unordered, the entries are on random pages, so there is one disk page
retrieved for every row moved. PostgreSQL has a cache, but the majority
retrieved for every row moved. PostgreSQL has a cache, but the majority
of a big table will not fit in the cache.
of a big table will not fit in the cache.
.PP
.PP
Another way is to use SELECT ... INTO TABLE temp FROM ... This uses the
Another way is to use SELECT ... INTO TABLE temp FROM ...ORDER BY ...
PostgreSQL sorting code, and is much faster for unordered data. You
This uses the PostgreSQL sorting code in ORDER BY to match the index,
then drop the old table, use ALTER TABLE RENAME to rename 'temp' to the
and is much faster for unordered data. You then drop the old table, use
old name, and recreate the indexes. From then on, CLUSTER should be
ALTER TABLE RENAME to rename 'temp' to the old name, and recreate the
fast because most of the heap data is ordered.
indexes. From then on, CLUSTER should be fast because most of the heap
data has been already ordered.
.SH EXAMPLE
.SH EXAMPLE
.nf
.nf
/*
/*
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录