Re: template1 database

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: eimantas(dot)vaiciunas(at)sc(dot)vu(dot)lt
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: template1 database
Date: 2005-03-10 06:36:29
Message-ID: 11880.1110436589@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Eimantas =?utf-8?q?Vai=C4=8Di=C5=ABnas?= <eimantas(dot)vaiciunas(at)sc(dot)vu(dot)lt> writes:
> Just been wondering how important is template1 database to PgSQL?

The database server itself doesn't care, but there are enough
client-side tools that assume template1 exists that you would not
find life pleasant if you do this.

> What would happen if i drop this database together with postgres user.

The root user does not have to be named "postgres", but you do have to
have a root user. What exactly do you think will be accomplished by
removing the postgres user?

If you are just idly searching for ways to break your database, try
removing some of the builtin datatypes from pg_type, or builtin
functions from pg_proc, etc ...

regards, tom lane

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Michael Fuhr 2005-03-10 07:20:31 Re: template1 database
Previous Message Ben Kim 2005-03-10 05:32:33 Re: Visual data model creation / maintenance tools