Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eJkxX-0000z5-93 for pgsql-general@arkaria.postgresql.org; Tue, 28 Nov 2017 18:50:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eJkxW-0001lw-QG for pgsql-general@arkaria.postgresql.org; Tue, 28 Nov 2017 18:50:18 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eJkxW-0001lS-DA for pgsql-general@lists.postgresql.org; Tue, 28 Nov 2017 18:50:18 +0000 Received: from mail-wm0-x234.google.com ([2a00:1450:400c:c09::234]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eJkxT-0003PM-V8 for pgsql-general@postgresql.org; Tue, 28 Nov 2017 18:50:17 +0000 Received: by mail-wm0-x234.google.com with SMTP id l141so1563794wmg.1 for ; Tue, 28 Nov 2017 10:50:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=ppeECNOcdLvpPyvs0Bpaqxv7IIKGEF026yd555F0ZLk=; b=bZtv3yN+BVSMnYm3E+NGG2GTKxCOmxDlTLYikoY7cYKU8Te8VS1imQ8b0CIE1z+h1m 4mMt1FP6qtzh7rx7KLWRPjEHnneWjmcq69pHYviBNh+gFO1ttGP31OpRWfnEKLo2VKjQ LY3MMO2+gzxmhFMNtD7hHiYincWZOrc2TjCwLpxpFXPlgP22wn4MwnhRiHzZoRZDSAYQ HrQVjfjoTOAiPZNhpdKR0CrkWBd1N4CWFprwNFMOMj3H5+BIdIkKMcp+qyLb5/Eay3Oc h694t/2AuxgEg4a2D9GPt2VA6XOiL2ql659H2A9dn0immZBQ8gtclPZ+cYY9r3ywQGCY 0Jjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=ppeECNOcdLvpPyvs0Bpaqxv7IIKGEF026yd555F0ZLk=; b=kwtbW7UVf5grkQz/Y0iCJ4XIQuYy2bQU9gQ6a2v4UzLmSb9BoTRvvqE+swLOjJDmHy XItNKnS0jeel2S4VR85vLshCBivXaZe7qistjRUfd91CDCfCtL8K3S4x91Yq4d8Uo8ni 88e/9hsdLO/+NPnUIt9NjBwqiES5OM64PZ+xEkYsq3V9pxWyin8mHCSzi1EzylTmcVAP qeQDCVKpu1IvHAFnL3iA/AcmkdRcN2jVtIrwT2pnFfsJZ5tOlWXWB5RfTIqv1i723ieR rTCuM1dsFcWRUinwaNRSew4ZvPfD+eNKT+TCHQoh+5Jz8nFNZK1J6cdLrH2SpC+VWNY9 ps1A== X-Gm-Message-State: AJaThX47nQoL07fF4kj3mUeYoC0fb6flAk3NNChxDM6agcFlIUr/tkPP Ygy1qprpqAkhuFDZT/jy9Iw= X-Google-Smtp-Source: AGs4zMaTPuo5jvz/ZTwZht1m/TfAzR0l+NWxlFZVc4BYpcaibe0pVe49POG8CClznkbsVWc5bH59Yg== X-Received: by 10.80.157.73 with SMTP id j9mr4002232edk.170.1511895014203; Tue, 28 Nov 2017 10:50:14 -0800 (PST) Received: from hollewijn.internal (84-245-13-9.dsl.cambrium.nl. [84.245.13.9]) by smtp.gmail.com with ESMTPSA id g7sm81078edf.50.2017.11.28.10.50.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Nov 2017 10:50:13 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 11.1 \(3445.4.7\)) Subject: Re: [GENERAL] - Regarding Schema ROLLBACK From: Alban Hertroys In-Reply-To: Date: Tue, 28 Nov 2017 19:50:11 +0100 Cc: VENKTESH GUTTEDAR , PostgreSQL mailing lists Content-Transfer-Encoding: quoted-printable Message-Id: <9BD3B458-217C-4349-AD41-D405D329CD9A@gmail.com> References: To: "David G. Johnston" X-Mailer: Apple Mail (2.3445.4.7) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > On 28 Nov 2017, at 16:43, David G. Johnston = wrote: >=20 > On Tue, Nov 28, 2017 at 5:23 AM, VENKTESH GUTTEDAR = wrote: > I have run CREATE SCHEMA xyz accidentally, and it replaced my = existing schema (xyz) with tables, and i have lost all my data. >=20 > =E2=80=8BAs 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... >=20 > As Melvin says if you've truly dropped the data you will need to = resort to backups of some form.=E2=80=8B >=20 > 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.