Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kBd1M-0007c2-4n for pgsql-novice@arkaria.postgresql.org; Fri, 28 Aug 2020 11:58:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kBd1K-00011C-Di for pgsql-novice@arkaria.postgresql.org; Fri, 28 Aug 2020 11:58:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kBcrA-00052C-CU for pgsql-novice@lists.postgresql.org; Fri, 28 Aug 2020 11:47:44 +0000 Received: from gw.citecs.de ([212.9.189.66]) by magus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kBcr8-00020J-B0 for pgsql-novice@lists.postgresql.org; Fri, 28 Aug 2020 11:47:44 +0000 Received: from app.citecs ([10.0.0.50]) by gw.citecs.de with esmtp (Exim 3.35 #1 (Debian)) id 1kBcr6-0000oN-00; Fri, 28 Aug 2020 13:47:40 +0200 Received: from chris by app.citecs proof01 snxeqzsn with local (Exim 4.80) id 1kBcr6-00041L-JX; Fri, 28 Aug 2020 13:47:40 +0200 Date: Fri, 28 Aug 2020 13:47:40 +0200 From: pgsql-novice@lists.postgresql.org To: pgsql-novice@lists.postgresql.org Cc: psql-contact@citecs.de Subject: SOLVED: can't create table on new db/schema/user Message-ID: <20200828114740.GA14705@app.citecs> References: <20200828103202.GA6864@app.citecs> <20200828105612.GB7316@depesz.com> <20200828112835.GA6710@app.citecs> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200828112835.GA6710@app.citecs> X-pgp-fingerprint: 4096R/3B7D0DF2 / B865 A021 AC93 B61F 4476 32A6 04A6 FBDD 3B7D 0DF2 X-pgp-key-url: http://www.citecs.de/pgpkey.chris.asc X-PGP-Key: http://www.citecs.de/pgpkey.chris.asc Organization: private User-Agent: Mutt/1.5.21 (2010-09-15) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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@...