Impact of deleting/cleaning up 'pg_largeobject' table on the Portal
Written By
Prarthana Jadhav
How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!
While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.
Legacy Article
You are viewing an article from our legacy "FastTrack"
publication program, made available for informational purposes. Articles
in this program were published without a requirement for independent
editing or verification and are provided"as is" without
guarantee.
Before using any information from this article, independently verify its
suitability for your situation and project.
Issue
- After migration from DBstore to any other repository, how to delete the 'pg_large object' table from PostgreSQL.
- Will the deletion of the pg_large table have any impact on the portal?
Environment
- Liferay DXP 7.0
- Database: PostgreSQL
Resolution
-
As the data will already be migrated to another repository apart from DBstore, the 'pg_largeobject' will have no relevance on the portal. Therefore, it can be deleted/cleared.
-
However, Liferay does not recommend to manually perform any action in DB. Therefore, follow the below steps to clear the pg_largeobject table data:
1)Migrate back to the DB Store by selecting "com.liferay.portal.store.db.DBstore". Shut down the server
2) Add the property "dl.store.impl=com.liferay.portal.store.db.DBStore" in portal-ext.properties and restart the server.
3) Go to the Control panel ->Data Migration -> Migrate back to "respective repository" by selecting from the dropdown-> Make sure you check the option "Delete data from Previous repository".
- By checking this option, the data will be deleted from the pg_large table safely.
- Therefore, deleting this table will not impact the portal as it will not have any relation with the portal post migration.
Did this article resolve your issue ?