pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Frank Joerdens <frank@joerdens.de>
Cc: pgsql-sql@postgresql.org
Subject: Re: Re: How to drop an <unnamed> trigger
Date: Thu, 08 Mar 2001 12:50:33 -0500
Message-ID: <28010.984073833@sss.pgh.pa.us> (raw)
In-Reply-To: <20010308175126.A16939@rakete.joerdens.de>
References: <20010308164246.A16533@rakete.joerdens.de>
	<20010308170629.A16771@rakete.joerdens.de>
	<20010308175126.A16939@rakete.joerdens.de>

Frank Joerdens <frank@joerdens.de> writes:
>> Just an idea: Is it safe to just delete the corresponding row in
>> pg_trigger?

> No, it ain't: After deleting the rows corresponding to the offending
> triggers in pg_trigger, I can't vacuum, or dump.

You need to adjust the reltriggers counts in the associated pg_class
entries, too.

			regards, tom lane



view thread (4+ messages)

Message-ID: <28010.984073833@sss.pgh.pa.us>
Permalink:  ../28010.984073833@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/28010.984073833@sss.pgh.pa.us

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, frank@joerdens.de
  Subject: Re: How to drop an <unnamed> trigger
  In-Reply-To: <28010.984073833@sss.pgh.pa.us>
  References: <20010308164246.A16533@rakete.joerdens.de> <20010308170629.A16771@rakete.joerdens.de> <20010308175126.A16939@rakete.joerdens.de> <28010.984073833@sss.pgh.pa.us>

* 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