SOLVED: can't create table on new db/schema/user - Mailing list pgsql-novice

From pgsql-novice@lists.postgresql.org
Subject SOLVED: can't create table on new db/schema/user
Date
Msg-id 20200828114740.GA14705@app.citecs
Whole thread Raw
In response to Re: can't create table on new db/schema/user  (psql-contact@citecs.de)
List 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 by date:

Previous
From: Laurenz Albe
Date:
Subject: Re: insert vs. copy in pgAdmin
Next
From: Didier Gasser-Morlay
Date:
Subject: Re: can't create table on new db/schema/user