Skip to content

Commit

Permalink
Improve the checks on groups content performed at emaj_create_group()…
Browse files Browse the repository at this point in the history
… and emaj_alter_group() time.

Replace the _check_class() function by a new _check_group_content() function. This function performs similar checks but in a more efficient set oriented manner. It also checks that no application table belongs to an E-Maj secondary schema. When a check fails, it now returns the list of faulting tables and not only the first detected.
  • Loading branch information
beaud76 committed Mar 19, 2013
1 parent 4283709 commit 181286d
Show file tree
Hide file tree
Showing 41 changed files with 1,280 additions and 1,202 deletions.
1 change: 1 addition & 0 deletions CHANGES
Expand Up @@ -19,6 +19,7 @@ Enhancements:
it.
- at create_group() or alter_group() time, a check is added to be sure no
temporary tables and no unlogged tables are recorded into tables groups.
Some other tests on tables groups content have been enforced too.
- the default value of the 'history_retention' parameter is now 1 year
(previously 1 month).
- a new emaj_gen_sql_groups() function generates a sql script replaying
Expand Down
164 changes: 88 additions & 76 deletions sql/emaj--next_version.sql

Large diffs are not rendered by default.

164 changes: 88 additions & 76 deletions sql/emaj.sql

Large diffs are not rendered by default.

164 changes: 88 additions & 76 deletions sql/emaj_src.sql

Large diffs are not rendered by default.

52 changes: 26 additions & 26 deletions test/83/expected/adm1.out
Expand Up @@ -26,7 +26,7 @@ select count(*) from emaj.emaj_hist;
select count(*) from emaj.emaj_group_def;
count
-------
25
27
(1 row)

select count(*) from emaj.emaj_group;
Expand Down Expand Up @@ -212,65 +212,65 @@ NOTICE: table "myschema1_myTbl3_log" does not exist, skipping
CONTEXT: SQL statement "DROP TABLE IF EXISTS "emajC"."myschema1_myTbl3_log""
PL/pgSQL function "_create_tbl" line 104 at EXECUTE statement
SQL statement "SELECT emaj._create_tbl( $1 , $2 , $3 , coalesce( $4 , $5 ), coalesce( $6 , $5 ), $7 )"
PL/pgSQL function "emaj_create_group" line 88 at PERFORM
PL/pgSQL function "emaj_create_group" line 73 at PERFORM
PL/pgSQL function "emaj_create_group" line 6 at RETURN
NOTICE: trigger "myschema1_myTbl3_emaj_log_trg" for table "myTbl3" does not exist, skipping
CONTEXT: SQL statement "DROP TRIGGER IF EXISTS "myschema1_myTbl3_emaj_log_trg" ON myschema1."myTbl3""
PL/pgSQL function "_create_tbl" line 163 at EXECUTE statement
SQL statement "SELECT emaj._create_tbl( $1 , $2 , $3 , coalesce( $4 , $5 ), coalesce( $6 , $5 ), $7 )"
PL/pgSQL function "emaj_create_group" line 88 at PERFORM
PL/pgSQL function "emaj_create_group" line 73 at PERFORM
PL/pgSQL function "emaj_create_group" line 6 at RETURN
NOTICE: table "myschema1_mytbl1_log" does not exist, skipping
CONTEXT: SQL statement "DROP TABLE IF EXISTS emaj.myschema1_mytbl1_log"
PL/pgSQL function "_create_tbl" line 104 at EXECUTE statement
SQL statement "SELECT emaj._create_tbl( $1 , $2 , $3 , coalesce( $4 , $5 ), coalesce( $6 , $5 ), $7 )"
PL/pgSQL function "emaj_create_group" line 88 at PERFORM
PL/pgSQL function "emaj_create_group" line 73 at PERFORM
PL/pgSQL function "emaj_create_group" line 6 at RETURN
NOTICE: trigger "myschema1_mytbl1_emaj_log_trg" for table "mytbl1" does not exist, skipping
CONTEXT: SQL statement "DROP TRIGGER IF EXISTS myschema1_mytbl1_emaj_log_trg ON myschema1.mytbl1"
PL/pgSQL function "_create_tbl" line 163 at EXECUTE statement
SQL statement "SELECT emaj._create_tbl( $1 , $2 , $3 , coalesce( $4 , $5 ), coalesce( $6 , $5 ), $7 )"
PL/pgSQL function "emaj_create_group" line 88 at PERFORM
PL/pgSQL function "emaj_create_group" line 73 at PERFORM
PL/pgSQL function "emaj_create_group" line 6 at RETURN
NOTICE: table "myschema1_mytbl4_log" does not exist, skipping
CONTEXT: SQL statement "DROP TABLE IF EXISTS emaj.myschema1_mytbl4_log"
PL/pgSQL function "_create_tbl" line 104 at EXECUTE statement
SQL statement "SELECT emaj._create_tbl( $1 , $2 , $3 , coalesce( $4 , $5 ), coalesce( $6 , $5 ), $7 )"
PL/pgSQL function "emaj_create_group" line 88 at PERFORM
PL/pgSQL function "emaj_create_group" line 73 at PERFORM
PL/pgSQL function "emaj_create_group" line 6 at RETURN
NOTICE: trigger "myschema1_mytbl4_emaj_log_trg" for table "mytbl4" does not exist, skipping
CONTEXT: SQL statement "DROP TRIGGER IF EXISTS myschema1_mytbl4_emaj_log_trg ON myschema1.mytbl4"
PL/pgSQL function "_create_tbl" line 163 at EXECUTE statement
SQL statement "SELECT emaj._create_tbl( $1 , $2 , $3 , coalesce( $4 , $5 ), coalesce( $6 , $5 ), $7 )"
PL/pgSQL function "emaj_create_group" line 88 at PERFORM
PL/pgSQL function "emaj_create_group" line 73 at PERFORM
PL/pgSQL function "emaj_create_group" line 6 at RETURN
NOTICE: table "myschema1_mytbl2_log" does not exist, skipping
CONTEXT: SQL statement "DROP TABLE IF EXISTS emaj.myschema1_mytbl2_log"
PL/pgSQL function "_create_tbl" line 104 at EXECUTE statement
SQL statement "SELECT emaj._create_tbl( $1 , $2 , $3 , coalesce( $4 , $5 ), coalesce( $6 , $5 ), $7 )"
PL/pgSQL function "emaj_create_group" line 88 at PERFORM
PL/pgSQL function "emaj_create_group" line 73 at PERFORM
PL/pgSQL function "emaj_create_group" line 6 at RETURN
NOTICE: trigger "myschema1_mytbl2_emaj_log_trg" for table "mytbl2" does not exist, skipping
CONTEXT: SQL statement "DROP TRIGGER IF EXISTS myschema1_mytbl2_emaj_log_trg ON myschema1.mytbl2"
PL/pgSQL function "_create_tbl" line 163 at EXECUTE statement
SQL statement "SELECT emaj._create_tbl( $1 , $2 , $3 , coalesce( $4 , $5 ), coalesce( $6 , $5 ), $7 )"
PL/pgSQL function "emaj_create_group" line 88 at PERFORM
PL/pgSQL function "emaj_create_group" line 73 at PERFORM
PL/pgSQL function "emaj_create_group" line 6 at RETURN
WARNING: _create_tbl: table myschema1.mytbl2 has triggers (mytbl2trg). Verify the compatibility with emaj rollback operations (in particular if triggers update one or several other tables). Triggers may have to be manualy disabled before rollback.
CONTEXT: SQL statement "SELECT emaj._create_tbl( $1 , $2 , $3 , coalesce( $4 , $5 ), coalesce( $6 , $5 ), $7 )"
PL/pgSQL function "emaj_create_group" line 88 at PERFORM
PL/pgSQL function "emaj_create_group" line 73 at PERFORM
PL/pgSQL function "emaj_create_group" line 6 at RETURN
NOTICE: table "myschema1_mytbl2b_log" does not exist, skipping
CONTEXT: SQL statement "DROP TABLE IF EXISTS emajb.myschema1_mytbl2b_log"
PL/pgSQL function "_create_tbl" line 104 at EXECUTE statement
SQL statement "SELECT emaj._create_tbl( $1 , $2 , $3 , coalesce( $4 , $5 ), coalesce( $6 , $5 ), $7 )"
PL/pgSQL function "emaj_create_group" line 88 at PERFORM
PL/pgSQL function "emaj_create_group" line 73 at PERFORM
PL/pgSQL function "emaj_create_group" line 6 at RETURN
NOTICE: trigger "myschema1_mytbl2b_emaj_log_trg" for table "mytbl2b" does not exist, skipping
CONTEXT: SQL statement "DROP TRIGGER IF EXISTS myschema1_mytbl2b_emaj_log_trg ON myschema1.mytbl2b"
PL/pgSQL function "_create_tbl" line 163 at EXECUTE statement
SQL statement "SELECT emaj._create_tbl( $1 , $2 , $3 , coalesce( $4 , $5 ), coalesce( $6 , $5 ), $7 )"
PL/pgSQL function "emaj_create_group" line 88 at PERFORM
PL/pgSQL function "emaj_create_group" line 73 at PERFORM
PL/pgSQL function "emaj_create_group" line 6 at RETURN
emaj_create_group
-------------------
Expand All @@ -288,68 +288,68 @@ NOTICE: table "myschema2_mytbl1_log" does not exist, skipping
CONTEXT: SQL statement "DROP TABLE IF EXISTS emaj.myschema2_mytbl1_log"
PL/pgSQL function "_create_tbl" line 104 at EXECUTE statement
SQL statement "SELECT emaj._create_tbl( $1 , $2 , $3 , coalesce( $4 , $5 ), coalesce( $6 , $5 ), $7 )"
PL/pgSQL function "emaj_create_group" line 88 at PERFORM
PL/pgSQL function "emaj_create_group" line 73 at PERFORM
NOTICE: trigger "myschema2_mytbl1_emaj_log_trg" for table "mytbl1" does not exist, skipping
CONTEXT: SQL statement "DROP TRIGGER IF EXISTS myschema2_mytbl1_emaj_log_trg ON myschema2.mytbl1"
PL/pgSQL function "_create_tbl" line 163 at EXECUTE statement
SQL statement "SELECT emaj._create_tbl( $1 , $2 , $3 , coalesce( $4 , $5 ), coalesce( $6 , $5 ), $7 )"
PL/pgSQL function "emaj_create_group" line 88 at PERFORM
PL/pgSQL function "emaj_create_group" line 73 at PERFORM
NOTICE: table "myschema2_mytbl2_log" does not exist, skipping
CONTEXT: SQL statement "DROP TABLE IF EXISTS emaj.myschema2_mytbl2_log"
PL/pgSQL function "_create_tbl" line 104 at EXECUTE statement
SQL statement "SELECT emaj._create_tbl( $1 , $2 , $3 , coalesce( $4 , $5 ), coalesce( $6 , $5 ), $7 )"
PL/pgSQL function "emaj_create_group" line 88 at PERFORM
PL/pgSQL function "emaj_create_group" line 73 at PERFORM
NOTICE: trigger "myschema2_mytbl2_emaj_log_trg" for table "mytbl2" does not exist, skipping
CONTEXT: SQL statement "DROP TRIGGER IF EXISTS myschema2_mytbl2_emaj_log_trg ON myschema2.mytbl2"
PL/pgSQL function "_create_tbl" line 163 at EXECUTE statement
SQL statement "SELECT emaj._create_tbl( $1 , $2 , $3 , coalesce( $4 , $5 ), coalesce( $6 , $5 ), $7 )"
PL/pgSQL function "emaj_create_group" line 88 at PERFORM
PL/pgSQL function "emaj_create_group" line 73 at PERFORM
NOTICE: table "myschema2_myTbl3_log" does not exist, skipping
CONTEXT: SQL statement "DROP TABLE IF EXISTS "emajC"."myschema2_myTbl3_log""
PL/pgSQL function "_create_tbl" line 104 at EXECUTE statement
SQL statement "SELECT emaj._create_tbl( $1 , $2 , $3 , coalesce( $4 , $5 ), coalesce( $6 , $5 ), $7 )"
PL/pgSQL function "emaj_create_group" line 88 at PERFORM
PL/pgSQL function "emaj_create_group" line 73 at PERFORM
NOTICE: trigger "myschema2_myTbl3_emaj_log_trg" for table "myTbl3" does not exist, skipping
CONTEXT: SQL statement "DROP TRIGGER IF EXISTS "myschema2_myTbl3_emaj_log_trg" ON myschema2."myTbl3""
PL/pgSQL function "_create_tbl" line 163 at EXECUTE statement
SQL statement "SELECT emaj._create_tbl( $1 , $2 , $3 , coalesce( $4 , $5 ), coalesce( $6 , $5 ), $7 )"
PL/pgSQL function "emaj_create_group" line 88 at PERFORM
PL/pgSQL function "emaj_create_group" line 73 at PERFORM
NOTICE: table "myschema2_mytbl4_log" does not exist, skipping
CONTEXT: SQL statement "DROP TABLE IF EXISTS emaj.myschema2_mytbl4_log"
PL/pgSQL function "_create_tbl" line 104 at EXECUTE statement
SQL statement "SELECT emaj._create_tbl( $1 , $2 , $3 , coalesce( $4 , $5 ), coalesce( $6 , $5 ), $7 )"
PL/pgSQL function "emaj_create_group" line 88 at PERFORM
PL/pgSQL function "emaj_create_group" line 73 at PERFORM
NOTICE: trigger "myschema2_mytbl4_emaj_log_trg" for table "mytbl4" does not exist, skipping
CONTEXT: SQL statement "DROP TRIGGER IF EXISTS myschema2_mytbl4_emaj_log_trg ON myschema2.mytbl4"
PL/pgSQL function "_create_tbl" line 163 at EXECUTE statement
SQL statement "SELECT emaj._create_tbl( $1 , $2 , $3 , coalesce( $4 , $5 ), coalesce( $6 , $5 ), $7 )"
PL/pgSQL function "emaj_create_group" line 88 at PERFORM
PL/pgSQL function "emaj_create_group" line 73 at PERFORM
NOTICE: table "myschema2_mytbl5_log" does not exist, skipping
CONTEXT: SQL statement "DROP TABLE IF EXISTS emaj.myschema2_mytbl5_log"
PL/pgSQL function "_create_tbl" line 104 at EXECUTE statement
SQL statement "SELECT emaj._create_tbl( $1 , $2 , $3 , coalesce( $4 , $5 ), coalesce( $6 , $5 ), $7 )"
PL/pgSQL function "emaj_create_group" line 88 at PERFORM
PL/pgSQL function "emaj_create_group" line 73 at PERFORM
NOTICE: trigger "myschema2_mytbl5_emaj_log_trg" for table "mytbl5" does not exist, skipping
CONTEXT: SQL statement "DROP TRIGGER IF EXISTS myschema2_mytbl5_emaj_log_trg ON myschema2.mytbl5"
PL/pgSQL function "_create_tbl" line 163 at EXECUTE statement
SQL statement "SELECT emaj._create_tbl( $1 , $2 , $3 , coalesce( $4 , $5 ), coalesce( $6 , $5 ), $7 )"
PL/pgSQL function "emaj_create_group" line 88 at PERFORM
PL/pgSQL function "emaj_create_group" line 73 at PERFORM
NOTICE: table "myschema2_mytbl6_log" does not exist, skipping
CONTEXT: SQL statement "DROP TABLE IF EXISTS emaj.myschema2_mytbl6_log"
PL/pgSQL function "_create_tbl" line 104 at EXECUTE statement
SQL statement "SELECT emaj._create_tbl( $1 , $2 , $3 , coalesce( $4 , $5 ), coalesce( $6 , $5 ), $7 )"
PL/pgSQL function "emaj_create_group" line 88 at PERFORM
PL/pgSQL function "emaj_create_group" line 73 at PERFORM
NOTICE: trigger "myschema2_mytbl6_emaj_log_trg" for table "mytbl6" does not exist, skipping
CONTEXT: SQL statement "DROP TRIGGER IF EXISTS myschema2_mytbl6_emaj_log_trg ON myschema2.mytbl6"
PL/pgSQL function "_create_tbl" line 163 at EXECUTE statement
SQL statement "SELECT emaj._create_tbl( $1 , $2 , $3 , coalesce( $4 , $5 ), coalesce( $6 , $5 ), $7 )"
PL/pgSQL function "emaj_create_group" line 88 at PERFORM
PL/pgSQL function "emaj_create_group" line 73 at PERFORM
WARNING: _check_fk_groups: Foreign key mytbl6_col61_fkey, from table myschema2.mytbl6, references myschema2.mytbl7 that is outside groups (myGroup2).
CONTEXT: SQL statement "SELECT emaj._check_fk_groups (array[ $1 ])"
PL/pgSQL function "emaj_create_group" line 114 at PERFORM
PL/pgSQL function "emaj_create_group" line 99 at PERFORM
WARNING: _check_fk_groups: table myschema2.mytbl6 is referenced by foreign key mytbl8_col81_fkey from table myschema2.mytbl8 that is outside groups (myGroup2).
CONTEXT: SQL statement "SELECT emaj._check_fk_groups (array[ $1 ])"
PL/pgSQL function "emaj_create_group" line 114 at PERFORM
PL/pgSQL function "emaj_create_group" line 99 at PERFORM
emaj_create_group
-------------------
8
Expand Down
28 changes: 14 additions & 14 deletions test/83/expected/adm2.out
Expand Up @@ -529,22 +529,22 @@ NOTICE: table "phil's schema3_myTbl2\_log" does not exist, skipping
CONTEXT: SQL statement "DROP TABLE IF EXISTS emaj."phil's schema3_myTbl2\_log""
PL/pgSQL function "_create_tbl" line 104 at EXECUTE statement
SQL statement "SELECT emaj._create_tbl( $1 , $2 , $3 , coalesce( $4 , $5 ), coalesce( $6 , $5 ), $7 )"
PL/pgSQL function "emaj_create_group" line 88 at PERFORM
PL/pgSQL function "emaj_create_group" line 73 at PERFORM
NOTICE: trigger "phil's schema3_myTbl2\_emaj_log_trg" for table "myTbl2\" does not exist, skipping
CONTEXT: SQL statement "DROP TRIGGER IF EXISTS "phil's schema3_myTbl2\_emaj_log_trg" ON "phil's schema3"."myTbl2\""
PL/pgSQL function "_create_tbl" line 163 at EXECUTE statement
SQL statement "SELECT emaj._create_tbl( $1 , $2 , $3 , coalesce( $4 , $5 ), coalesce( $6 , $5 ), $7 )"
PL/pgSQL function "emaj_create_group" line 88 at PERFORM
PL/pgSQL function "emaj_create_group" line 73 at PERFORM
NOTICE: table "phil's schema3_phil's tbl1_log" does not exist, skipping
CONTEXT: SQL statement "DROP TABLE IF EXISTS "emaj #'3"."phil's schema3_phil's tbl1_log""
PL/pgSQL function "_create_tbl" line 104 at EXECUTE statement
SQL statement "SELECT emaj._create_tbl( $1 , $2 , $3 , coalesce( $4 , $5 ), coalesce( $6 , $5 ), $7 )"
PL/pgSQL function "emaj_create_group" line 88 at PERFORM
PL/pgSQL function "emaj_create_group" line 73 at PERFORM
NOTICE: trigger "phil's schema3_phil's tbl1_emaj_log_trg" for table "phil's tbl1" does not exist, skipping
CONTEXT: SQL statement "DROP TRIGGER IF EXISTS "phil's schema3_phil's tbl1_emaj_log_trg" ON "phil's schema3"."phil's tbl1""
PL/pgSQL function "_create_tbl" line 163 at EXECUTE statement
SQL statement "SELECT emaj._create_tbl( $1 , $2 , $3 , coalesce( $4 , $5 ), coalesce( $6 , $5 ), $7 )"
PL/pgSQL function "emaj_create_group" line 88 at PERFORM
PL/pgSQL function "emaj_create_group" line 73 at PERFORM
emaj_create_group
-------------------
4
Expand All @@ -559,12 +559,12 @@ NOTICE: table "phil's schema3_phil's tbl1_log" does not exist, skipping
CONTEXT: SQL statement "DROP TABLE IF EXISTS "emaj #'3"."phil's schema3_phil's tbl1_log""
PL/pgSQL function "_create_tbl" line 104 at EXECUTE statement
SQL statement "SELECT emaj._create_tbl( $1 , $2 , $3 , coalesce( $4 , $5 ), coalesce( $6 , $5 ), $7 )"
PL/pgSQL function "emaj_alter_group" line 200 at PERFORM
PL/pgSQL function "emaj_alter_group" line 186 at PERFORM
NOTICE: trigger "phil's schema3_phil's tbl1_emaj_log_trg" for table "phil's tbl1" does not exist, skipping
CONTEXT: SQL statement "DROP TRIGGER IF EXISTS "phil's schema3_phil's tbl1_emaj_log_trg" ON "phil's schema3"."phil's tbl1""
PL/pgSQL function "_create_tbl" line 163 at EXECUTE statement
SQL statement "SELECT emaj._create_tbl( $1 , $2 , $3 , coalesce( $4 , $5 ), coalesce( $6 , $5 ), $7 )"
PL/pgSQL function "emaj_alter_group" line 200 at PERFORM
PL/pgSQL function "emaj_alter_group" line 186 at PERFORM
emaj_alter_group
------------------
4
Expand Down Expand Up @@ -592,12 +592,12 @@ NOTICE: table "phil's schema3_phil's tbl1_log" does not exist, skipping
CONTEXT: SQL statement "DROP TABLE IF EXISTS "emaj #'3"."phil's schema3_phil's tbl1_log""
PL/pgSQL function "_create_tbl" line 104 at EXECUTE statement
SQL statement "SELECT emaj._create_tbl( $1 , $2 , $3 , coalesce( $4 , $5 ), coalesce( $6 , $5 ), $7 )"
PL/pgSQL function "emaj_alter_group" line 200 at PERFORM
PL/pgSQL function "emaj_alter_group" line 186 at PERFORM
NOTICE: trigger "phil's schema3_phil's tbl1_emaj_log_trg" for table "phil's tbl1" does not exist, skipping
CONTEXT: SQL statement "DROP TRIGGER IF EXISTS "phil's schema3_phil's tbl1_emaj_log_trg" ON "phil's schema3"."phil's tbl1""
PL/pgSQL function "_create_tbl" line 163 at EXECUTE statement
SQL statement "SELECT emaj._create_tbl( $1 , $2 , $3 , coalesce( $4 , $5 ), coalesce( $6 , $5 ), $7 )"
PL/pgSQL function "emaj_alter_group" line 200 at PERFORM
PL/pgSQL function "emaj_alter_group" line 186 at PERFORM
emaj_alter_group
------------------
4
Expand All @@ -624,28 +624,28 @@ NOTICE: table "phil's schema3_myTbl2\_log" does not exist, skipping
CONTEXT: SQL statement "DROP TABLE IF EXISTS emaj."phil's schema3_myTbl2\_log""
PL/pgSQL function "_create_tbl" line 104 at EXECUTE statement
SQL statement "SELECT emaj._create_tbl( $1 , $2 , $3 , coalesce( $4 , $5 ), coalesce( $6 , $5 ), $7 )"
PL/pgSQL function "emaj_create_group" line 88 at PERFORM
PL/pgSQL function "emaj_create_group" line 73 at PERFORM
NOTICE: trigger "phil's schema3_myTbl2\_emaj_log_trg" for table "myTbl2\" does not exist, skipping
CONTEXT: SQL statement "DROP TRIGGER IF EXISTS "phil's schema3_myTbl2\_emaj_log_trg" ON "phil's schema3"."myTbl2\""
PL/pgSQL function "_create_tbl" line 163 at EXECUTE statement
SQL statement "SELECT emaj._create_tbl( $1 , $2 , $3 , coalesce( $4 , $5 ), coalesce( $6 , $5 ), $7 )"
PL/pgSQL function "emaj_create_group" line 88 at PERFORM
PL/pgSQL function "emaj_create_group" line 73 at PERFORM
NOTICE: table "phil's schema3_phil's tbl1_log" does not exist, skipping
CONTEXT: SQL statement "DROP TABLE IF EXISTS "emaj #'3"."phil's schema3_phil's tbl1_log""
PL/pgSQL function "_create_tbl" line 104 at EXECUTE statement
SQL statement "SELECT emaj._create_tbl( $1 , $2 , $3 , coalesce( $4 , $5 ), coalesce( $6 , $5 ), $7 )"
PL/pgSQL function "emaj_create_group" line 88 at PERFORM
PL/pgSQL function "emaj_create_group" line 73 at PERFORM
NOTICE: trigger "phil's schema3_phil's tbl1_emaj_log_trg" for table "phil's tbl1" does not exist, skipping
CONTEXT: SQL statement "DROP TRIGGER IF EXISTS "phil's schema3_phil's tbl1_emaj_log_trg" ON "phil's schema3"."phil's tbl1""
PL/pgSQL function "_create_tbl" line 163 at EXECUTE statement
SQL statement "SELECT emaj._create_tbl( $1 , $2 , $3 , coalesce( $4 , $5 ), coalesce( $6 , $5 ), $7 )"
PL/pgSQL function "emaj_create_group" line 88 at PERFORM
PL/pgSQL function "emaj_create_group" line 73 at PERFORM
WARNING: _check_fk_groups: Foreign key mytbl2_col21_fkey, from table phil's schema3.myTbl2\, references phil's schema3.mytbl4 that is outside groups (phil's group#3",).
CONTEXT: SQL statement "SELECT emaj._check_fk_groups (array[ $1 ])"
PL/pgSQL function "emaj_create_group" line 114 at PERFORM
PL/pgSQL function "emaj_create_group" line 99 at PERFORM
WARNING: _check_fk_groups: table phil's schema3.phil's tbl1 is referenced by foreign key mytbl4_col44_fkey from table phil's schema3.mytbl4 that is outside groups (phil's group#3",).
CONTEXT: SQL statement "SELECT emaj._check_fk_groups (array[ $1 ])"
PL/pgSQL function "emaj_create_group" line 114 at PERFORM
PL/pgSQL function "emaj_create_group" line 99 at PERFORM
emaj_create_group
-------------------
4
Expand Down

0 comments on commit 181286d

Please sign in to comment.