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.89) (envelope-from ) id 1gvlWx-00025x-DE for pgsql-general@arkaria.postgresql.org; Mon, 18 Feb 2019 16:12:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gvlWv-0002Gi-Kd for pgsql-general@arkaria.postgresql.org; Mon, 18 Feb 2019 16:12:29 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gvlWv-0002Ga-97 for pgsql-general@lists.postgresql.org; Mon, 18 Feb 2019 16:12:29 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gvlWo-000216-OR for pgsql-general@lists.postgresql.org; Mon, 18 Feb 2019 16:12:28 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 658F7219FE; Mon, 18 Feb 2019 11:12:21 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Mon, 18 Feb 2019 11:12:21 -0500 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=fm2; bh=3 6KBZLrhXBPmuWuvsoxiGdjgVFasa1Xb6X489500+AQ=; b=pgm2Cg7W6FfgEpjP1 GxlJpOKNjIlJroDzK1jym2gdYJlGD2bAIQWfMppm2ZRlEVzRi06xx8/Ovx+r4gmJ ytzCDBse8xKatKqQodliVarJot1149v5kQZMg2wEipl4ZrMAkTH3phuaw4ltQv52 ct9e42+uRqBH/olhiaCdGZaNY1y4TO0F9RoJQXrJRBnc/p0oInz3lh3OW9hu6aCg fiQ7uEQ+PzNfJborhHahkutcX+vqjDFQdvmQ2KCaTYR8joqe/lzKDyZX2B3uYNv9 XevkzG/gi7b9A5FDTuq/FqyJUyfPrmv8MOjplDLwRrd1DspXrtK35Ds7AmJpBj2X kFW8A== 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=36KBZLrhXBPmuWuvsoxiGdjgVFasa1Xb6X489500+ AQ=; b=RA//AvjsCCFZgka7ppfARVHmmDi0DORprFBbopX7FH0PzWrgOQxbdQ4ed TVH2edVb/aXq80dg67+0/bPBRyqjoj2eAXbtuuv4x/xvA5BDSoef2P4VkIulfdop OUjl/zsJtfFct8EyKnk0r4BUpa51q1B+7Os6viRzjmeVvJmYW6wMCkR2Dq6Y4A6U GjDo+UUmuubjKsU96tLq75Ca8CZ1ldyX0PepSA/iP5HPVKXFSDPGHEalh9CAOVz+ Sd5FMQLzsiLUyhTStmPz791Gr+vvwSKZWiTuBvmSBrOsBvi2wKWHlIs4xMEEnCCl ZqelL4NEvi4ch9Y7674fDEex5zVJw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedutddrtddugdehfeculddtuddrgedtledrtddtmd cutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfhuthen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucfkphepjedurddvuddvrdduhedtrddvtddvnecurfgrrhgrmhepmhgrihhlfhhr ohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmnecuvehluhhsth gvrhfuihiivgeptd X-ME-Proxy: Received: from [192.168.1.4] (unknown [71.212.150.202]) by mail.messagingengine.com (Postfix) with ESMTPA id 524B2E45D2; Mon, 18 Feb 2019 11:12:20 -0500 (EST) Subject: Re: BEFORE ... Statement-level trigger To: Jitendra Loyal , pgsql-general@lists.postgresql.org References: From: Adrian Klaver Message-ID: <476285d1-d477-72b0-6da8-199bc03cc669@aklaver.com> Date: Mon, 18 Feb 2019 08:12:19 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 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 2/18/19 4:06 AM, Jitendra Loyal wrote: > The behaviour is not clear for BEFORE Statement-level Trigger. This is > because transition tables cannot be used. So how does one get access to > the rows being affected? It is not documented either. If you need the row values then use a FOR ROW trigger. > > Thanks > Jiten -- Adrian Klaver adrian.klaver@aklaver.com