File tree Expand file tree Collapse file tree 2 files changed +32
-3
lines changed Expand file tree Collapse file tree 2 files changed +32
-3
lines changed Original file line number Diff line number Diff line change
1
+ Release 1.2
2
+ ===========
3
+
4
+ 1. This release makes the extension useful in more use cases.
5
+
6
+ Besides turning a non-partitioned table into a partitioned one, it can be
7
+ used to change 1) data type of column(s), 2) order of columns, 3)
8
+ tablespace.
9
+
10
+ 2. A single function `rewrite_table()` is used now to handle all the use
11
+ cases.
12
+
13
+ 3. Constraints are handled in a more convenient way.
14
+
15
+ The extension now takes care of creating the constrains on the target
16
+ table according to the source table. The user only needs to validate the
17
+ constrants after the rewriting has finished.
18
+
19
+ Unlike the previous release, the rewritten table can be referenced by
20
+ foreign key constraints.
21
+
22
+
1
23
Release 1.1.1
2
24
=============
3
25
Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ well as a new table name for the source table. For example:
126
126
SELECT rewrite_table('measurement', 'measurement_aux', 'measurement_old');
127
127
```
128
128
129
- The call will first copy all rows from ` measurement ` to ` measurement_aux ` . The
129
+ The call will first copy all rows from ` measurement ` to ` measurement_aux ` . Then
130
130
it will apply to ` measurement_aux ` all the data changes (INSERT, UPDATE,
131
131
DELETE) that took place in ` measurement ` during the copying. Next, it will
132
132
lock ` measurement ` so that neither read nor write access is possible. Finally
@@ -215,8 +215,15 @@ incorporated into the partitioned table, otherwise they'd get lost.)
215
215
216
216
# Limitations
217
217
218
- If the target table is partitioned, it's not allowed to have foreign
219
- tables as partitions.
218
+ 1 . If the target table is partitioned, it's not allowed to have foreign
219
+ tables as partitions.
220
+
221
+ 2 . Indexes are not renamed.
222
+
223
+ While the target table (` measurement_aux ` above) is renamed to the source
224
+ table (` measurement ` ), its indexes are not renamed to match the source
225
+ table. If you consider it a problem, please use the ` ALTER INDEX ` command
226
+ to rename them. This operation blocks neither reads nor writes.
220
227
221
228
# Configuration
222
229
You can’t perform that action at this time.
0 commit comments