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 1p8n3h-00036E-7s for pgsql-bugs@arkaria.postgresql.org; Fri, 23 Dec 2022 18:46:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1p8n2h-00043G-Rr for pgsql-bugs@arkaria.postgresql.org; Fri, 23 Dec 2022 18:45:15 +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 1p8n2h-000437-Jw for pgsql-bugs@lists.postgresql.org; Fri, 23 Dec 2022 18:45:15 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p8n2f-000589-I9 for pgsql-bugs@lists.postgresql.org; Fri, 23 Dec 2022 18:45:15 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 2BNIjBqP2758408; Fri, 23 Dec 2022 13:45:11 -0500 From: Tom Lane To: nigel@oscsales.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #17730: Trigger Issue In-reply-to: <17730-725d70639da4fd31@postgresql.org> References: <17730-725d70639da4fd31@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Fri, 23 Dec 2022 17:09:18 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2758406.1671821111.1@sss.pgh.pa.us> Date: Fri, 23 Dec 2022 13:45:11 -0500 Message-ID: <2758407.1671821111@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk PG Bug reporting form writes: > I have cloned a trigger from another table by inserting new rows into the > pg_catalog.pg_triggers but the trigger is not working and the following > querry - > select pg_get_triggerdef(t.oid) > from pg_catalog.pg_trigger t > returns the error > cache lookup failed for attribute 7 of relation 1682781. It's highly unlikely that this is a Postgres bug. It sounds more like you fat-fingered your manual catalog changes. (Why didn't you use CREATE TRIGGER instead? Manual mucking about in the catalogs is not for the inexpert.) > Is there something else I need to change ? [ shrug... ] When you have not shown us exactly what you did, that's an unanswerable question. regards, tom lane