Skip to content

Commit

Permalink
In the emaj_prepare_parallel_rollback_test.sql script, improve the er…
Browse files Browse the repository at this point in the history
…ror message displayed when the "dblink_user_password" parameter is not set and propose the SQL statement to create it.
  • Loading branch information
beaud76 committed Aug 2, 2017
1 parent 030c8a8 commit 34ea01d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sql/emaj_prepare_parallel_rollback_test.sql
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ $do$
-- check that the dblink connection parameter is defined
PERFORM 0 FROM emaj.emaj_param WHERE param_key = 'dblink_user_password';
IF NOT FOUND THEN
RAISE EXCEPTION 'E-Maj parallel rollback test setup: the "dblink_user_password" parameter is unknown in emaj_param';
RAISE EXCEPTION 'E-Maj parallel rollback test setup: the "dblink_user_password" parameter is unknown in emaj_param. Please create it with a statement like INSERT INTO emaj.emaj_param (param_key, param_value_text) VALUES (''dblink_user_password'',''user=<user> password=<password>'');.';
END IF;
-- check the max_prepared_transactions GUC value
IF current_setting('max_prepared_transactions')::int <= 1 THEN
Expand Down

0 comments on commit 34ea01d

Please sign in to comment.