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 1jAaas-0000AX-IZ for pgsql-general@arkaria.postgresql.org; Sat, 07 Mar 2020 14:38:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jAaar-0006Cc-3V for pgsql-general@arkaria.postgresql.org; Sat, 07 Mar 2020 14:38:21 +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 1jAaaq-0006CV-CV for pgsql-general@lists.postgresql.org; Sat, 07 Mar 2020 14:38:20 +0000 Received: from mail.wordtothewise.com ([104.225.223.158]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jAaaj-0005IK-EK for pgsql-general@lists.postgresql.org; Sat, 07 Mar 2020 14:38:18 +0000 Received: from [192.168.0.206] (unknown [37.228.253.89]) by mail.wordtothewise.com (Postfix) with ESMTPSA id CE22A9F146 for ; Sat, 7 Mar 2020 06:38:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wordtothewise.com; s=aardvark; t=1583591892; bh=ggGvnbzvPSrPfSPz8VHcAUwQ8FybpXWP0JmZvkNV2kE=; h=Subject:To:References:From:Date:In-Reply-To:From; b=ETla/g3QdWRjajonBzyAw/4/Tx2RjDmGCfh8Tj0zmapZC4ZN24ocdHO0DXGS5lXEc MjlNvvw73onVtNRfundfLp8025jWov5CisARplrvdJOj47OpZYV+aJ9HYwUXWszlFH sSJnAj2hE3hY38h9Ug0kPMLQ6+mY51HjjqMoal84= Subject: Re: Rules versus triggers To: pgsql-general@lists.postgresql.org References: <20200307115615.GA27155@panix.com> From: Steve Atkins Message-ID: Date: Sat, 7 Mar 2020 14:38:09 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <20200307115615.GA27155@panix.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 07/03/2020 11:56, stan wrote: > Could someone give me a brief description of the intended functionally, and > how the 2 features work of rules, versus triggers? It appears to me that > they are simply 2 different ways to set up triggers, but I am certain that > is just because of my lack of knowledge. The pages https://wiki.postgresql.org/wiki/Don%27t_Do_This#Don.27t_use_rules links to will give you some idea of the differences. Cheers,   Steve