Re: Create user/create database outside template1

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Create user/create database outside template1
Date: 2000-05-25 17:05:40
Message-ID: 200005251705.NAA27487@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> > Well, thanks. I was going over that for my book. If I do createdb from
> > another database, I guess I get a copy of that database, right?
>
> No, it's always a copy of template1. CREATE DATABASE really doesn't
> care which database you're connected to (nor does CREATE USER).

Yes, I see that. Interesting.

--
Bruce Momjian | http://www.op.net/~candle
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Mikheev, Vadim 2000-05-25 17:14:41 RE: Berkeley DB...
Previous Message Tom Lane 2000-05-25 17:05:16 Re: Create user/create database outside template1