Thu Sep 27 07:42:41 PDT 2007
- Previous message: [Slony1-hackers] EXECUTE SCRIPT and deadlocks
- Next message: [Slony1-hackers] Re: XID in PG core/contrib
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Maxime Henrion wrote: > Replying to myself: > > We've noticed that Slony-1 locks the tables in access exclusive mode > when handling an EXECUTE SCRIPT command, thus preventing anyone from > reading the tables. I can't figure out why a simple exclusive lock > wouldn't be sufficient; can someone enlighten me? > Very simple: Because it must. All of the tables are altered, twice: - once, to remove the Slony-created triggers, and restore the table to a "Slony-less form" - a second time, to add the triggers back, and return it to replication. ALTER TABLE requires an AccessExclusiveLock to be requested, twice, as the natural result.
- Previous message: [Slony1-hackers] EXECUTE SCRIPT and deadlocks
- Next message: [Slony1-hackers] Re: XID in PG core/contrib
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-hackers mailing list