Received: from anchor-post-31.mail.demon.net (anchor-post-31.mail.demon.net [194.217.242.89]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id eBKMeI626513 for ; Wed, 20 Dec 2000 17:40:18 -0500 (EST) (envelope-from olly@lfix.co.uk) Received: from lfix.demon.co.uk ([158.152.59.127] helo=linda.lfix.co.uk) by anchor-post-31.mail.demon.net with esmtp (Exim 2.12 #1) id 148ru0-000PUA-0V; Wed, 20 Dec 2000 22:40:05 +0000 Received: from lfix.co.uk (olly@localhost [127.0.0.1]) by linda.lfix.co.uk (8.11.1/8.11.1/Debian 8.11.0-6) with ESMTP id eBKMe4P00769; Wed, 20 Dec 2000 22:40:04 GMT Message-Id: <200012202240.eBKMe4P00769@linda.lfix.co.uk> X-Authentication-Warning: linda.lfix.co.uk: Host olly@localhost [127.0.0.1] claimed to be lfix.co.uk X-Mailer: exmh version 2.2 06/23/2000 (debian 2.2-1) with nmh-1.0.4+dev X-URL: http://www.lfix.co.uk/oliver X-face: "xUFVDj+ZJtL_IbURmI}!~xAyPC"Mrk=MkAm&tPQnNq(FWxv49R}\>0oI8VM?O2VY+N7@F- KMLl*!h}B)u@TW|B}6 cc: Ragnar =?iso-8859-1?Q?Kj=F8rstad?= , pgsql Admin Mailing List Subject: Re: Re: Restore template1 In-reply-to: Message from Luis Sousa of Wed, 20 Dec 2000 15:49:02 GMT. <3A40D4EE.EAEBA1B@ualg.pt> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Date: Wed, 20 Dec 2000 22:40:03 +0000 From: "Oliver Elphick" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.postgresql.org id eBKMeJ626514 X-Archive-Number: 200012/136 X-Sequence-Number: 332 Luis Sousa wrote: >What really does "initdb" ? > >It creates a new database system but is for use of the user that created her >!!! initdb creates the database structure including a database (template1) which is the model for all other databases created in the future. The whole structure is owned by the UNIX user who ran initdb and a PostgreSQL user of the same name is created. This user is the PostgreSQL administrator, who can create other users (PostgreSQL users, not Unix users) and databases. He can give other users the right to create databases; tables in a database belong to the PostgreSQL user who creates the tables. -- Oliver Elphick Oliver.Elphick@lfix.co.uk Isle of Wight http://www.lfix.co.uk/oliver PGP: 1024R/32B8FAA1: 97 EA 1D 47 72 3F 28 47 6B 7E 39 CC 56 E4 C1 47 GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C ======================================== "And she shall bring forth a son, and thou shall call his name JESUS; for he shall save his people from their sins." Matthew 1:21