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 1hTl3h-0000p1-Hk for pgsql-general@arkaria.postgresql.org; Thu, 23 May 2019 10:34:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hTl3e-0001Vp-Fa for pgsql-general@arkaria.postgresql.org; Thu, 23 May 2019 10:34:46 +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 1hTl3e-0001Vg-2o for pgsql-general@lists.postgresql.org; Thu, 23 May 2019 10:34:46 +0000 Received: from hermes.gatewaynet.com ([193.92.121.98]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hTl3a-0000ZV-Sx for pgsql-general@lists.postgresql.org; Thu, 23 May 2019 10:34:44 +0000 Received: from smadev.internal.net (pc131.internal.net [10.9.200.131]) by hermes.gatewaynet.com (8.15.2/8.15.2/Debian-8) with ESMTPS id x4NAYXNe004145 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 23 May 2019 13:34:38 +0300 Received: from smadev.internal.net (smadev [10.9.200.131]) by smadev.internal.net (8.15.2/8.15.2) with ESMTP id x4NAYX6b082653 for ; Thu, 23 May 2019 13:34:33 +0300 (EEST) (envelope-from achill@matrix.gatewaynet.com) Subject: Re: Table inheritance over schema boundaries possible To: pgsql-general@lists.postgresql.org References: <20190523054639.Horde.WeEjiGEet91mF95ZpS1d2GA@webmail.gelassene-pferde.biz> From: Achilleas Mantzios Message-ID: <6ee64dd4-bc7a-b941-a974-74a82f65cbc4@matrix.gatewaynet.com> Date: Thu, 23 May 2019 13:34:33 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.3.2 MIME-Version: 1.0 In-Reply-To: <20190523054639.Horde.WeEjiGEet91mF95ZpS1d2GA@webmail.gelassene-pferde.biz> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Virus-Scanned: clamav-milter 0.100.3 at hermes X-Virus-Status: Clean X-Spam-Status: No, score=-28.0 required=5.0 tests=ALL_TRUSTED,DYN_HAM_COORD, DYN_HAM_IT,DYN_HAM_NAUTICAL,DYN_HAM_SIGNAT1 autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on hermes.gatewaynet.com List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 23/5/19 8:46 π.μ., Thiemo Kellner wrote: > Hi all > > I am wondering if table inheritance is possible over the boundaries of schemata and different owners. > > I have database act with schemata il and scd. When I issue as IL > > create table IL.INHERITANCE_TEST() inherits (SCD.TEMPL_BK); > > I get > > [Code: 0, SQL State: 42501]  ERROR: permission denied for schema scd > > Even though I granted all privileges to IL. > > What am I missing or is it just not possible what I want to do? as of 10 (same with 11) you (IL) must be the owner of relation SCD.TEMPL_BK . Create your tables with a user who has correct privileges on both tables/schemas. > > Kind regards > > Thiemo > -- Achilleas Mantzios IT DEV Lead IT DEPT Dynacom Tankers Mgmt