Re: Slony uninstall info/warning

From: Richard Huxton <dev(at)archonet(dot)com>
To: John Sidney-Woollett <johnsw(at)wardbrook(dot)com>
Cc: slony1-general(at)gborg(dot)postgresql(dot)org, postgres general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Slony uninstall info/warning
Date: 2005-02-15 11:43:15
Message-ID: 4211E053.5010500@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

John Sidney-Woollett wrote:
> Hopefully this will prevent data loss or problems for others using slony
> 1.0.5 and pg 7.4.6...
>
> We just got bitten by something we didn't foresee when completely
> uninstalling a slony replication cluster from the master and slave...
>
> MAKE SURE YOU STOP YOUR APPLICATION RUNNING AGAINST YOUR MASTER DATABASE
> WHEN REMOVING THE WHOLE SLONY CLUSTER, or at least re-cycle all your
> open connections after the event!
>
> The connections appear to "remember" or refer to objects which are
> removed by the uninstall node script. And you get lots of errors as a
> result (and possible data loss??)...
>
> Question: Why do our database objects still refer to removed slony
> objects after they are removed?

Well, there are two areas I know cache plans/OIDs:
1. Prepared statements
2. plpgsql functions

At a guess, since you mention Java the first almost certainly applies to
you.

This isn't a slony issue so much as a cached plan issue. I'm guessing
the same problems would occur if you were manually changing the database
schema.

Don't think you could get data loss (unless the application ignores
errors). You will however get to see a wide range of OID related errors.

--
Richard Huxton
Archonet Ltd

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message John Sidney-Woollett 2005-02-15 12:03:22 Re: Slony uninstall info/warning
Previous Message Mihail Nasedkin 2005-02-15 11:15:51 Re: How to view the list of tables?