Re: how do I DROP this CONSTRAINT?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alexey Borzov <borz_off(at)rdw(dot)ru>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: how do I DROP this CONSTRAINT?
Date: 2001-02-20 15:23:29
Message-ID: 12460.982682609@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Alexey Borzov <borz_off(at)rdw(dot)ru> writes:
> Can I just delete the record in pg_relcheck, decrement the counter
> in pg_class and enjoy the results or will it have undesirable
> side-effects?

Should work; be careful to do the pg_class change last, else you'll
likely get inconsistency complaints. IIRC, the pg_class change will
trigger relation-cache reload for the table, and the indicated number
of records had better match pg_relcache when that happens.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jose Manuel Lorenzo Lopez 2001-02-20 15:29:34 Installing DBI client
Previous Message Tom Lane 2001-02-20 15:17:35 Re: binding postmaster to *one* virtual IP address