Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 927EC9FB51A for ; Wed, 6 Jun 2007 14:29:49 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 17497-04 for ; Wed, 6 Jun 2007 14:29:46 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from mail.emolecules.com (66-226-76-106.dedicated.abac.net [66.226.76.106]) by postgresql.org (Postfix) with ESMTP id 4189F9FB525 for ; Wed, 6 Jun 2007 14:29:46 -0300 (ADT) Received: (qmail 10962 invoked by uid 2020); 6 Jun 2007 10:29:45 -0700 Received: from wsip-68-224-174-233.sd.sd.cox.net (HELO ?192.168.0.3?) (68.224.174.233) by 192.168.0.4 with SMTP; 6 Jun 2007 10:29:45 -0700 Message-ID: <4666EF9D.90500@emolecules.com> Date: Wed, 06 Jun 2007 10:32:13 -0700 From: Craig James User-Agent: Thunderbird 1.5.0.12 (X11/20070509) MIME-Version: 1.0 To: pgsql-performance@postgresql.org Subject: Re: Thousands of tables versus on table? References: <1180980943.31471.322.camel@archimedes> <46645DD9.7030805@soliantconsulting.com> <877iqjmro5.fsf@oxford.xeocode.com> <46647427.4030103@g2switchworks.com> <466593E5.1010904@g2switchworks.com> <87sl96z0wf.fsf@oxford.xeocode.com> <10525.1181080765@sss.pgh.pa.us> <4666DF99.3010809@emolecules.com> <4666E5A0.40604@g2switchworks.com> In-Reply-To: <4666E5A0.40604@g2switchworks.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.04 tagged_above=0 required=5 tests=AWL=-0.096, BAYES_50=0.001, FORGED_RCVD_HELO=0.135 X-Spam-Level: X-Archive-Number: 200706/98 X-Sequence-Number: 25131 Scott Marlowe wrote: > OTOH, there are some things, like importing data, which are MUCH faster > in pgsql than in the big database. An excellent point, I forgot about this. The COPY command is the best thing since the invention of a shirt pocket. We have a database-per-customer design, and one of the mosterous advantages of Postgres is that we can easily do backups. A pg_dump, then scp to a backup server, and in just a minute or two we have a full backup. For recovery, pg_restore is equally fast and amazing. Last time I checked, Oracle didn't have anything close to this. Craig