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 1lRjSN-000272-1j for pgsql-general@arkaria.postgresql.org; Wed, 31 Mar 2021 22:36:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lRjSL-0004Zn-S1 for pgsql-general@arkaria.postgresql.org; Wed, 31 Mar 2021 22:36:57 +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 1lRjSL-0004Zg-HI for pgsql-general@lists.postgresql.org; Wed, 31 Mar 2021 22:36:57 +0000 Received: from mail-pj1-x102a.google.com ([2607:f8b0:4864:20::102a]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lRjSI-00075q-Hi for pgsql-general@lists.postgresql.org; Wed, 31 Mar 2021 22:36:56 +0000 Received: by mail-pj1-x102a.google.com with SMTP id t18so36953pjs.3 for ; Wed, 31 Mar 2021 15:36:54 -0700 (PDT) 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=74Ic0u6G22vqAZrqaCuu5bgm3GlIQi1YmMYd8dLMDvM=; b=XJL9q8BiHeeE7/F/2loS4UbgS4fK//baol/v7HGbsy+F3eFAthetze0LmTKtGXZGiY 7BsRpV6rbgvMqJRZmpLb7Bfk0xqPvm+qyGSko8y+0ZjdXeHh3EMnI16qzFKzTqBigyvH 4uPf64WYnwM/Rpy5dKQ1GfnOzzmTqF76HQ+WxbU1KIvJPscO/+dSMr2C/71JufQcCQyF hg0qrXS8qS3ojm5UXocFLJGX6rR3wW1YvUxZXKHTBm85//J/XjEESs7u1OoDhG34XjrV B4jjKYfTIYEv2qJzuG3KhLYOIhtRE9OnmTJimRiYy2mfCPBSxsYzeZQfomm8uPIiTCdL fzMg== 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=74Ic0u6G22vqAZrqaCuu5bgm3GlIQi1YmMYd8dLMDvM=; b=sI39sYvejKuRjFRZ2oWRN8eBV6Hr0x8Z89il7qlkZCq/fhVCZdhGgdhr5F+bOYzWfk s0Xixx4vTp9AdyQk4LBgNmmxfzW+/kxKsA/QjF23B6ZvCDUiuaUjK7uB0nzF8mCSD1K1 kZE9Ln7/aFK5SBniAREl3XK/laSjE1XB5EkjKrJMniIHy5dp2iqiCIut5EHaPz/Ppl/1 47Ad6WcZop9Bru5edDm5RfwLBDWj4yfUBrIxa9biQFczSdHn/BveLIGfFdmQmr6QtHzf bGRXqaGbstI18xpGuOaBxJ9W+NGSI40D+RJ70vBQkxG0hqXq53ZGWX/jwGpoBkxHwvV/ z3jg== X-Gm-Message-State: AOAM532FtQ4UA8HInob7BTPPdc+hcrqz+AVj+av3IWgkqxQwXmHigd9x XSkk1XJ1E43XxomCeYGHFg2Wlf3xh4c= X-Google-Smtp-Source: ABdhPJxis9svnLl1gguWi/x6KDFukG5dsBhEdW4GCpaS93ZB9nEXkQ5+igyMr/3a8M0wn7rr6Emefg== X-Received: by 2002:a17:90a:f98e:: with SMTP id cq14mr5411855pjb.60.1617230212166; Wed, 31 Mar 2021 15:36:52 -0700 (PDT) Received: from [10.0.0.94] (c-73-63-59-118.hsd1.ut.comcast.net. [73.63.59.118]) by smtp.gmail.com with ESMTPSA id f65sm3626431pgc.19.2021.03.31.15.36.51 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 31 Mar 2021 15:36:51 -0700 (PDT) Subject: Re: accessing cross-schema materialized views To: pgsql-general@lists.postgresql.org References: <76fe4f3e-5e91-3199-0f70-5f20ba1e142a@minerva.info> From: Rob Sargent Message-ID: <841410d9-1221-e2cb-0de4-dfb36f6d1de7@gmail.com> Date: Wed, 31 Mar 2021 16:36:50 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <76fe4f3e-5e91-3199-0f70-5f20ba1e142a@minerva.info> Content-Type: multipart/alternative; boundary="------------A49A3FC68C10D9A2340B21C8" Content-Language: en-CA List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------A49A3FC68C10D9A2340B21C8 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 3/31/21 4:31 PM, Tim Clarke wrote: > > We have: > >     create materialized view schema1.matview..... >     grant select on table schema1.matview to mygroup > >     create view schema2.usingview as select ... from schema1.matview >     grant select on table schema2.using to mygroup > Is that schema2.using just a typo (phony names)? --------------A49A3FC68C10D9A2340B21C8 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit
On 3/31/21 4:31 PM, Tim Clarke wrote:

We have:

    create materialized view schema1.matview.....
    grant select on table schema1.matview to mygroup

    create view schema2.usingview as select ... from schema1.matview
    grant select on table schema2.using to mygroup

Is that schema2.using just a typo (phony names)?
--------------A49A3FC68C10D9A2340B21C8--