From: | Olivier Gautherot <ogautherot(at)gautherot(dot)net> |
---|---|
To: | nikhil kumar <nikhil(dot)dba97(at)gmail(dot)com> |
Cc: | pgsql-performance(at)postgresql(dot)org |
Subject: | Re: Specific objects backup in PostgreSQL |
Date: | 2024-07-10 18:42:49 |
Message-ID: | CAJ7S9TV-MACXMOL21JXa4y_hcuaNhHuNCSkHjX_Mk0TRgUTH0g@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
Hi Nikhil,
On Wed, Jul 10, 2024 at 8:05 PM nikhil kumar <nikhil(dot)dba97(at)gmail(dot)com> wrote:
> Dear Team,
>
> We received a request from client. They required all functions, stored
> procedures and triggers backup. can anyone please let me know. How to take
> backup only above objects.
>
>
> Thanks & Regards,
> Nikhil,
> PostgreSQL DBA.
>
"pg_dump -s" will export the model, including functions, triggers... as
well as tables and views without data.
I should have somewhere an old program I wrote on a lazy day to slice this
backup into individual objects. I can dig it for you if you need it.
Cheers
--
Olivier Gautherot
From | Date | Subject | |
---|---|---|---|
Next Message | Anthony Sotolongo | 2024-07-10 20:04:48 | Re: Specific objects backup in PostgreSQL |
Previous Message | David G. Johnston | 2024-07-10 18:41:01 | Re: Specific objects backup in PostgreSQL |