Re: [GENERAL] - Regarding Schema ROLLBACK - Mailing list pgsql-general

From Alban Hertroys
Subject Re: [GENERAL] - Regarding Schema ROLLBACK
Date
Msg-id 9BD3B458-217C-4349-AD41-D405D329CD9A@gmail.com
Whole thread Raw
In response to Re: [GENERAL] - Regarding Schema ROLLBACK  ("David G. Johnston" <david.g.johnston@gmail.com>)
Responses Re: [GENERAL] - Regarding Schema ROLLBACK
List pgsql-general
> On 28 Nov 2017, at 16:43, David G. Johnston <david.g.johnston@gmail.com> wrote:
>
> On Tue, Nov 28, 2017 at 5:23 AM, VENKTESH GUTTEDAR <venkteshguttedar@gmail.com> wrote:
>     I have run CREATE SCHEMA xyz accidentally, and it replaced my existing schema (xyz) with tables, and i have lost
allmy data. 
>
> ​As far as I know "CREATE SCHEMA" by itself cannot "drop" data nor would it successfully execute if a schema of the
samename already exist... 
>
> As Melvin says if you've truly dropped the data you will need to resort to backups of some form.​
>
> David J.

Just what I was thinking. Are you looking in the correct database?

Alban Hertroys
--
If you can't see the forest for the trees,
cut the trees and you'll find there is no forest.



pgsql-general by date:

Previous
From: Tomas Vondra
Date:
Subject: Re: large numbers of inserts out of memory strategy
Next
From: "Rakesh Kumar"
Date:
Subject: Re: [GENERAL] - Regarding Schema ROLLBACK