Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iORtI-0000lq-4q for pgsql-general@arkaria.postgresql.org; Sat, 26 Oct 2019 19:38:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iORtF-0002YW-S5 for pgsql-general@arkaria.postgresql.org; Sat, 26 Oct 2019 19:38:21 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iORtD-0002Wv-Ly for pgsql-general@lists.postgresql.org; Sat, 26 Oct 2019 19:38:21 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iORtA-0001eN-Bt for pgsql-general@lists.postgresql.org; Sat, 26 Oct 2019 19:38:18 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 909CB21EA7; Sat, 26 Oct 2019 15:38:14 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Sat, 26 Oct 2019 15:38:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=z FQ1p6n0q/SGiea3hsEpjyoiZvkmZIyKOqGFo9glHjA=; b=walYHFdYwGpoHGCJT 8uA4fNmD8YPtVoXFoMVsT9jUPjIzpe+uUCMpHCMeqpdqmjAe6jIXMZLZoluuJ8zz jjKqgTAmgQzTJQFX0/Dtzp7j/BCzpPc44a6hwsPJIQsKA4OURSt8/4W7EMx0OjJD t+7ynreisMmbpmA8vOf6ybmDAkU3npg+rlS9q53MtRIpyWUYg0EI229T5PR1tUAm O+HcKqfw/fm7plvf+mQUEaXfe0kGpeZTlK7T4FHSmCh4hss/2845mlNZhDUV4wcF KGhGeAdTgD9MMuWHr78WzDCJ/0+BF0yKwQ08OgmZ7ng3M2azwAl6cipJ6xdx6N40 eUHXQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=zFQ1p6n0q/SGiea3hsEpjyoiZvkmZIyKOqGFo9glH jA=; b=dDa/+x3dtPj9/HpJnk957dckCET357vrr2xAAGuEfV5Je9i4W8BZR5eSw acxHBSQUBsY8Oze0OMcj8C0pTSOmm80728MTt+8pxsLIr/+Ic+DvRMMDyXQKHljR XLXDE6RlGu1jd45BUp7McfcjEJL3fEFPmqJDtcBuDYEKANq/vg9Fcaf9AdTEcCYa oXzLYao910dOXh6ZV430Hc9Kdj/G/iKbpMSxYREQwP0RoiC5fsf0RINlt2iT9lXg OJCcH4kTk6mftU5kfU33oh8LLOQOhGTnc+qb0hOdObULEbxzQXX2njoTI8ugtYf3 hoRUqL0+w0y2g9RXXguJUYTYfZvlQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrleehgddugeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthejredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucffohhmrghinhepphhoshhtghhrvghsqhhlrdhorhhgnecukfhppeejuddrvddu vddrudeffedrudekleenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklh grvhgvrhesrghklhgrvhgvrhdrtghomhenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from [192.168.1.3] (unknown [71.212.133.189]) by mail.messagingengine.com (Postfix) with ESMTPA id 91C71D6005B; Sat, 26 Oct 2019 15:38:13 -0400 (EDT) Subject: Re: Updating data: confirmation and question To: Rich Shepard , pgsql-general@lists.postgresql.org References: <547c2d0b-70a5-2a62-6b9e-3ff852485dea@aklaver.com> From: Adrian Klaver Message-ID: <795309ed-927b-80dd-2db5-2e51c0433934@aklaver.com> Date: Sat, 26 Oct 2019 12:38:12 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 10/26/19 10:39 AM, Rich Shepard wrote: > On Sat, 26 Oct 2019, Adrian Klaver wrote: > >> That depends on how you ran pg_dumpall. For instance did you use -c?: > > Adrian, > > Yes. Always. Then the question is, do you really want to overwrite the new database? > >> https://www.postgresql.org/docs/11/sql-alterdatabase.html >> ALTER DATABASE name RENAME TO new_name > > Ah, I should have looked. I apologize. > > Rich > > > -- Adrian Klaver adrian.klaver@aklaver.com