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 1rJS2b-00DOgs-Tz for pgsql-general@arkaria.postgresql.org; Sat, 30 Dec 2023 05:37:46 +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 1rJS1b-00F8wG-8I for pgsql-general@arkaria.postgresql.org; Sat, 30 Dec 2023 05:36:43 +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 1rJS1Z-00F8w6-J8 for pgsql-general@lists.postgresql.org; Sat, 30 Dec 2023 05:36:42 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rJS1V-00EbpX-Kz for pgsql-general@lists.postgresql.org; Sat, 30 Dec 2023 05:36:40 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id A3BBA5C01EC; Sat, 30 Dec 2023 00:36:34 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Sat, 30 Dec 2023 00:36:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1703914594; x=1704000994; bh=LCbUEcFOk4ZUjHoFh1esH9EURNY65v9muRlut9WO39k=; b= GMvF17tCGCJ9SncPmzCNYygmecgWBvqIK7hJllwNOuD4CQFS7QEsIZFvNqvo2dVM 1oXMB86Un7SmDPeao0AGkCUVgorB2lPbZpW1IV0tYMcKaCy0NY9TJH3fBx2yzJBn FnFCqf2Sbd1njjr3WwlNECMepMKQdm1PzDweP25PAtQ4oHVirEj/yMvfK8VJSTCF PMeMBO1DRRqQuzPuQ8nUXlDdUSPOizqQLGYPtnHq4rQaJeBsuYbIlLrgrR7rMjSR ZSn9VoZCR5D5i7IhiFHuJi5b4PsuIqjBBQ98kvE0e6IwsISAnA3n714S5WBNhMwC FzeOWrzhEHZiS0Vf5zePEw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1703914594; x= 1704000994; bh=LCbUEcFOk4ZUjHoFh1esH9EURNY65v9muRlut9WO39k=; b=j cqk48opMErxfzlvObEEcys3c8dw4E+iP1jSKtYHDJ4BYCyrKEQcrQun9/buae6Mr RpzKGHtLAitKtgFl8S6KHHFW5T59BzGHh5xbuUx0wphy3C/RmMjoPTVs7PU9SCQe 875TbsjcY0gAVRXykBksqiowbpMldD2wUKaUTG06a7KbvTXb5WZ4OjzbmcLTMG9u /7tXXBhcvhDAG9nrG90SQXo63/dCvT7laMomWPyfU58uWeTKJJq19VSOrPUZ9BAE UIKFSpL5NYWOPKHSm7c/Zcj2AzeIwrN9xeqYn9uFP+EW3UsiLrqphggI8kNgHDQ6 0TdLhNU4HPAliGKnLJ2mw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdefgedgkeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtke ertddtvdejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecuggftrfgrthhtvghrnhepffelgeeife fgveduhedthfekuedtffejveegffegjeevtdehgfduieetfeehjeehnecuvehluhhsthgv rhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvh gvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 30 Dec 2023 00:36:33 -0500 (EST) Message-ID: Date: Fri, 29 Dec 2023 21:36:32 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Need help To: ankit.singh@nest-is2.com, pgsql-general@lists.postgresql.org References: <000401da3a5f$b94b60c0$2be22240$@nest-is2.com> <4fa3e000-5df2-42cf-89bb-4601ec3d7338@aklaver.com> <001701da3ae0$10796f10$316c4d30$@nest-is2.com> Content-Language: en-US From: Adrian Klaver In-Reply-To: <001701da3ae0$10796f10$316c4d30$@nest-is2.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 12/29/23 21:21, ankit.singh@nest-is2.com wrote: > Needs  a lot more information: > > 1) Postgres version being restored to.--- *14.10* > > 2)The complete pg_restore command. --- > > */home/zulip/deployments/current/scripts/setup/restore-backup > /path/to/backup* > > 3) The complete error message*.    PGDMP\\0000zulip\00"\00\00\0014.10 > (Ubuntu 14.10-1.pgdg22.04+1)\00 \00\00\0016.1 (Ubuntu > 16.1-1.pgdg22.04+1)\0000ENCODING00SET client_encoding = 'UTF8';* I'm not exactly sure what that error message is saying, though it is showing two different version of Postgres in use. Since pg_dump will not dump from a Postgres version newer then it's version, I'm going to say that you used the Postgres 16 version of pg_dump against the Postgres 14 instance. Then used the Postgres 14 version of pg_restore to restore that dump file to the 14 instance. As Tom Lane mentioned that will not work as the older version(14) of pg_restore will not recognize the newer file version from the dump file(16). I don't have an answer for how you sort that out in the Zulip process. > > ** > > 4) Where was Postgres installed from*?- Zulip server-6.1 I have > installed from that server I have taken backup*.** > > 5) Do you have more then one version of Postgres installed? *14.10 & > 16.1 in server which I have taken backup* > > ** > > *From:*Adrian Klaver > *Sent:* 30 December 2023 00:45 > *To:* ankit.singh@nest-is2.com; pgsql-general@lists.postgresql.org > *Subject:* Re: Need help > > On 12/29/23 6:02 AM, ankit.singh@nest-is2.com > wrote: > > In Ubuntu 22.04LTS when we try to restore the database it's giving > the error – pg restore unsupported 1.15 > > Needs  a lot more information: > > 1) Postgres version being restored to. > > 2) The complete pg_restore command. > > 3) The complete error message. > > 4) Where was Postgres installed from? > > 5) Do you have more then one version of Postgres installed? > -- Adrian Klaver adrian.klaver@aklaver.com