Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fB47g-0008Do-I2 for pgsql-general@arkaria.postgresql.org; Tue, 24 Apr 2018 20:01:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fB47e-0001W5-To for pgsql-general@arkaria.postgresql.org; Tue, 24 Apr 2018 20:01:06 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fB47e-0001Vv-Hy for pgsql-general@lists.postgresql.org; Tue, 24 Apr 2018 20:01:06 +0000 Received: from mx1.mailbox.org ([80.241.60.212]) by makus.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fB47W-0005hC-W8 for pgsql-general@postgresql.org; Tue, 24 Apr 2018 20:01:05 +0000 Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id E338F43311; Tue, 24 Apr 2018 22:00:54 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter01.heinlein-hosting.de (spamfilter01.heinlein-hosting.de [80.241.56.115]) (amavisd-new, port 10030) with ESMTP id yAgWzuy-pNMu; Tue, 24 Apr 2018 22:00:53 +0200 (CEST) Message-ID: <1524600047.2271.3.camel@cybertec.at> Subject: Re: Using the public schema From: Laurenz Albe To: Charlin Barak , "pgsql-general@postgresql.org >> PG-General Mailing List" Date: Tue, 24 Apr 2018 22:00:47 +0200 In-Reply-To: References: Organization: Cybertec Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Charlin Barak wrote: > We will be developing three new applications in PostgreSQL, each having its own > database instance running on different hosts. We will only have one schema per > Postgres instance. The data is read-write only by one application/schema in the > DB instance and the data is published to other applications via API calls. > > In such a standalone database configuration, are there any security implications > or any downsides to creating the application in the public schema? No, that's fine. Just REVOKE CREATE ON SCHEMA public FROM PUBLIC. Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com