Permalink
Commits on Oct 18, 2017
  1. Refactor the way secondary log schemas are dropped. This fixes the ca…

    beaud76 committed Oct 18, 2017
    …se when a schema should be dropped once a log table is dropped by at group reset time or at an old mark deletion time. Refactor also the secondary log schemas creation. The CREATE_SCHEMA and DROP_SCHEMA elementary steps are now useless in alter group operations. So remove them from the alter planning.
Commits on Oct 3, 2017
  1. Fix two bogus calls to the _rlbk_error() function. The last parameter…

    beaud76 committed Oct 3, 2017
    … should be of type TEXT and not INTEGER. (Detected by plpgsql_check)
Commits on Sep 23, 2017
  1. Add an altr_rlbk_id column into the emaj_alter_plan table and populat…

    beaud76 committed Sep 23, 2017
    …e it with rollback identifier of the rollback operation that has canceled the step, if any. With this indicator, a subsequent rollback will not detect these alter steps as crossed over by the rollback.
Commits on Sep 20, 2017
  1. Create a new _cleanup_rollback_state() function. It is called by the …

    beaud76 committed Sep 20, 2017
    …user emaj_cleanup_rollback_state() function and by other functions. This avoids internal function calls to reach user callable functions.
Commits on Sep 18, 2017
  1. Create a _sum_log_stat_group() function to directly compute the sum o…

    beaud76 committed Sep 18, 2017
    …f log rows. This avoids calls to the emaj_log_stat_group() function by the _set_mark_groups(), _delete_intermediate_mark_group() and emaj_get_consolidable_rollbacks() functions. Adjust the 3 functions accordingly. Also improve the coding of the emaj_log_stat_group() function.
Commits on Sep 17, 2017
Commits on Aug 28, 2017
  1. Add the capability to remove a table from a tables group while the gr…

    beaud76 committed Aug 28, 2017
    …oup is in logging state. Once removed, the table will be excluded from all operations. Only logs remain accessible until the group is reset or all marks before the alter time are deleted.
Commits on Aug 25, 2017
  1. Add the capability to remove a sequence from a tables group while the…

    beaud76 committed Aug 24, 2017
    … group is in logging state. Move the code for the oldest marks deletion from the _delete_between_mark_group() into a separate _delete_before_mark_group() function.
Commits on Aug 21, 2017
  1. Add 1 column to the emaj_relation table, rel_time_range, to define th…

    beaud76 committed Aug 21, 2017
    …e validity time range of the row. This infrastructure change prepares future improvements. The exclusion constraint built on this column needs the btree_gist extension. Some adjustments need to be done on the use of the new rel_time_range column. But this will be done later.
Commits on Aug 18, 2017
  1. Add parameter names to SQL functions. This improves the code readabil…

    beaud76 committed Aug 18, 2017
    …ity for these 4 functions. This is now possible since 9.1- postgres version are not supported anymore.
  2. Declare the emaj_visible_param view as "security_barrier", now that t…

    beaud76 committed Aug 18, 2017
    …he oldest postgres supported version is 9.2. This enforces the security of the view. This commit also includes 3 forgotten file changes (in test/expected and tools) related to the previous commit.
  3. End of the Postgres version 9.1 support. This is imposed by the need …

    beaud76 committed Aug 18, 2017
    …for a range type for future improvements. This will also allow some minor improvements. Adjust several tools accordingly. Fix the _verify_all_groups() function. The check on the postgres version at group creation time was not coherent with the similar test in the upgrade script.
Commits on Aug 10, 2017
  1. Adjust the setup.sql test script: with the postgres 10 beta3 version,…

    beaud76 committed Aug 10, 2017
    … the keyword UNBOUNDED used in the declarative partitionning becomes MINVALUE or MAXVALUE.
Commits on Aug 6, 2017
  1. Improve the documentation about the E-Maj installation. Separate the …

    beaud76 committed Aug 6, 2017
    …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.
Commits on Aug 2, 2017
  1. Reformat the CHANGES.md file so that it will be correctly displayed o…

    beaud76 committed Aug 2, 2017
    …n the pgxn.org site. (to be checked at next version release)
  2. Prepare the next upgrade script and adjust the version ids in the sql…

    beaud76 committed Aug 2, 2017
    … test scripts and related tools.
  3. Setup the new 2.1.0 version

    beaud76 committed Aug 2, 2017
  4. Move the emaj.control file from the sql to the root directory. This i…

    beaud76 committed Aug 2, 2017
    …s where the Makefile is supposed to find it.
  5. In the emaj_prepare_parallel_rollback_test.sql script, improve the er…

    beaud76 committed Aug 2, 2017
    …ror message displayed when the "dblink_user_password" parameter is not set and propose the SQL statement to create it.
  6. In the emaj_uninstall.sql script, properly revoke the grants on table…

    beaud76 committed Aug 2, 2017
    …spaces for emaj_adm and emaj_viewer roles before dropping them. This was broken by commit 9f0433f. We now process all tablespaces and not only tspemaj. And the check on the remaining grants on functions now covers all functions and not only the dblink_connect_u() function. Also explicitely name the pg_catalog schema when accessing its tables.
Commits on Jul 31, 2017
Commits on Jul 30, 2017
  1. Improve the installation procedure when pgxn is used. Create a Makefi…

    beaud76 committed Jul 30, 2017
    …le in the emaj root directory (Thanks to Ronan Dunklau who provided this file ... a long time ago). Also move the emaj.control file from the sql to the emaj root directory so that the make command works. Improve the META.json file content by filling some optional fields. Also rename and reformat the README and the CHANGES files into .md.
Commits on Jul 21, 2017
  1. In recently created rollback functions returning a set of rows repres…

    beaud76 committed Jul 21, 2017
    …enting the function execution report, split the single notice row to report the number of processed tables and the number of sequences on two separate rows.
Commits on Jul 19, 2017
  1. In rollback functions, avoid to report warnings about alter operation…

    beaud76 committed Jul 19, 2017
    … steps that have been already reported by previous unlogged rollback function calls.
Commits on Jul 16, 2017
  1. Fix a bug in the _alter_plan() function. Remove duplicate group names…

    beaud76 committed Jul 16, 2017
    … in the error message when groups are in LOGGING state.
Commits on Jul 15, 2017
  1. Adjust a lot of error or warning messages to get more homogeneous mes…

    beaud76 committed Jul 15, 2017
    …sage patterns. Also improve some messages for clarity.