Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tMB8E-002QNi-SC for pgsql-general@arkaria.postgresql.org; Fri, 13 Dec 2024 19:15:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tMB8B-00AyhJ-Ud for pgsql-general@arkaria.postgresql.org; Fri, 13 Dec 2024 19:15:21 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tMB8B-00Ayh9-Iw for pgsql-general@lists.postgresql.org; Fri, 13 Dec 2024 19:15:20 +0000 Received: from mail.appl-ecosys.com ([50.126.108.78]) by magus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tMB89-002gu7-Tz for pgsql-general@postgresql.org; Fri, 13 Dec 2024 19:15:20 +0000 Received: from salmo.appl-ecosys.com (salmo.appl-ecosys.com [192.168.55.1]) by mail.appl-ecosys.com (Postfix) with ESMTP id 54C3E2A43D0 for ; Fri, 13 Dec 2024 11:15:15 -0800 (PST) Date: Fri, 13 Dec 2024 11:15:15 -0800 (PST) From: Rich Shepard To: pgsql-general@postgresql.org Subject: Re: Restoring database from backup In-Reply-To: Message-ID: <71cd1635-78f7-ae13-699-e1cf2077c3d2@appl-ecosys.com> References: MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, 13 Dec 2024, Ron Johnson wrote: > It's a text file. Open it up, and see if there's a DROP DATABASE in there. Ron, No `drop database' but it drops constraints and tables. I could add a drop database to the backup script after restoring yesterday's status. Thanks, Rich