Re: [GENERAL] - Regarding Schema ROLLBACK

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: VENKTESH GUTTEDAR <venkteshguttedar(at)gmail(dot)com>
Cc: PostgreSQL mailing lists <pgsql-general(at)postgresql(dot)org>
Subject: Re: [GENERAL] - Regarding Schema ROLLBACK
Date: 2017-11-28 15:43:37
Message-ID: CAKFQuwYZWOkefGwDDcxibfKcS1e5C4AvdpTNOwuJs9tiEG9A8g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Nov 28, 2017 at 5:23 AM, VENKTESH GUTTEDAR <
venkteshguttedar(at)gmail(dot)com> wrote:

> I have run CREATE SCHEMA xyz accidentally, and it replaced my existing
> schema (xyz) with tables, and i have lost all my data.
>

​As far as I know "CREATE SCHEMA" by itself cannot "drop" data nor would it
successfully execute if a schema of the same name already exist...

As Melvin says if you've truly dropped the data you will need to resort to
backups of some form.​

David J.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Robert Haas 2017-11-28 16:58:53 Re: ERROR: too many dynamic shared memory segments
Previous Message Melvin Davidson 2017-11-28 15:38:33 Re: [GENERAL] - Regarding Schema ROLLBACK