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 1i0zRC-0003Oq-4i for pgsql-general@arkaria.postgresql.org; Fri, 23 Aug 2019 02:36:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i0zRB-0006Fn-0p for pgsql-general@arkaria.postgresql.org; Fri, 23 Aug 2019 02:36:25 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i0zRA-0006Fg-Nm for pgsql-general@lists.postgresql.org; Fri, 23 Aug 2019 02:36:24 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i0zR6-0004b7-QQ for pgsql-general@lists.postgresql.org; Fri, 23 Aug 2019 02:36:24 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 2ABED216CA; Thu, 22 Aug 2019 22:36:19 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Thu, 22 Aug 2019 22:36:19 -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=fm3; bh=1 YNRKCcclx0d/+98KpWsVOQfZaP2mBFSjnFWMAVKHQY=; b=af/tHbdtoSqjs09hu F+1f3k0W9Eaf6UZnPd+yTBaElnZB/7IkMdoX/0jyCQ3AEYVgqCJAIoOVYMB7rpJK 5TjSKhnRdhIbGoTJlcyMWSidd8FjfvMDHGLusZbpPjOKpQUGhq5g7Vuabn4o2keE zHysFZWLcolXaPYH//1EFW4fxnK3F/C2cmaxqbsj7yN2UPU3lP5uLUshIfq2USTf nhUYU4eu6sGyloDv2cfScD6BryeTMonI3u259II7oQyZKb9Hld+f+b/w0rl2oA4H cwgIZeIh+7Gtmp4ibsjQIiSarl+KhjGPFzHFsJF0Mggg3dEIbI7K5RXhWm5n79mW fnQIg== 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=fm3; bh=1YNRKCcclx0d/+98KpWsVOQfZaP2mBFSjnFWMAVKH QY=; b=fiWRoJAV8Sns/5WFkravjK/E8WYxVbTTcAtSjp2hjm6c92juu8zkr+cJ5 bBEsPr81bu6H5P7VIy436zc2ORJ3yUM/DzrKZ4Tgl3Vj1XOBv/ZAd0q3eMofUnBY YxL3keJr5Vzcs7T63nlgwMB6SGIzTLTUbxcEX8KU33w+4lRgXjzi2IdmC5LUPe+3 KFp5RT/P1xZTYhbwrcLquXxzcoMqzPKlnPj0FMaz0MvT0S+372WZVzlMVqNqElnt HhO8N830yAwChhfhST3uirZ4nZfvVuL68IOQFs2CemSJxEX7d8tmblSxK7nlCulT v4/QbT5btR9A5UKrVH2aRGnQhouJA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrudegjedgieduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtke ertddtfeejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecuffhomhgrihhnpehluhgtvggvrdhorh hgpdhpohhsthhgrhgvshhqlhdrohhrghenucfkphepjedurddvuddvrdduhedtrddvtddv necurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrg hvvghrrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from [192.168.1.4] (unknown [71.212.150.202]) by mail.messagingengine.com (Postfix) with ESMTPA id 8D5EF8005A; Thu, 22 Aug 2019 22:36:18 -0400 (EDT) Subject: Re: database files are incompatible with server To: Ron , pgsql-general@lists.postgresql.org References: <2bee6c33-fcf8-6018-3f1f-92a085490f90@lucee.org> <1707638f-71b1-6b06-5200-cc5f2c899f94@aklaver.com> <8ea2fa0b-740b-f7bf-1605-8cb705625519@gmail.com> <5afe920c-4fce-a4dd-823c-3db521ba6362@aklaver.com> From: Adrian Klaver Message-ID: Date: Thu, 22 Aug 2019 19:36:17 -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: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 8/22/19 7:12 PM, Ron wrote: > On 8/22/19 8:49 PM, Adrian Klaver wrote: >> On 8/22/19 6:29 PM, Ron wrote: >>> On 8/22/19 7:08 PM, Adrian Klaver wrote: >>>> On 8/22/19 4:52 PM, Igal @ Lucee.org wrote: >>>>> I have a data directory that was created by Postgres 12 (I thought >>>>> beta 3 but now am not sure anymore) running in Docker. >>>>> >>>>> I have installed Postgres 12b3 as a Systemd service and am trying >>>>> to set the cluster to the same PGDATA.  I have set the owner of the >>>>> directory to postgres:postrgres, and the permissions to 0700, but >>>>> I'm getting the following error: >>>>> >>>>> 2019-08-22 23:40:48.759 UTC [23044] FATAL:  database files are >>>>> incompatible with server >>>>> 2019-08-22 23:40:48.759 UTC [23044] DETAIL:  The database cluster >>>>> was initialized with CATALOG_VERSION_NO  201906161, but the server >>>>> was compiled with CATALOG_VERSION_NO 201907221. >>>> >>>> So the cluster is from an older version then the server. >>> >>> Aren't Pg files supposed to be compatible within minor versions? >>> >> >> Betas are a moving target so that does not hold: >> >> https://www.postgresql.org/developer/beta/ >> >> "Features are subject to changes that are backwards incompatible at >> any time during the development of the betas, and could possibly be >> removed altogether." > > Features as in the on-disk structure? > Short version: T he error was about the catversion which tracks the system catalog state. Adding/subtracting features can change that state and make clusters incompatible. Long version: https://git.postgresql.org/gitweb/?p=postgresql.git;a=blob;f=src/include/catalog/catversion.h;h=fe44cae3ff453ccc02e6c56548c9311b5777bf1f;hb=0ab7110bcbcce5ff58afb32e7871c54e87502139 -- Adrian Klaver adrian.klaver@aklaver.com