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.92) (envelope-from ) id 1jCjUW-0006H5-Fm for pgsql-hackers@arkaria.postgresql.org; Fri, 13 Mar 2020 12:32:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jCjUV-0006bH-8Y for pgsql-hackers@arkaria.postgresql.org; Fri, 13 Mar 2020 12:32:39 +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 1jCjUU-0006b6-VY for pgsql-hackers@lists.postgresql.org; Fri, 13 Mar 2020 12:32:39 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jCjUR-00018r-Ko for pgsql-hackers@postgresql.org; Fri, 13 Mar 2020 12:32:38 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id D86B02F9; Fri, 13 Mar 2020 08:32:31 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Fri, 13 Mar 2020 08:32:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=FUZZRCrvn87uF9oid3JMPn20XBcMpzS/UMEDIypjV 6k=; b=nYdWmRn/lQ0Lh4gcxjKoqpM6ASdm/IhezuAFCqgiDDTpakjVRVfNymRom l0JkaSLRUlGeNufIOQ4hv/alBTQVvlYlKVKmPqo5Y/Q6qiJsjGtOlFmXGqXIs4UC wfTlxWlMMr+JOgdobtUTFt1KmgptTkc1ir46e8pCS/anr+yDiN/X+NT4UDdL57z+ 0m6tnsNG0K3xnVGfF9MrU0uXiigjv5BvvWS6/hlyQTm6WaGJ36C6vvyreis6dHqI rhLl54YEhwMLssC17qlJelBqk7Af5Xkigs4TjujThA+xQ6IvmD91zLUTK2rIRL2G 4pEUqXJODkNdFCnlflxVAWV/HcLYw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedruddvjedggedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhohfkffgfgggjtgfgsehtkeertddtfeejnecuhfhrohhmpefrvght vghrucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvdhnug hquhgrughrrghnthdrtghomheqnecuffhomhgrihhnpedvnhguqhhurggurhgrnhhtrdgt ohhmnecukfhppeelfedrvdegvddrvddufedrvdegudenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrrdgvihhsvghnthhrrghuthes vdhnughquhgrughrrghnthdrtghomh X-ME-Proxy: Received: from april.pezone.net (p5df2d5f1.dip0.t-ipconnect.de [93.242.213.241]) by mail.messagingengine.com (Postfix) with ESMTPA id BEB2C30612AF; Fri, 13 Mar 2020 08:32:29 -0400 (EDT) Subject: Re: Restore replication settings when modifying a field type To: Euler Taveira References: <20191028.133939.559712139043653003.horikyota.ntt@gmail.com> <61d38b0e-0831-d206-8390-2a08bb51905d@2ndquadrant.com> <0b190c18-1ab0-22ab-f249-af58ee967807@foxmail.com> <40e3fb7b-6362-6438-03d1-6b7f9dc0f962@2ndquadrant.com> Cc: Quan Zongliang , Kyotaro Horiguchi , pgsql-hackers From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <01068a4d-e810-cd73-10db-6b4660b9e6b9@2ndquadrant.com> Date: Fri, 13 Mar 2020 13:32:27 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 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 2020-03-10 14:16, Euler Taveira wrote: > On Thu, 5 Mar 2020 at 09:45, Peter Eisentraut > > wrote: > > On 2020-02-11 00:38, Quan Zongliang wrote: > > new patch attached. > > I didn't like so much how the updating of the replica identity was > hacked into the middle of ATRewriteCatalogs().  I have an alternative > proposal in the attached patch that queues up an ALTER TABLE ... > REPLICA > IDENTITY command into the normal ALTER TABLE processing.  I have also > added tests to the test suite. > > LGTM. Tests are ok. I've rebased it (because > 61d7c7bce3686ec02bd64abac742dd35ed9b9b01). Are you planning to backpatch > it? IMHO you should because it is a bug (since REPLICA IDENTITY was > introduced in 9.4). This patch can be applied as-is in 12 but not to > other older branches. I attached new patches. Thanks. This has been committed and backpatched to 9.5. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services