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

Поиск
Список
Период
Сортировка
От Didier Gasser-Morlay
Тема Re: can't create table on new db/schema/user
Дата
Msg-id CAF5nyP9RuyxTKCved5dC6ZJwAE9tvCJ=jZ92+kq2_5McNwAybQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: can't create table on new db/schema/user  (psql-contact@citecs.de)
Ответы [SOLVED] Re: can't create table on new db/schema/user  (psql-contact@citecs.de)
Список pgsql-novice
You must be connected to the database in psql first

\c db_chris
Then create schema ....


Le ven. 28 août 2020 à 13:28, <psql-contact@citecs.de> a écrit :
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?

I ran
        create schema     s_chris    authorization "chris";

How do I specify the database?

According to
        https://www.postgresql.org/docs/11/sql-createschema.html

there seems to be no such parameter.




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

Предыдущее
От: pgsql-novice@lists.postgresql.org
Дата:
Сообщение: SOLVED: can't create table on new db/schema/user
Следующее
От: psql-contact@citecs.de
Дата:
Сообщение: [SOLVED] Re: can't create table on new db/schema/user