Red Hat Bugzilla – Bug 1014562
BPEL/RTGov tables are created multiple times
Last modified: 2013-11-15 08:16:34 EST
See attached log file, RTGOV_* tables are dropped/created twice. The problem is probably cause by having the same tables process both by
Created attachment 806379 [details]
DB log file
The issue is present also for BPEL - 4 times
The problem occurs because the schema for each project has to be created at project build time. This means that if two projects reference the same set of classes, then multiple copies of the tables for those appear when these projects are combined.
The solution is probably to post-process the created schema for all the combined projects, and to remove the duplicates. This will involve creating a tool/plugin to do this.
Is this only a blocking issue for PostgreSQL?
The work being carried out on https://bugzilla.redhat.com/show_bug.cgi?id=1029007 is aimed at resolving this issue.
The tool cannot resolve into one big schema (or one sql file) as the installer chooses what projects it needs to install and its associated tables.
Therefore, the build time hibernate plugin is being updated to post process each project sql and add guards to the table creation to stop it trying to recreate tables that already exist.
Any superfluous drop statements will also be removed.
*** This bug has been marked as a duplicate of bug 1029007 ***