Skip to content

Commit ef572f7

Browse files
author
Antonin Houska
committed
Updated NEWS (and also README).
1 parent c5acdf4 commit ef572f7

File tree

2 files changed

+32
-3
lines changed

2 files changed

+32
-3
lines changed

NEWS

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
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+
123
Release 1.1.1
224
=============
325

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ well as a new table name for the source table. For example:
126126
SELECT rewrite_table('measurement', 'measurement_aux', 'measurement_old');
127127
```
128128

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
130130
it will apply to `measurement_aux` all the data changes (INSERT, UPDATE,
131131
DELETE) that took place in `measurement` during the copying. Next, it will
132132
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.)
215215

216216
# Limitations
217217

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.
220227

221228
# Configuration
222229

0 commit comments

Comments
 (0)