From: | Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at> |
---|---|
To: | "Andreas Kretschmer *EXTERN*" <akretschmer(at)spamfence(dot)net>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Database schema |
Date: | 2012-12-05 09:19:59 |
Message-ID: | A737B7A37273E048B164557ADEF4A58BA67E@ntex2010a.host.magwien.gv.at |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Andreas Kretschmer wrote:
> Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at> wrote:
>> Dhiraj Gupta wrote:
>>> I have created a database name '"ofbiz". then the default schema name "public "
>>> created automatically. I want to create schema name ofbiz in the database "ofbiz"
>>> when I create database name "ofbiz" then the schema name "ofbiz" will create automatically.
>>> how it is possible if yes,
>>
>> There is no way to automatically create a schema when you create a database.
>> Connect to the newly created database and create it with CREATE SCHEMA.
>> You can DROP SCHEMA public if you don't need it.
>
> There is a way to create a so called schema in every new created
> database: create that schema in the template1, or create a new template
> database and use this template to create a new database.
Technically you are right, but from the original question I assumed
that the schema should have the same name as the database.
Yours,
Laurenz Albe
From | Date | Subject | |
---|---|---|---|
Next Message | Stefan Keller | 2012-12-05 10:05:15 | Re: Permission denied in file_fdw (Windows) |
Previous Message | Albe Laurenz | 2012-12-05 09:06:09 | Re: how do I grant select to one user for all tables in a DB? |