pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alban Hertroys <haramrae@gmail.com>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: VENKTESH GUTTEDAR <venkteshguttedar@gmail.com>
Cc: PostgreSQL mailing lists <pgsql-general@postgresql.org>
Subject: Re: [GENERAL] - Regarding Schema ROLLBACK
Date: Tue, 28 Nov 2017 19:50:11 +0100
Message-ID: <9BD3B458-217C-4349-AD41-D405D329CD9A@gmail.com> (raw)
In-Reply-To: <CAKFQuwYZWOkefGwDDcxibfKcS1e5C4AvdpTNOwuJs9tiEG9A8g@mail.gmail.com>
References: <CA+iwz4=VZ8H6kYk5Uv-BcMCULnKTD4HGRuj7ruNHREQPZj9KKQ@mail.gmail.com>
	<CAKFQuwYZWOkefGwDDcxibfKcS1e5C4AvdpTNOwuJs9tiEG9A8g@mail.gmail.com>


> 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 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.

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.





view thread (5+ messages)  latest in thread

Message-ID: <9BD3B458-217C-4349-AD41-D405D329CD9A@gmail.com>
Permalink:  ../9BD3B458-217C-4349-AD41-D405D329CD9A@gmail.com/
Also on:    postgresql.org/message-id/9BD3B458-217C-4349-AD41-D405D329CD9A@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: haramrae@gmail.com, david.g.johnston@gmail.com, venkteshguttedar@gmail.com
  Subject: Re: [GENERAL] - Regarding Schema ROLLBACK
  In-Reply-To: <9BD3B458-217C-4349-AD41-D405D329CD9A@gmail.com>
  References: <CA+iwz4=VZ8H6kYk5Uv-BcMCULnKTD4HGRuj7ruNHREQPZj9KKQ@mail.gmail.com> <CAKFQuwYZWOkefGwDDcxibfKcS1e5C4AvdpTNOwuJs9tiEG9A8g@mail.gmail.com> <9BD3B458-217C-4349-AD41-D405D329CD9A@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox