Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pde7w-00014I-6Z for pgsql-general@arkaria.postgresql.org; Sat, 18 Mar 2023 21:30:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pde7u-0002VX-Ob for pgsql-general@arkaria.postgresql.org; Sat, 18 Mar 2023 21:30:10 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pde7u-0002VO-DQ for pgsql-general@lists.postgresql.org; Sat, 18 Mar 2023 21:30:10 +0000 Received: from brisi.sourcepole.ch ([5.9.57.43]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pde7s-0001rk-5Y for pgsql-general@lists.postgresql.org; Sat, 18 Mar 2023 21:30:10 +0000 Received: from [213.55.225.13] (helo=[192.168.43.81]) by vilan-mail with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1pde7r-0005BA-1w for pgsql-general@lists.postgresql.org; Sat, 18 Mar 2023 22:30:07 +0100 Message-ID: Date: Sat, 18 Mar 2023 22:30:07 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: Getting error while upgrading postgres from version 12 to 13 Content-Language: en-GB To: pgsql-general@lists.postgresql.org References: From: Tomas Pospisek In-Reply-To: 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 Sun, Mar 19, 2023 at 2:09 AM shashidhar Reddy > > wrote: > > Hello, > > I am in a process of upgrading postgresql from version 12 to 13 > using pg_upgrdrade but I am getting error stating > >  FATAL:  database files are incompatible with server >  DETAIL:  The data directory was initialized by PostgreSQL version 13 > , which is not compatible with this version 12.14 (Ubuntu > 12.14-1.pgdg18.04+1) > > Please help me on this issue. You have configured the postgres v12 server to use a directory where there are data from a postgres v13 server. Evidently that can not work... *t