Skip to content

Commit

Permalink
Improve the documentation about the E-Maj installation. Separate the …
Browse files Browse the repository at this point in the history
…installation on Linux and Windows. Describe the use of the pgxn client. Distinguish more clearly the software installation and the extension creation or upgrade. Also improve the final message in the emaj_uninstall.sql script.
  • Loading branch information
beaud76 committed Aug 6, 2017
1 parent 3cdefab commit 6ace319
Show file tree
Hide file tree
Showing 11 changed files with 27 additions and 238 deletions.
109 changes: 0 additions & 109 deletions docs/en/download.rst

This file was deleted.

3 changes: 2 additions & 1 deletion docs/en/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Welcome to the E-Maj's documentation!
:maxdepth: 1
:caption: How to install E-Maj:

download
install
setup
upgrade
uninstall
Expand Down Expand Up @@ -72,6 +72,7 @@ Welcome to the E-Maj's documentation!
:caption: Appendix:

functionsList
content

Indices and tables
==================
Expand Down
8 changes: 4 additions & 4 deletions docs/en/setup.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
E-Maj extension setup
=====================

If E-Maj is already installed in the database, you may need to :doc:`upgrade <upgrade>` it.
If an extension already exists in the database, but in an old E-Maj version, you need to :doc:`upgrade <upgrade>` it.

Otherwise, some preliminary operations are required.

Expand All @@ -27,10 +27,10 @@ Optionally, if the E-Maj administrator wants to store E-Maj technical tables int
SET default_tablespace = <tablespace.name>;


E-Maj components installation
-----------------------------
Creating the E-Maj extension
----------------------------

The E-Maj components can now be installed into the database, by executing the SQL command::
The E-Maj extension can now be created into the database, by executing the SQL command::

CREATE EXTENSION emaj;

Expand Down
6 changes: 3 additions & 3 deletions docs/en/uninstall.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
E-Maj uninstall
===============
Uninstalling an E-Maj extension from a database
===============================================

To uninstall E-Maj from a database, the user must log on this database with *psql*, as a superuser.

Expand Down Expand Up @@ -32,5 +32,5 @@ The uninstallation script execution displays::
psql:sql/emaj_uninstall.sql:203: WARNING: emaj_uninstall: emaj_adm and emaj_viewer roles have been dropped.
DO
SET
>>> E-maj successfully uninstalled
>>> E-maj successfully uninstalled from this database

4 changes: 3 additions & 1 deletion docs/en/upgrade.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ Upgrade an existing E-Maj version
General approach
----------------

The process to update E-Maj version depends on the already installed E-Maj version.
The first step consists in :doc:`installing the new version of the E-Maj software <install>`. Keep the old E-Maj version directory at least until the end of the upgrade. Some files may be needed.

Then the process to upgrade an E-Maj extension in a database depends on the already installed E-Maj version.

For E-Maj versions prior 0.11.0, there is no particular update procedure. A simple E-Maj deletion and then re-installation has to be done. This approach can also be used for any E-Maj version, even though it has a drawback: all log contents are deleted, resulting in no further way to rollback or look at the recorded updates.

Expand Down
108 changes: 0 additions & 108 deletions docs/fr/download.rst

This file was deleted.

0 comments on commit 6ace319

Please sign in to comment.