Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WVMQA-000197-4V for pgsql-hackers@arkaria.postgresql.org; Wed, 02 Apr 2014 14:45:42 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WVMQ8-0001s0-Te for pgsql-hackers@arkaria.postgresql.org; Wed, 02 Apr 2014 14:45:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WVMQ3-0001kO-LN for pgsql-hackers@postgresql.org; Wed, 02 Apr 2014 14:45:35 +0000 Received: from h1881163181.rev.rootvps.pl ([188.116.3.181]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WVMQ0-0005z5-PH for pgsql-hackers@postgresql.org; Wed, 02 Apr 2014 14:45:35 +0000 Received: from tata.mazurkiewicz.org (localhost.localdomain [127.0.0.1]) by h1881163181.rev.rootvps.pl (Postfix) with ESMTPA id 0968D51E0614; Wed, 2 Apr 2014 16:44:23 +0200 (CEST) From: Andrzej Mazurkiewicz To: fabriziomello@gmail.com Cc: "pgsql-hackers@postgresql.org" Subject: Re: Inheritance of foregn key constraints - dropping isinternal triggers by a Date: Wed, 02 Apr 2014 16:45:30 +0200 Message-ID: <2729604.PO7CB1FP43@tata> User-Agent: KMail/4.12.2 (Linux/3.13.0-10-generic; KDE/4.12.2; x86_64; ; ) In-Reply-To: References: <1523734.6NloWteI3S@tata> <5154748.0thC7X2zN4@tata> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On Tuesday 01 of April 2014 11:06:00 you wrote: > On Tue, Apr 1, 2014 at 9:13 AM, Andrzej Mazurkiewicz < >=20 > andrzej@mazurkiewicz.org> wrote: > > It seems that if the trigger is internal (tgisinternal =3D true) it is = not > > visible to the DROP TRIGGER command. So it cannot be deleted using DROP > > TRIGGER command, although the dependency type is DEPENDENCY_AUTOMATIC >=20 > Try using a quoted identifier: >=20 > DROP TRIGGER "RI_ConstraintTrigger_c_19322" ON master; >=20 > Regards, > > -- > Fabr=EDzio de Royes Mello > Consultoria/Coaching PostgreSQL Good Afternoon. Sorry for my mistake. I have forgotten about modifications of names to lowe= r=20 case. The owner of a table can drop trigger using the command DROP TRIGGER. However, where I can find information on philosophy of that approach. For me internal triggers are marked isinternal not to be accessed using SQL= =20 commands. Removing internals, f. e. FK triggers, by hand by a programmer an= d=20 even by an administrator seems not to be a recommended practice. Kind Regards Andrzej Mazurkiewicz --=20 Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers