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 1jgyJZ-0007tW-Sv for pgsql-general@arkaria.postgresql.org; Thu, 04 Jun 2020 22:26:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jgyJY-0003tl-Hd for pgsql-general@arkaria.postgresql.org; Thu, 04 Jun 2020 22:26:20 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jgyJW-0003td-I3 for pgsql-general@lists.postgresql.org; Thu, 04 Jun 2020 22:26:20 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jgyJP-0004qR-66 for pgsql-general@lists.postgresql.org; Thu, 04 Jun 2020 22:26:17 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 8BCE35C0152; Thu, 4 Jun 2020 18:26:09 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Thu, 04 Jun 2020 18:26:09 -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=F VNNRgkaVzLQ74v4fQnGHduvi/ezRmFp/aGqShk+BMU=; b=E/iYoZLUeSZ9TiDl0 K6zwAhX97A7579K97pdmcWUZbcQYXWGlJ8asRRh7HlGv8M9D67W0loZKa78MDjjy mHfavNEv1tv6dS9WNlg+uhgXbUwuiapWqNQhlwo2aB4KbcMBRdRU+PXjhgPnPpcw z1z0s8eOwincQzbfUTxcB8QVifH8F+iAeZuKm6AGsJazHgM6AqggEWkidzXnYOIk Y53wP4ElvnjVeYujaGVyShACxJ/dB3peipcym3u7X9lOJbNuWEzo4Hl60T+QLUyy 4rOdqz1Yzmnj3n+bFuBvV3swJVUlgX/XWAQx8vBW4xPCm20EVX5Q6/X1L2/cW8fn 12bcA== 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=fm2; bh=FVNNRgkaVzLQ74v4fQnGHduvi/ezRmFp/aGqShk+B MU=; b=Gy+1EiVJwqQgIyIKJPqWSBN4HxP4rEIF1YiVOXZkmc557H4858y7RMup/ POW0zDNp1Zt10qRGKcLNFSNj1ZoFZkzoLWL66DC3n534nM96ZPLcjfCHxEykiegb cybe1k4DJivDqJJK6whdcdQxL109JzuBna9tit+rZeiPL5S1NxFZmrHF/BVkJDXj cjxXFebnGW4WyXeOhgRrKb9vTInJjubfLhb+7jjWCuoyT2MNQ2szuZrQFgBTcalI v7lXMptDs/8CEswosuzk7DFbvKEE1KSUuUwKAPArNNduE9vlVLeop7cHaNDPi8LT yrXIzp71G7Xv/B4gWDRrE9HKXQbCg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudegvddgtdeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthejredttdefheenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpefhkefgtdefteekffeltdefledtgeefkeffiedtkeej teffgfduteeggefhgedugfenucffohhmrghinhepphhoshhtghhrvghsqhhlrdhorhhgne cukfhppeejhedrudejvddrhedrvdefudenucevlhhushhtvghrufhiiigvpedtnecurfgr rhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrd gtohhm X-ME-Proxy: Received: from [192.168.1.3] (75-172-5-231.tukw.qwest.net [75.172.5.231]) by mail.messagingengine.com (Postfix) with ESMTPA id 975F93280065; Thu, 4 Jun 2020 18:26:08 -0400 (EDT) Subject: Re: Move configuration files with pg_upgrade To: Tanja Savic , "pgsql-general@lists.postgresql.org" References: From: Adrian Klaver Message-ID: <0286cb3e-15bd-6577-ad13-bd0d21571565@aklaver.com> Date: Thu, 4 Jun 2020 15:26:07 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; 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 6/4/20 12:52 PM, Tanja Savic wrote: > Hello, > > I did Postgresql upgrade from v10 to v12 using pg_upgrade (on Linux > Ubuntu server). > Of course i wanted settings inpg_hba.conf and postgresql.conf to keep, > but after the upgrade there were new configuration files and I moved it > manually. That is documented: https://www.postgresql.org/docs/12/pgupgrade.html " Restore pg_hba.conf If you modified pg_hba.conf, restore its original settings. It might also be necessary to adjust other configuration files in the new cluster to match the old cluster, e.g. postgresql.conf. " The new version's conf files will probably have new settings available so this is something that should be reviewed before moving over. One way to deal with this is include file(s): https://www.postgresql.org/docs/12/config-setting.html#CONFIG-INCLUDES Using them you create the settings you want to manage in the include file. Then copy that over and set the include 'some_file' in the new postgresql.conf and you are good. > > Is it possible somehow to migrate these old > configuration files with pg_upgrade or it shall be done manually? > > Cheers, > Tanja > -- Adrian Klaver adrian.klaver@aklaver.com