pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
problem with "DROP TABLE" ..
5+ messages / 2 participants
[nested] [flat]

* problem with "DROP TABLE" ..
@ 2003-02-14 18:50 mallah@trade-india.com
  2003-02-14 19:56 ` Re: problem with "DROP TABLE" .. Stephan Szabo <sszabo@megazone23.bigpanda.com>
  0 siblings, 1 reply; 5+ messages in thread

From: mallah@trade-india.com @ 2003-02-14 18:50 UTC (permalink / raw)
  To: pgsql-admin


Hi ,

i get following error when attempting to drop a table.

tradein_clients=# DROP TABLE branding_master;
ERROR:  DropTrigger: relation branding_nob_bak has reltriggers = 0
tradein_clients=#


can anyone suggest what might be the problem?

regds
mallah.


-----------------------------------------
Get your free web based email at trade-india.com.
   "India's Leading B2B eMarketplace.!"
http://www.trade-india.com/





^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: problem with "DROP TABLE" ..
  2003-02-14 18:50 problem with "DROP TABLE" .. mallah@trade-india.com
@ 2003-02-14 19:56 ` Stephan Szabo <sszabo@megazone23.bigpanda.com>
  2003-02-14 20:11   ` Re: problem with 'DROP TABLE' .. mallah@trade-india.com
  0 siblings, 1 reply; 5+ messages in thread

From: Stephan Szabo @ 2003-02-14 19:56 UTC (permalink / raw)
  To: mallah@trade-india.com; +Cc: pgsql-admin


On Sat, 15 Feb 2003 mallah@trade-india.com wrote:

>
> Hi ,
>
> i get following error when attempting to drop a table.
>
> tradein_clients=# DROP TABLE branding_master;
> ERROR:  DropTrigger: relation branding_nob_bak has reltriggers = 0
> tradein_clients=#

Did you make any direct changes to the pg_class row or to the pg_triggers
rows associated with this table?




^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: problem with 'DROP TABLE' ..
  2003-02-14 18:50 problem with "DROP TABLE" .. mallah@trade-india.com
  2003-02-14 19:56 ` Re: problem with "DROP TABLE" .. Stephan Szabo <sszabo@megazone23.bigpanda.com>
@ 2003-02-14 20:11   ` mallah@trade-india.com
  2003-02-14 20:17     ` Re: problem with 'DROP TABLE' .. Stephan Szabo <sszabo@megazone23.bigpanda.com>
  0 siblings, 1 reply; 5+ messages in thread

From: mallah@trade-india.com @ 2003-02-14 20:11 UTC (permalink / raw)
  To: sszabo@megazone23.bigpanda.com; +Cc: mallah@trade-india.com; pgsql-admin



yep there is a mismatch .
shud i delete the entries from pg_trigger to match reltriggers
i am sure i dont' need those triggers.



regds
mallah.


tradein_clients=# SELECT relfilenode,relkind,reltriggers from pg_class where
relname='branding_master'; relfilenode | relkind | reltriggers
-------------+---------+-------------
    46979870 | r       |           0
    48724633 | v       |           0
(2 rows)

tradein_clients=# SELECT count(*) from pg_trigger where tgrelid=46979870;
 count
-------
     9
(1 row)

tradein_clients=#


>
> On Sat, 15 Feb 2003 mallah@trade-india.com wrote:
>
>>
>> Hi ,
>>
>> i get following error when attempting to drop a table.
>>
>> tradein_clients=# DROP TABLE branding_master;
>> ERROR:  DropTrigger: relation branding_nob_bak has reltriggers = 0 tradein_clients=#
>
> Did you make any direct changes to the pg_class row or to the pg_triggers rows associated with
> this table?



-----------------------------------------
Get your free web based email at trade-india.com.
   "India's Leading B2B eMarketplace.!"
http://www.trade-india.com/





^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: problem with 'DROP TABLE' ..
  2003-02-14 18:50 problem with "DROP TABLE" .. mallah@trade-india.com
  2003-02-14 19:56 ` Re: problem with "DROP TABLE" .. Stephan Szabo <sszabo@megazone23.bigpanda.com>
  2003-02-14 20:11   ` Re: problem with 'DROP TABLE' .. mallah@trade-india.com
@ 2003-02-14 20:17     ` Stephan Szabo <sszabo@megazone23.bigpanda.com>
  2003-02-14 20:46       ` Re: problem with 'DROP TABLE' .. mallah@trade-india.com
  0 siblings, 1 reply; 5+ messages in thread

From: Stephan Szabo @ 2003-02-14 20:17 UTC (permalink / raw)
  To: mallah@trade-india.com; +Cc: pgsql-admin


On Sat, 15 Feb 2003 mallah@trade-india.com wrote:

> yep there is a mismatch .
> shud i delete the entries from pg_trigger to match reltriggers
> i am sure i dont' need those triggers.

Hmm, I was going to just say yes, but then realized that if any
of those are foreign key triggers, you'll need to drop both the
triggers on this table and the associated triggers on the other
table(s).




^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: problem with 'DROP TABLE' ..
  2003-02-14 18:50 problem with "DROP TABLE" .. mallah@trade-india.com
  2003-02-14 19:56 ` Re: problem with "DROP TABLE" .. Stephan Szabo <sszabo@megazone23.bigpanda.com>
  2003-02-14 20:11   ` Re: problem with 'DROP TABLE' .. mallah@trade-india.com
  2003-02-14 20:17     ` Re: problem with 'DROP TABLE' .. Stephan Szabo <sszabo@megazone23.bigpanda.com>
@ 2003-02-14 20:46       ` mallah@trade-india.com
  0 siblings, 0 replies; 5+ messages in thread

From: mallah@trade-india.com @ 2003-02-14 20:46 UTC (permalink / raw)
  To: sszabo@megazone23.bigpanda.com; +Cc: pgsql-admin


yes maybe.
thanks for the help.

regds
mallah.

>
> On Sat, 15 Feb 2003 mallah@trade-india.com wrote:
>
>> yep there is a mismatch .
>> shud i delete the entries from pg_trigger to match reltriggers
>> i am sure i dont' need those triggers.
>
> Hmm, I was going to just say yes, but then realized that if any
> of those are foreign key triggers, you'll need to drop both the
> triggers on this table and the associated triggers on the other
> table(s).



-----------------------------------------
Get your free web based email at trade-india.com.
   "India's Leading B2B eMarketplace.!"
http://www.trade-india.com/





^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2003-02-14 20:46 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-02-14 18:50 problem with "DROP TABLE" .. mallah@trade-india.com
2003-02-14 19:56 ` Stephan Szabo <sszabo@megazone23.bigpanda.com>
2003-02-14 20:11   ` Re: problem with 'DROP TABLE' .. mallah@trade-india.com
2003-02-14 20:17     ` Re: problem with 'DROP TABLE' .. Stephan Szabo <sszabo@megazone23.bigpanda.com>
2003-02-14 20:46       ` Re: problem with 'DROP TABLE' .. mallah@trade-india.com

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