Re: Backup schema without data

From: Michael Loftis <mloftis(at)wgops(dot)com>
To: Atul Kumar <akumar14871(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Backup schema without data
Date: 2023-04-07 00:53:29
Message-ID: CAHDg04s0zDtg1vrSR7ts5DyfFw+MkVPBoDo8ZsWqyoUn59foog@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

From the man page….

-s
--schema-only

Dump only the object definitions (schema), not data.

…..”

On Thu, Apr 6, 2023 at 18:40 Atul Kumar <akumar14871(at)gmail(dot)com> wrote:

> Hi,
>
> Please help me in telling that how I can take the backup of one single
> schema without its data using pg_dump utility ?
>
>
> So far, I could not find anything suitable for doing so.
>
> Regards,
> Atul
>
> --

"Genius might be described as a supreme capacity for getting its possessors
into trouble of all kinds."
-- Samuel Butler

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2023-04-07 00:54:11 Re: Backup schema without data
Previous Message Louis Tian 2023-04-07 00:49:35 Re: [EXTERNAL]: Re: UPSERT in Postgres