From: | Idelette Tchakounte <itchakounte(at)acttoday(dot)com> |
---|---|
To: | Kenneth Barber <kbarber(at)salesforce(dot)com>, "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org> |
Subject: | Re: Excluding event triggers from a pg_dump |
Date: | 2024-06-19 16:07:43 |
Message-ID: | PH0PR15MB5295997CBBFB3D33463746ACDDCF2@PH0PR15MB5295.namprd15.prod.outlook.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
Hi Kenneth,
Yes you can do triggers only using the exclude command;
Pg_restore -U your_user -W--
disable-triggers -d your_database
your_database_backup.dump
Use disable trigger with pg_restore
Hope this help, Thanks
[ACT] Idelette Tchakounte
Sr Database Administrator
Advanced Call Center Technologies, LLC
itchakounte(at)acttoday(dot)com<mailto:itchakounte(at)acttoday(dot)com>
________________________________
From: Kenneth Barber <kbarber(at)salesforce(dot)com>
Sent: Wednesday, June 19, 2024 11:18 AM
To: pgsql-admin(at)postgresql(dot)org <pgsql-admin(at)postgresql(dot)org>
Subject: Excluding event triggers from a pg_dump
CAUTION
This is an external email originating from outside of ACT; do not click links or open attachments unless you know the content is safe.
Hi there,
Is there a way to exclude event triggers from a pg_dump?
I've been working around this by using a pg_restore --use-list with
the event triggers commented out using sed.
ken.
From | Date | Subject | |
---|---|---|---|
Next Message | Wells Oliver | 2024-06-19 16:18:27 | Re: Materialized views & dead tuples |
Previous Message | Kenneth Barber | 2024-06-19 15:18:57 | Excluding event triggers from a pg_dump |