Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1puZKs-0006iF-Mt for pgsql-general@arkaria.postgresql.org; Thu, 04 May 2023 13:49:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1puZKr-0006n8-N4 for pgsql-general@arkaria.postgresql.org; Thu, 04 May 2023 13:49:29 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1puZKq-0006mz-Pj for pgsql-general@lists.postgresql.org; Thu, 04 May 2023 13:49:29 +0000 Received: from resqmta-c1p-023462.sys.comcast.net ([2001:558:fd00:56::2]) by magus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1puZKm-000XqB-9b for pgsql-general@lists.postgresql.org; Thu, 04 May 2023 13:49:27 +0000 Received: from resomta-c1p-022591.sys.comcast.net ([96.102.18.238]) by resqmta-c1p-023462.sys.comcast.net with ESMTP id uYAHpG1EqkfIwuZKfpdfQS; Thu, 04 May 2023 13:49:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=20190202a; t=1683208157; bh=DRlNHYNormYNPLhU1eUVICCQSddVo+DIeenr8tymJOA=; h=Received:Received:Date:From:To:Message-ID:Subject:MIME-Version: Content-Type:Xfinity-Spam-Result; b=ssW2kvgGdGKHshNYt1hHt3JeuqwCpRRdggEXzd3b7V0s2e4G96Kv+bxU+esbCf1Xf Fz7qN1pLQwGSbUSBgl3XOqLfceOxvLQ0KPKEQhAhQvd9qOCsUrkzIfXZXj7qgthbLD UdHlWafFwaxDkb0hYukcJwxrpXJ/kinfgq5YgK/airufuHJzHsYTFmSD+GBu/m6iPk qwKP04Ptp6ix4kwtZ0VccDg9g8fud9+BptemSFQQ0aEhP+U32cpAdremjUsj692cei Bv2eAjVY7PdlWIbBmKqC/xaBxrV9lsU4HDNFmWuNr+NoqdaCy8Ew/BY5by/zgw95Xj Q0TmhlHbr/QZg== Received: from oxapp-asc-11o.email.comcast.net ([96.118.209.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 256/256 bits) (Client did not present a certificate) by resomta-c1p-022591.sys.comcast.net with ESMTPS id uZKepPIy5cejcuZKep1Oqs; Thu, 04 May 2023 13:49:17 +0000 X-Xfinity-VAAS: gggruggvucftvghtrhhoucdtuddrgedvhedrfeeftddgieelucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuvehomhgtrghsthdqtfgvshhipdfqfgfvpdfpqffurfetoffkrfenuceurghilhhouhhtmecufedtudenucenucfjughrpeffhffvkffugggtrfgkofhisegrtdgssgertdejnecuhfhrohhmpeffteggkfffucftqffvjfcuoegruggrphhtrhhonhestghomhgtrghsthdrnhgvtheqnecuggftrfgrthhtvghrnhepjeevvefhvdfggeekieffveelleekudeuffejveeuveduuedvieehieefteejgeeinecukfhppeeliedruddukedrvddtledrheefpddviedtudemudeludemkeegtddtmeguvdgrtdemudgtsggtmeekrggvleemvgdtgedvmedutgehkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhephhgvlhhopehogigrphhpqdgrshgtqdduudhordgvmhgrihhlrdgtohhmtggrshhtrdhnvghtpdhinhgvthepleeirdduudekrddvtdelrdehfedpmhgrihhlfhhrohhmpegruggrphhtrhhonhestghomhgtrghsthdrnhgvthdpnhgspghrtghpthhtohepuddprhgtphhtthhopehpghhsqhhlqdhgvghnvghrrghlsehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrgh X-Xfinity-VMeta: sc=0.00;st=legit Date: Thu, 4 May 2023 09:49:16 -0400 (EDT) From: DAVID ROTH To: "pgsql-general@lists.postgresql.org" Message-ID: <1215915755.69415.1683208156758@connect.xfinity.com> Subject: Trigger questions MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_69414_1504814387.1683208156753" X-Priority: 3 Importance: Normal X-Mailer: Open-Xchange Mailer v7.10.5-Rev21 X-Originating-IP: 2601:191:8400:d2a0:1cbc:8ae9:e042:1c58 X-Originating-Client: open-xchange-appsuite List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk ------=_Part_69414_1504814387.1683208156753 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 1) Can I create a trigger on a view? 2) Do triggers cascade? Say I have an insert trigger on a table. And, I have an insert trigger on a view that references this table If I do an insert on the view, will both triggers fire? ------=_Part_69414_1504814387.1683208156753 MIME-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
1) Can I create a trigger on a view?
2) Do triggers cascade?

Say I have an insert trigger on a table.
And, I have an insert trigger on a view that references this table
If I do an insert on the view, will both triggers fire?
------=_Part_69414_1504814387.1683208156753--