Skip to content

Commit

Permalink
In the emaj_group_def table, a priority change for a table or a seque…
Browse files Browse the repository at this point in the history
…nce can be taken into account by the emaj_alter_group() function while the related group is in LOGGING state.
  • Loading branch information
beaud76 committed Apr 20, 2017
1 parent 34b194b commit 133e6a0
Show file tree
Hide file tree
Showing 36 changed files with 2,947 additions and 2,148 deletions.
3 changes: 3 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ E-Maj - Release notes
<NEXT_VERSION>
------
Enhancements:
- in the emaj_group_def table, a priority change for a table or a sequence
can be taken into account by the emaj_alter_group() function while the
related group is in LOGGING state.
- add a new emaj_alter_groups() function that can alter several groups at
once.
- it is now possible to create and manage empty tables groups. That may be
Expand Down
84 changes: 43 additions & 41 deletions docs/en/alterGroups.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,45 +54,47 @@ But the previous method has several drawbacks:

However, some actions are possible while the tables groups are in *LOGGING* state. The following table lists the allowed actions.

+-------------------------------------+---------------+-------------------+
| Action | LOGGING Group | Method |
+=====================================+===============+===================+
| Change the groupe ownership | No | |
+-------------------------------------+---------------+-------------------+
| Change the log schema suffix | No | |
+-------------------------------------+---------------+-------------------+
| Change the E-Maj names prefix | No | |
+-------------------------------------+---------------+-------------------+
| Change the log data tablespace | No | |
+-------------------------------------+---------------+-------------------+
| Change the log index tablespace | No | |
+-------------------------------------+---------------+-------------------+
| Change the E-Maj priority | No | |
+-------------------------------------+---------------+-------------------+
| Remove a table from a group | No | |
+-------------------------------------+---------------+-------------------+
| Remove a sequence from a group | No | |
+-------------------------------------+---------------+-------------------+
| Add a table to a group | No | |
+-------------------------------------+---------------+-------------------+
| Add a sequence to a group | No | |
+-------------------------------------+---------------+-------------------+
| Repair a table or a sequence | No | |
+-------------------------------------+---------------+-------------------+
| Rename a table | No | |
+-------------------------------------+---------------+-------------------+
| Rename a sequence | No | |
+-------------------------------------+---------------+-------------------+
| Change the schema of a table | No | |
+-------------------------------------+---------------+-------------------+
| Change the schema of a sequence | No | |
+-------------------------------------+---------------+-------------------+
| Rename a table’s column | No | |
+-------------------------------------+---------------+-------------------+
| Change a table’s structure | No | |
+-------------------------------------+---------------+-------------------+
| Other forms of ALTER TABLE | Yes | No E-Maj impact |
+-------------------------------------+---------------+-------------------+
| Other forms of ALTER SEQUENCE | Yes | No E-Maj impact |
+-------------------------------------+---------------+-------------------+
+-------------------------------------+---------------+--------------------+
| Action | LOGGING Group | Method |
+=====================================+===============+====================+
| Change the groupe ownership | No | |
+-------------------------------------+---------------+--------------------+
| Change the log schema suffix | No | |
+-------------------------------------+---------------+--------------------+
| Change the E-Maj names prefix | No | |
+-------------------------------------+---------------+--------------------+
| Change the log data tablespace | No | |
+-------------------------------------+---------------+--------------------+
| Change the log index tablespace | No | |
+-------------------------------------+---------------+--------------------+
| Change the E-Maj priority | Yes | \(1) |
+-------------------------------------+---------------+--------------------+
| Remove a table from a group | No | |
+-------------------------------------+---------------+--------------------+
| Remove a sequence from a group | No | |
+-------------------------------------+---------------+--------------------+
| Add a table to a group | No | |
+-------------------------------------+---------------+--------------------+
| Add a sequence to a group | No | |
+-------------------------------------+---------------+--------------------+
| Repair a table or a sequence | No | |
+-------------------------------------+---------------+--------------------+
| Rename a table | No | |
+-------------------------------------+---------------+--------------------+
| Rename a sequence | No | |
+-------------------------------------+---------------+--------------------+
| Change the schema of a table | No | |
+-------------------------------------+---------------+--------------------+
| Change the schema of a sequence | No | |
+-------------------------------------+---------------+--------------------+
| Rename a table’s column | No | |
+-------------------------------------+---------------+--------------------+
| Change a table’s structure | No | |
+-------------------------------------+---------------+--------------------+
| Other forms of ALTER TABLE | Yes | No E-Maj impact |
+-------------------------------------+---------------+--------------------+
| Other forms of ALTER SEQUENCE | Yes | No E-Maj impact |
+-------------------------------------+---------------+--------------------+

(1) : modify the *emaj_group_def* table, then call one of the *emaj_alter_group()* or *emaj_alter_groups()* functions.

84 changes: 43 additions & 41 deletions docs/fr/alterGroups.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,45 +54,47 @@ Mais la méthode précédente présente plusieurs inconvénients :

Néanmoins certaines actions sont possibles sur des groupes de tables maintenus en état *LOGGING*. Le tableau suivant liste les actions possibles et leurs conditions de réalisation.

+-------------------------------------+----------------+-------------------+
| Action | Groupe LOGGING | Méthode |
+=====================================+================+===================+
| Changer le groupe d'appartenance | Non | |
+-------------------------------------+----------------+-------------------+
| Changer le suffixe du schéma de log | Non | |
+-------------------------------------+----------------+-------------------+
| Changer le préfixe des noms emaj | Non | |
+-------------------------------------+----------------+-------------------+
| Changer le tablespace de log data | Non | |
+-------------------------------------+----------------+-------------------+
| Changer le tablespace de log index | Non | |
+-------------------------------------+----------------+-------------------+
| Changer la priorité E-Maj | Non | |
+-------------------------------------+----------------+-------------------+
| Oter une table d’un groupe | Non | |
+-------------------------------------+----------------+-------------------+
| Oter une séquence d’un groupe | Non | |
+-------------------------------------+----------------+-------------------+
| Ajouter une table à un groupe | Non | |
+-------------------------------------+----------------+-------------------+
| Ajouter une séquence à un groupe | Non | |
+-------------------------------------+----------------+-------------------+
| Réparer une table ou une séquence | Non | |
+-------------------------------------+----------------+-------------------+
| Renommer une table | Non | |
+-------------------------------------+----------------+-------------------+
| Renommer une séquence | Non | |
+-------------------------------------+----------------+-------------------+
| Changer le schéma d’une table | Non | |
+-------------------------------------+----------------+-------------------+
| Changer le schéma d’une séquence | Non | |
+-------------------------------------+----------------+-------------------+
| Renommer une colonne d’une table | Non | |
+-------------------------------------+----------------+-------------------+
| Changer la structure d’une table | Non | |
+-------------------------------------+----------------+-------------------+
| Autres formes d’ALTER TABLE | Oui | Sans impact E-Maj |
+-------------------------------------+----------------+-------------------+
| Autres formes d’ALTER SEQUENCE | Oui | Sans impact E-Maj |
+-------------------------------------+----------------+-------------------+
+-------------------------------------+----------------+--------------------+
| Action | Groupe LOGGING | Méthode |
+=====================================+================+====================+
| Changer le groupe d'appartenance | Non | |
+-------------------------------------+----------------+--------------------+
| Changer le suffixe du schéma de log | Non | |
+-------------------------------------+----------------+--------------------+
| Changer le préfixe des noms emaj | Non | |
+-------------------------------------+----------------+--------------------+
| Changer le tablespace de log data | Non | |
+-------------------------------------+----------------+--------------------+
| Changer le tablespace de log index | Non | |
+-------------------------------------+----------------+--------------------+
| Changer la priorité E-Maj | Oui | \(1) |
+-------------------------------------+----------------+--------------------+
| Oter une table d’un groupe | Non | |
+-------------------------------------+----------------+--------------------+
| Oter une séquence d’un groupe | Non | |
+-------------------------------------+----------------+--------------------+
| Ajouter une table à un groupe | Non | |
+-------------------------------------+----------------+--------------------+
| Ajouter une séquence à un groupe | Non | |
+-------------------------------------+----------------+--------------------+
| Réparer une table ou une séquence | Non | |
+-------------------------------------+----------------+--------------------+
| Renommer une table | Non | |
+-------------------------------------+----------------+--------------------+
| Renommer une séquence | Non | |
+-------------------------------------+----------------+--------------------+
| Changer le schéma d’une table | Non | |
+-------------------------------------+----------------+--------------------+
| Changer le schéma d’une séquence | Non | |
+-------------------------------------+----------------+--------------------+
| Renommer une colonne d’une table | Non | |
+-------------------------------------+----------------+--------------------+
| Changer la structure d’une table | Non | |
+-------------------------------------+----------------+--------------------+
| Autres formes d’ALTER TABLE | Oui | Sans impact E-Maj |
+-------------------------------------+----------------+--------------------+
| Autres formes d’ALTER SEQUENCE | Oui | Sans impact E-Maj |
+-------------------------------------+----------------+--------------------+

(1) : modifier la table *emaj_group_def* puis appeler l’une des fonctions *emaj_alter_group()* ou *emaj_alter_groups()*.

0 comments on commit 133e6a0

Please sign in to comment.