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

pgsql-novice@lists.postgresql.org

From: pgsql-novice@lists.postgresql.org
To: pgsql-novice@lists.postgresql.org
Cc: psql-contact@citecs.de
Date: 2020-08-28T11:47:40Z
Lists: 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@...