Received: from avocet.prod.itd.earthlink.net (avocet.mail.pas.earthlink.net [207.217.120.50]) by postgresql.org (8.11.3/8.11.4) with ESMTP id fBKDJtm96334 for ; Thu, 20 Dec 2001 08:19:56 -0500 (EST) (envelope-from nickf@ontko.com) Received: from 1cust213.tnt1.richmond.in.da.uu.net ([63.27.103.213] helo=nick) by avocet.prod.itd.earthlink.net with smtp (Exim 3.33 #1) id 16H377-0003Q7-00; Thu, 20 Dec 2001 05:19:58 -0800 Reply-To: From: "Nick Fankhauser" To: "Ravindra Wankar" , Subject: Re: Data partitioning Date: Thu, 20 Dec 2001 08:16:54 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 In-reply-to: <3C218CEA.7040906@iname.com> Importance: Normal X-Archive-Number: 200112/138 X-Sequence-Number: 2861 I don't know what your application looks like, but we're handling a similar situation by using several databases in a single cluster. In our case, the apps are JDBC-based, so it is possible to open a connection pool to each database & easily point the same application code at different sources. This does *not* allow queries across the databases, but *does* allow us to use a single instance of the application to serve up data from different databases depending on who is asking for it. Would this address your needs? -Nick -------------------------------------------------------------------------- Nick Fankhauser nickf@ontko.com Phone 1.765.935.4283 Fax 1.765.962.9788 Ray Ontko & Co. Software Consulting Services http://www.ontko.com/ > -----Original Message----- > From: pgsql-admin-owner@postgresql.org > [mailto:pgsql-admin-owner@postgresql.org]On Behalf Of Ravindra Wankar > Sent: Thursday, December 20, 2001 2:02 AM > To: pgsql-admin@postgresql.org > Subject: [ADMIN] Data partitioning > > > > We offer a web based application to companies. By keeping a company_id > in the schema we differentiate the data amongst companies. e.g the user > table has a company_id field to distinguish users between companies. > > However, most companies are feeling "insecure" about their data not > being stored separately from others. Also from a maintenance perspective > it seems it might be better. e.g restoring the data of an individual > company will be impossible. > > Is there a way to handle this? Preferably using a single database? > > Thanks, > -- Ravi. > > > ---------------------------(end of broadcast)--------------------------- > TIP 2: you can get off all lists at once with the unregister command > (send "unregister YourEmailAddressHere" to majordomo@postgresql.org) >