"Subbiah, Stalin" <SSubbiah@netopia.com> writes:
> Is it better to have 1000 databases vs 1000 schemas in a
> database cluster.
You almost certainly want to go for schemas, at least from a performance
point of view. The overhead of a schema is small (basically one more
row in pg_namespace) whereas the overhead of a database is not trivial.
The main reason you might not want to use schemas is if you want fairly
airtight separation between different services. Separate databases
would prevent services from looking at each others' catalog entries.
regards, tom lane