X-Original-To: pgsql-sql-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id DF69D9FA502 for ; Tue, 27 Jun 2006 15:37:56 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 20244-02 for ; Tue, 27 Jun 2006 15:37:47 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from main2.mycybernet.net (main2.mycybernet.net [209.222.63.140]) by postgresql.org (Postfix) with ESMTP id EC5049FA10A for ; Tue, 27 Jun 2006 15:37:46 -0300 (ADT) Received: from 227-54-222-209.mycybernet.net ([209.222.54.227] helo=phlogiston.dydns.org) by main2.mycybernet.net with esmtp (Exim 4.62) (envelope-from ) id 1FvIXw-00075Z-Um for pgsql-sql@postgresql.org; Tue, 27 Jun 2006 14:44:25 -0400 Received: by phlogiston.dydns.org (Postfix, from userid 1000) id 8A4C94172; Tue, 27 Jun 2006 14:37:39 -0400 (EDT) Date: Tue, 27 Jun 2006 14:37:39 -0400 From: Andrew Sullivan To: pgsql-sql@postgresql.org Subject: Re: Fwd: Start up question about triggers Message-ID: <20060627183739.GM27997@phlogiston.dyndns.org> References: <20060627113936.GA27997@phlogiston.dyndns.org> <200606271148.k5RBmcQV027906@auth-smtp.hol.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200606271148.k5RBmcQV027906@auth-smtp.hol.gr> User-Agent: Mutt/1.5.9i X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/288 X-Sequence-Number: 25524 On Tue, Jun 27, 2006 at 02:48:38PM +0300, Forums @ Existanze wrote: > Hello again andrew, > > Actually man I do need to be able to write to both databases, and keep them > synchronized, and all this because of the recurring xenofobia for technology Then sorry, but this can't be done out of the box by anything. You have all manner of race conditions here. > and the fear of "hackers" (I know the difference between hackers and Moreover, this won't solve their problem: if someone compromised the application, both databases would be corrupted. There's no way to avoid that in such a design. Better to use Slony in log-shipping mode (or PITR) and keep backups of all the change sets. Then if someone broke in, you'd at least be able to roll back to the known-good state. A -- Andrew Sullivan | ajs@crankycanuck.ca The fact that technology doesn't work is no bar to success in the marketplace. --Philip Greenspun