Christopher Kings-Lynne wrote:
>> Probably, though the create db issue is a good reason not to use
>> template1.
>
>
> Create db issue?
CREATE TABLE (implicitely using TEMPLATE template1) often fails because
template1 has connections exceeding the current one.
>
>> So may I propose to have a pg_system database created by initdb, as a
>> copy from template1 in 8.1?
>
>
> But then dbas will block off access to that db, or drop it and we're
> back to square one...
Sure, some dbas also might like to drop INFORMATION_SCHEMA, or modify
system catalogs or worse to bend the system as they like, effectively
disabling common tools. But if we create this db with initdb, I'd
expect to find it in the vast majority of installations. If not, we
could fall back to template1 for admin tools.
Regards,
Andreas