Skip to content

Commit d06e280

Browse files
author
Antonin Houska
committed
Added note on another use case: changing tablespace of a table.
1 parent 415b3ce commit d06e280

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ Following are the most common reasons to rewrite a table:
2828
data to a new table like in 2). Again, you may need `pg_rewrite` to make
2929
the change smooth.
3030

31+
4. Move table into another tablespace.
32+
33+
`ALTER TABLE` command can do that, but it allows neither write nor read
34+
access to the table during the rewriting. With `pg_rewrite`, you only need
35+
to create the new table in the desired tablespace. The rest is identical
36+
to the other use cases.
37+
3138
Note that the following use cases can be combined in a single rewrited.
3239

3340

0 commit comments

Comments
 (0)