From: Andrzej Mazurkiewicz <andrzej@mazurkiewicz.org>
To: fabriziomello@gmail.com
Cc: pgsql-hackers@postgresql.org <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> (raw)
In-Reply-To: <CAFcNs+qQvW7K1tJKNgdtXC=uii7yg=UxZoOFhM8UTbWF+bFOWA@mail.gmail.com>
References: <1523734.6NloWteI3S@tata>
<5154748.0thC7X2zN4@tata>
<CAFcNs+qQvW7K1tJKNgdtXC=uii7yg=UxZoOFhM8UTbWF+bFOWA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
On Tuesday 01 of April 2014 11:06:00 you wrote:
> On Tue, Apr 1, 2014 at 9:13 AM, Andrzej Mazurkiewicz <
>
> andrzej@mazurkiewicz.org> wrote:
> > It seems that if the trigger is internal (tgisinternal = 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
>
> Try using a quoted identifier:
>
> DROP TRIGGER "RI_ConstraintTrigger_c_19322" ON master;
>
> Regards,
>
> --
> FabrÃzio de Royes Mello
> Consultoria/Coaching PostgreSQL
Good Afternoon.
Sorry for my mistake. I have forgotten about modifications of names to lower
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
commands. Removing internals, f. e. FK triggers, by hand by a programmer and
even by an administrator seems not to be a recommended practice.
Kind Regards
Andrzej Mazurkiewicz
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-hackers@postgresql.org
Cc: andrzej@mazurkiewicz.org, fabriziomello@gmail.com
Subject: Re: Inheritance of foregn key constraints - dropping isinternal triggers by a
In-Reply-To: <2729604.PO7CB1FP43@tata>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox