Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0030279
TypeCategorySeverityReproducibilityDate SubmittedLast Update
design defect[Openbravo ERP] A. Platformminorhave not tried2015-06-29 13:432022-02-01 08:09
ReporteralostaleView Statuspublic 
Assigned ToTriage Platform Base 
PrioritynormalResolutionopenFixed in Version
StatusacknowledgedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0030279: log clean up process doesn't vacuum tables deleted via FK cascaded deletion

DescriptionWhen log clean up process is run in PostgreSQL, tables that where cleaned up are vacuumed.

If there are tables that are deleted because they have a delete cascade FK to one of the tables marked to be deleted, vacuum is not executed for them.
Steps To ReproduceIn the default configuration ad_session is marked to be deleted, ad_session_usage_audit is also deleted via FK.

Execute clean up process and check there is a vacuum for ad_session but not for ad_session_usage_audit.
Proposed SolutionCheck cascaded FK tables to also vacuum them:

           SELECT distinct pc1.relname
             FROM pg_constraint pc, pg_class pc1, pg_class pc2
            WHERE pc.contype='f' and pc.conrelid= pc1.oid
              and pc.confrelid = pc2.oid
              and pc2.relname in :deletedTables

Note this can be recursive to several levels
TagsPerformance
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to feature request 00289303.0PR15Q2 closedalostale include Logs Clean Up Utility module within Openbravo 3 distribution 

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2015-06-29 13:43 alostale New Issue
2015-06-29 13:43 alostale Assigned To => platform
2015-06-29 13:43 alostale Modules => Core
2015-06-29 13:43 alostale Triggers an Emergency Pack => No
2015-06-29 13:43 alostale Status new => acknowledged
2015-06-29 13:43 alostale Target Version => 3.0PR15Q4
2015-06-29 13:46 alostale Relationship added related to 0028930
2015-06-29 13:46 shuehner Issue Monitored: shuehner
2015-06-29 13:47 alostale Tag Attached: Performance
2015-10-01 07:51 alostale Target Version 3.0PR15Q4 =>
2022-02-01 08:09 alostale Assigned To platform => Triage Platform Base


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker