SOLVED: can't create table on new db/schema/user

Поиск
Список
Период
Сортировка
От pgsql-novice@lists.postgresql.org
Тема SOLVED: can't create table on new db/schema/user
Дата
Msg-id 20200828114740.GA14705@app.citecs
обсуждение исходный текст
Ответ на Re: can't create table on new db/schema/user  (psql-contact@citecs.de)
Список pgsql-novice
On Fri, Aug 28, 2020 at 01:28:35PM +0200, psql-contact@citecs.de wrote:
> On Fri, Aug 28, 2020 at 12:56:12PM +0200, hubert depesz lubaczewski wrote:
> > Schema s_chris is in database "postgres", but you try to make the table
> > in "db_chris".
> > 
> > So you have to make the schema in db_chris database.
> 
> How would I do that?

You have to actually _connnect_ to the database the schema is created for:

    \connect db_chris
    create schema     s_chris    authorization "chris";
    \connect postgres

Yeah, that's why it's called pgsql-novice@...



В списке pgsql-novice по дате отправления:

Предыдущее
От: Laurenz Albe
Дата:
Сообщение: Re: insert vs. copy in pgAdmin
Следующее
От: Didier Gasser-Morlay
Дата:
Сообщение: Re: can't create table on new db/schema/user