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 1v5pZw-00Cb46-Hw for pgsql-bugs@arkaria.postgresql.org; Mon, 06 Oct 2025 18:04:56 +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 1v5pZs-00A1F3-Le for pgsql-bugs@arkaria.postgresql.org; Mon, 06 Oct 2025 18:04:53 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1v5pZs-00A1Ev-D9 for pgsql-bugs@lists.postgresql.org; Mon, 06 Oct 2025 18:04:53 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1v5pZq-000MK7-1s for pgsql-bugs@lists.postgresql.org; Mon, 06 Oct 2025 18:04:52 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=momjian.us; s=2025010100; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:To:From:Date:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description; bh=6bGO62VLBAZz8QAGSUMh3IHSEnQoIxNBy83FZlcNEpE=; b=kChta XDsGX5DtJtoiu+XFJn2VTnOlESPucvrtB7wRcwgVOu2OkVNkKW6W1ysQ1cOYVBXVZKOo5nU1Iw//D cW38OQw6Ihil9LNkwNDB9LY4PnWfxyaCmXaon7cHcI8Iss5zHnvcVIB1VAmbIFa3xi/HHaBn27Q1S WutK6VxoOhB7/3oKsoOuCSveS5R0w//7HUbAhkf6HPTZZ5+wEMySXdKwtYt2KmYjXcSgYxiNUFzEb gveRU/R6hhWRkFoFAvOfGmvGde9yqYI5BkI/0uPBRPZoxR9utwnvenRq3oO5XBw9EG5Gn5u2wq5RE 8qTztiaYd6Eb64GnAoFErxqQC4cAw==; Received: from bruce by momjian.us with local (Exim 4.98.2) (envelope-from ) id 1v5pZq-0000000E2w6-33Jo; Mon, 06 Oct 2025 14:04:50 -0400 Date: Mon, 6 Oct 2025 14:04:50 -0400 From: Bruce Momjian To: sergey.belyashov@gmail.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #19075: pg_upgradecluster does not copy conf.d/* during cluster upgrade Message-ID: References: <19075-fb0cd192f52f2fe2@postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <19075-fb0cd192f52f2fe2@postgresql.org> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, Oct 6, 2025 at 05:23:26PM +0000, PG Bug reporting form wrote: > The following bug has been logged on the website: > > Bug reference: 19075 > Logged by: Sergey Belyashov > Email address: sergey.belyashov@gmail.com > PostgreSQL version: 17.6 > Operating system: Debian bookworm x86_64 > Description: > > I try to upgrade DB postgresql 17 to 18. So I install postgresql-18 (from > PostgreSQL repo) and then run "pg_upgradecluster -m link 17 main"... > It fails on checking wal_level of the new cluster - wal_level should be > logical but it is replica. > Reason: I have redefined default settings in the extra config file places in > the /etc/postgresql/17/main/conf.d/local.conf. > So I have wal_level=logical defined there, but not in the > /etc/postgresql/17/main/postgresql.conf. > If I redefine it in the /etc/postgresql/17/main/postgresql.conf then > pg_upgradecluster succeed. pg_upgradecluster is maintained by Debian, not the Postgres project. If you can reproduce the error via pg_upgrade, which we do maintain, we can research the cause. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.