Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iXnpu-000466-Fi for pgsql-general@arkaria.postgresql.org; Thu, 21 Nov 2019 14:53:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iXnpt-0005vO-9N for pgsql-general@arkaria.postgresql.org; Thu, 21 Nov 2019 14:53:33 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iXnps-0005vH-Lp for pgsql-general@lists.postgresql.org; Thu, 21 Nov 2019 14:53:33 +0000 Received: from mail-oi1-x241.google.com ([2607:f8b0:4864:20::241]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iXnpq-0004OV-6n for pgsql-general@lists.postgresql.org; Thu, 21 Nov 2019 14:53:31 +0000 Received: by mail-oi1-x241.google.com with SMTP id v138so3412884oif.6 for ; Thu, 21 Nov 2019 06:53:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=GE4A2F104PMhqHXXwJhgbYwjSczApjbw3HFUMa9f7OY=; b=uXzFMl4F5e48BUm9SCvM8hjMsJkgqTIdDBeV3GHzxCigFvArbNptaDS9IUQMlMreVf hWefiTKVtIcHo0LRSa9fuOdwc/+Pf7ewINML16xml2HKHHcwTWhcJEMKKCfpl5+BiJ+H yXHmFyA04JcCaGGvt8S4bLoCZfygHuoXrxnEmV7TFtAxiMhA5tI5H/CZJnBjCvxwHzQw LBemNqV7OVptvQAk+oKKMXdc9hMzhw3dKWR5t7hZ4+J24nCYVbZkFhuvnoJBsEFixUlt fLTrgFj0C16eofec84TSvLwsGQpKnk0OFuOdRUzXOK7JK/dc0TPIGf7/PAIupvU4FXGo tzSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=GE4A2F104PMhqHXXwJhgbYwjSczApjbw3HFUMa9f7OY=; b=GtMSP2a6LuzE94pUcJdOeUW2YBPb5hMg7zXA2U00bh9e2+FLR6pE6pP65VGmVuxtLw guVRwNOYXTJYnY3GCmMbBfKbyJL5SjyJnkWYwRVER/PHdYjNfvJZ+O6GprUP5otgRQsD n+YKsEHUnsiIkbaxjBuNWa5P18lKUSK5eCMiluzqKXC3xxScPkuK+E4u1y9zWhrVU7JX fZMEswE+szDfuCiaPON3P9uFOShvI9ySXrra8Afu2c4YVJl93Mgs2J4Hzb/Y5eMobEVE KeABx0f6AhbQ6cVDmlG4FRzRIjH3PfwEBavP+wovgvY9+b4bQaGGzmLTq6NPJWXx1M78 zwJg== X-Gm-Message-State: APjAAAUjviNrog7j6pkKb5Xrn0BMB9uVjN4+r1UDMY8yR+VF2ItZ1gAz hOoh4L1qm4cSHcygx4qR3JAau/6ZMRyFPw== X-Google-Smtp-Source: APXvYqyL1gvNVQ4Sz4MXoQQf3AWWZ7la9vPihn7gbQui7zkNT7m2SSTZwQvUn6KHBu6a7Ej64cu/oA== X-Received: by 2002:aca:1e02:: with SMTP id m2mr8073749oic.81.1574348008882; Thu, 21 Nov 2019 06:53:28 -0800 (PST) Received: from [192.168.1.10] (ip70-186-126-197.no.no.cox.net. [70.186.126.197]) by smtp.googlemail.com with ESMTPSA id u204sm969709oig.35.2019.11.21.06.53.28 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Nov 2019 06:53:28 -0800 (PST) Subject: Re: Isolation of multiple databse instances provided by a single postgres server To: pgsql-general@lists.postgresql.org References: <20191120220353.GA24554@panix.com> <20191121115549.GA3417@panix.com> <20191121144232.GB18839@panix.com> From: Ron Message-ID: <18757dce-745f-a460-b052-7973785ff6b1@gmail.com> Date: Thu, 21 Nov 2019 08:53:27 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191121144232.GB18839@panix.com> Content-Type: multipart/alternative; boundary="------------D69713064766DC2842E617E9" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------D69713064766DC2842E617E9 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 11/21/19 8:42 AM, stan wrote: > On Thu, Nov 21, 2019 at 08:18:21AM -0600, Ron wrote: [snip] >> Yes, but ... schema in Postgres are /different/ from Oracle schema.?? In >> Postgres, the CREATE SCHEMA command creates a schema, whereas CREATE USER >> creates a schema in Oracle. > I am still struggling with the schema - role - user relationship in Postgres. > It appears to me there is one more layer than is needed/useful. For one thing, there are no users in Postgres anymore. https://www.postgresql.org/docs/9.6/sql-createuser.html CREATE USERis now an alias forCREATE ROLE . The only difference is that when the command is spelledCREATE USER,LOGINis assumed by default, whereasNOLOGINis assumed when the command is spelledCREATE ROLE. -- Angular momentum makes the world go 'round. --------------D69713064766DC2842E617E9 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit On 11/21/19 8:42 AM, stan wrote:
On Thu, Nov 21, 2019 at 08:18:21AM -0600, Ron wrote:
[snip]
Yes, but ... schema in Postgres are /different/ from Oracle schema.?? In
Postgres, the CREATE SCHEMA command creates a schema, whereas CREATE USER
creates a schema in Oracle.
I am still struggling with the schema - role - user relationship in Postgres.
It appears to me there is one more layer than is needed/useful.

For one thing, there are no users in Postgres anymore.

https://www.postgresql.org/docs/9.6/sql-createuser.html

CREATE USER is now an alias for CREATE ROLE. The only difference is that when the command is spelled CREATE USER, LOGIN is assumed by default, whereas NOLOGIN is assumed when the command is spelled CREATE ROLE.


--
Angular momentum makes the world go 'round.
--------------D69713064766DC2842E617E9--