pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jaime Casanova <systemguards@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Michael Riess <mlriess@gmx.de>
Cc: pgsql-performance@postgresql.org
Subject: Re: 15,000 tables
Date: Thu, 1 Dec 2005 11:15:00 -0500
Message-ID: <c2d9e70e0512010815h71c37d61hc9b13fa849493046@mail.gmail.com> (raw)
In-Reply-To: <11360.1133453022@sss.pgh.pa.us>
References: <dmmujf$2rgd$1@news.hub.org>
	<11360.1133453022@sss.pgh.pa.us>

On 12/1/05, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Michael Riess <mlriess@gmx.de> writes:
> > (We NEED that many tables, please don't recommend to reduce them)
>
> No, you don't.  Add an additional key column to fold together different
> tables of the same structure.  This will be much more efficient than
> managing that key at the filesystem level, which is what you're
> effectively doing now.
>
> (If you really have 15000 distinct rowtypes, I'd like to know what
> your database design is...)
>
>                        regards, tom lane
>

Maybe he is using some kind of weird ERP... take the case of BaaN
(sadly i use it in my work): BaaN creates about 1200 tables per
company and i have no control of it... we have about 12000 tables
right now...

--
regards,
Jaime Casanova
(DBA: DataBase Aniquilator ;)



view thread (32+ messages)  latest in thread

Message-ID: <c2d9e70e0512010815h71c37d61hc9b13fa849493046@mail.gmail.com>
Permalink:  ../c2d9e70e0512010815h71c37d61hc9b13fa849493046@mail.gmail.com/
Also on:    postgresql.org/message-id/c2d9e70e0512010815h71c37d61hc9b13fa849493046@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: systemguards@gmail.com, tgl@sss.pgh.pa.us, mlriess@gmx.de
  Subject: Re: 15,000 tables
  In-Reply-To: <c2d9e70e0512010815h71c37d61hc9b13fa849493046@mail.gmail.com>
  References: <dmmujf$2rgd$1@news.hub.org> <11360.1133453022@sss.pgh.pa.us> <c2d9e70e0512010815h71c37d61hc9b13fa849493046@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox