X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 514DED1B9A9 for ; Mon, 23 Feb 2004 02:54:24 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 24523-10 for ; Sun, 22 Feb 2004 22:54:24 -0400 (AST) Received: from ind-iport-1.cisco.com (ind-iport-1-sec.cisco.com [64.104.129.9]) by svr1.postgresql.org (Postfix) with ESMTP id A3BC0D1B901 for ; Sun, 22 Feb 2004 22:54:19 -0400 (AST) Received: from india-core-1.cisco.com (64.104.129.221) by ind-iport-1.cisco.com with ESMTP; 23 Feb 2004 13:59:01 +0530 Received: from cisco.com (charminar.cisco.com [192.135.240.11]) by india-core-1.cisco.com (8.12.10/8.12.6) with ESMTP id i1N2sAWT022966; Sun, 22 Feb 2004 18:54:11 -0800 (PST) Received: from sbiswasw2k01 (dhcp-10-77-21-42.cisco.com [10.77.21.42]) by cisco.com (8.8.8-Cisco List Logging/8.8.8) with ESMTP id IAA20812; Mon, 23 Feb 2004 08:22:22 +0530 (IST) From: "Sumita Biswas" To: "'Tom Lane'" Cc: Subject: Re: Postgres DB Date: Mon, 23 Feb 2004 08:24:17 +0530 Message-ID: <001101c3f9b8$54403aa0$2a154d0a@apac.cisco.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 In-reply-to: <11975.1077379855@sss.pgh.pa.us> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4927.1200 Importance: Normal X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200402/381 X-Sequence-Number: 17071 Hi Tom, I have read that template1 is the default DB that gets installed with Postgres. But when I type the command "psql" and don't specify a DB name, it says that: psql: FATAL: Database "postgres" does not exist in the system catalog. This is the reason why I guessed that it expects the postgres DB be installed by default. Also earlier I have seen this DB get installed by itself, although we have not created it. Any answers to the above questions. Regards, Sumita -----Original Message----- From: Tom Lane [mailto:tgl@sss.pgh.pa.us] Sent: Saturday, February 21, 2004 9:41 PM To: Sumita Biswas Cc: pgsql-sql@postgresql.org Subject: Re: [SQL] Function "Sumita Biswas" writes: > We installed postgres, but it did not install the default DB > "postgres". The only DB that exists in a fresh installation is "template1". If you want to create a DB named "postgres", use the createdb script. BTW, it's bad manners to ask a new question by following up an existing unrelated thread. Start a new thread with an appropriate subject line. Otherwise you're wasting the time of the other people on the mailing list, who are exactly the people who might answer your question. regards, tom lane