Re: Re: [COMMITTERS] Can not create more than 32766 databases in ufs file system. - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Re: [COMMITTERS] Can not create more than 32766 databases in ufs file system.
Date
Msg-id 22500.1252806201@sss.pgh.pa.us
Whole thread Raw
In response to Re: Re: [COMMITTERS] Can not create more than 32766 databases in ufs file system.  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> Tom Lane wrote:
>> So the question I would ask goes more like "do you really need 32K
>> databases in one installation?  Have you considered using schemas
>> instead?"  Databases are, by design, pretty heavyweight objects.

> That's a fair question. OTOH, devising a scheme to get around it would 
> not be terribly difficult, would it? I can imagine a scheme where the 
> subdir for a database was lo/hi for some division of the database oid. I 
> guess it could make matters ugly for pg_migrator, though.

As I said earlier, the number-of-subdirectories issue is not the
important thing.  The OP was already up to 160GB worth of system
catalogs before his filesystem wimped out, and would be needing
terabytes if he wanted to go significantly past the filesystem limit.
So there is no point in devising some clever workaround for the
limitations of one filesystem unless you want to reconsider our system
catalog representation --- and that will carry actual user-visible
functional costs; it's not just a cute hack somewhere in the guts of
the system.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: Re: [COMMITTERS] Can not create more than 32766 databases in ufs file system.
Next
From: daveg
Date:
Subject: Re: Ragged CSV import