pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: eimantas.vaiciunas@sc.vu.lt
Cc: pgsql-admin@postgresql.org
Subject: Re: template1 database
Date: Thu, 10 Mar 2005 01:36:29 -0500
Message-ID: <11880.1110436589@sss.pgh.pa.us> (raw)
In-Reply-To: <200503100817.03215.eimantas.vaiciunas@sc.vu.lt>
References: <200503100817.03215.eimantas.vaiciunas@sc.vu.lt>

Eimantas =?utf-8?q?Vai=C4=8Di=C5=ABnas?= <eimantas.vaiciunas@sc.vu.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



view thread (8+ messages)  latest in thread

Message-ID: <11880.1110436589@sss.pgh.pa.us>
Permalink:  ../11880.1110436589@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/11880.1110436589@sss.pgh.pa.us

 · 

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-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, eimantas.vaiciunas@sc.vu.lt
  Subject: Re: template1 database
  In-Reply-To: <11880.1110436589@sss.pgh.pa.us>
  References: <200503100817.03215.eimantas.vaiciunas@sc.vu.lt> <11880.1110436589@sss.pgh.pa.us>

* 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