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

From: pgsql-novice(at)lists(dot)postgresql(dot)org
To: pgsql-novice(at)lists(dot)postgresql(dot)org
Cc: psql-contact(at)citecs(dot)de
Subject: SOLVED: can't create table on new db/schema/user
Date: 2020-08-28 11:47:40
Message-ID: 20200828114740.GA14705@app.citecs
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Fri, Aug 28, 2020 at 01:28:35PM +0200, psql-contact(at)citecs(dot)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(at)(dot)(dot)(dot)

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Didier Gasser-Morlay 2020-08-28 11:47:56 Re: can't create table on new db/schema/user
Previous Message Laurenz Albe 2020-08-28 11:32:08 Re: insert vs. copy in pgAdmin