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 1sCnBs-008917-AR for pgsql-general@arkaria.postgresql.org; Thu, 30 May 2024 21:20:06 +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 1sCnBr-0067LL-UZ for pgsql-general@arkaria.postgresql.org; Thu, 30 May 2024 21:20:03 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sCnBq-0067LD-B5 for pgsql-general@lists.postgresql.org; Thu, 30 May 2024 21:20:03 +0000 Received: from wfout8-smtp.messagingengine.com ([64.147.123.151]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sCnBl-001ZLR-J1 for pgsql-general@lists.postgresql.org; Thu, 30 May 2024 21:20:01 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailfout.west.internal (Postfix) with ESMTP id 0B70A1C000FC; Thu, 30 May 2024 17:19:53 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Thu, 30 May 2024 17:19:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1717103993; x=1717190393; bh=yn8xqqe5jrnY/loRGO+SLkawABOpCvbm6o8bOJn3WhU=; b= q5xEYetu0YvjvvjvzlB6YQXB96aVTbiAy+8/meWa4G5/WT/AL0L7GFu4sBUxxV1s Mc4OBVFXa0V3FQS/HN7SoDfFtto30j1C7BS4WWZAiWoReulCq1U3uOP2LdXnRhR2 QWa3s3+zGbj2IJqF/AyqHOtKKEJ1JyjV4iVeqK5xxLvaEa5/l9ZfvzxJ+EoHBfTw GST+Eatrj4gZc9ECIPekOZW4t8bhofgYUWU1dr20dx11fcGFUK2j1cyn1cXXXEwf 4DXwSsWESMAMOxeqiA0QYnoRICvjW5Wvl8jNVsISrxoDJYMhczJggg/8DTxN2juk 6OmR+KDJfcpwK1zW0VOfSw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1717103993; x= 1717190393; bh=yn8xqqe5jrnY/loRGO+SLkawABOpCvbm6o8bOJn3WhU=; b=T uXm4DZMfzkTppC9La4FWq6AwOYIjyc5uJLLzbKvllO+a5VFbEMMim82yt89TPGml x4nC/lnFdyLnmH4Ia4GSbF2h25u9f6gHwB2XQ8xCIJr5HhYVoIUoYkej2Jzevz5t +MklxGEDU9jd9SKJr9gLFKcWT4aC1G5NJmdTiLM4bnG4GacY1Lx/nLIljb+rQZbm B3RT6kmm99Np/FxV/M8tC8rqTo77ZVzQWS6NE6MoAix5eVxPNkbim1H0H5dwyku8 ZLVeJdOCYypyElDvhmjVmxtFJF8aqz9Sv+D3QvQ2C12GCZRu5/5U7p/2u40c4B/v Ga9IXDaAGMcQW/8BBZsMQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdekgedgudehiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepkfffgggfuffvfhfhjggtgfesth ekredttddvjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdr khhlrghvvghrsegrkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpeelgeevke ekkeeuiefgtdevieeluefhfedufeetkeejffekjeeujeehgeehgeektdenucffohhmrghi nhepphhoshhtghhrvghsqhhlrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrg hrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdr tghomh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 30 May 2024 17:19:52 -0400 (EDT) Message-ID: Date: Thu, 30 May 2024 14:19:52 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Rules and Command Status - update/insert/delete rule with series of commands in action To: "johnlumby@hotmail.com" , pgsql-general@lists.postgresql.org References: Content-Language: en-US From: Adrian Klaver 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 5/30/24 11:32, johnlumby@hotmail.com wrote: > Any thoughts?      Any rationales one way or the other?    Any interest > in perhaps providing a choice via a configuration parameter? 1) As to using rules, stop now before you invest the time to find out is a road you don't want to go down. 2) Use INSTEAD OF triggers: https://www.postgresql.org/docs/current/sql-createtrigger.html > > > Cheers, John Lumby > > > -- Adrian Klaver adrian.klaver@aklaver.com