Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6cfa6cb

Browse files
committed
Fix CLUSTER.
1 parente6c714b commit6cfa6cb

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

‎src/backend/commands/cluster.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*
1515
*
1616
* IDENTIFICATION
17-
* $Header: /cvsroot/pgsql/src/backend/commands/cluster.c,v 1.21 1998/01/05 16:38:42 momjian Exp $
17+
* $Header: /cvsroot/pgsql/src/backend/commands/cluster.c,v 1.22 1998/01/10 05:19:03 momjian Exp $
1818
*
1919
*-------------------------------------------------------------------------
2020
*/
@@ -177,6 +177,9 @@ cluster(char oldrelname[], char oldindexname[])
177177
/* Destroy old heap (along with its index) and rename new. */
178178
heap_destroy_with_catalog(oldrelname);
179179

180+
CommitTransactionCommand();
181+
StartTransactionCommand();
182+
180183
renamerel(NewHeapName,saveoldrelname);
181184
TypeRename(NewHeapName,saveoldrelname);
182185

‎src/man/cluster.l

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.\" This is -*-nroff-*-
22
.\" XXX standard disclaimer belongs here....
3-
.\" $Header: /cvsroot/pgsql/src/man/Attic/cluster.l,v 1.2 1996/12/11 00:27:07 momjian Exp $
3+
.\" $Header: /cvsroot/pgsql/src/man/Attic/cluster.l,v 1.3 1998/01/10 05:19:14 momjian Exp $
44
.TH CLUSTER SQL 01/23/93 PostgreSQL PostgreSQL
55
.SH NAME
66
cluster\(em give storage clustering advice to Postgres
@@ -21,6 +21,10 @@ information. The clustering is static. In other words, if the class is
2121
updated, it may become unclustered. No attempt is made to keep new
2222
instances or updated tuples clustered. If desired, the user can
2323
recluster manually by issuing the command again.
24+
.PP
25+
The table is actually copied to temporary table in index order,
26+
then renamed back to the original name. For this reason, all
27+
grant permissions and other indexes are lost when cluster is performed.
2428
.SH EXAMPLE
2529
.nf
2630
/*

‎src/tools/RELEASE_CHANGES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ doc/TODO
88
doc/bug.template
99
make new /mirgration file
1010
update include/version.h after release
11+
update backend/parser/scan.l for non-flex sites

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp