Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g9z3N-0004wH-G7 for pgsql-general@arkaria.postgresql.org; Tue, 09 Oct 2018 20:56:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g9z3L-0002Bw-E9 for pgsql-general@arkaria.postgresql.org; Tue, 09 Oct 2018 20:56:27 +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 1g9z3L-0002Bp-36 for pgsql-general@lists.postgresql.org; Tue, 09 Oct 2018 20:56:27 +0000 Received: from smtp.burggraben.net ([2a01:4f8:140:50a2::3:1]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1g9z3D-0007KP-IT for pgsql-general@lists.postgresql.org; Tue, 09 Oct 2018 20:56:25 +0000 Received: from localhost (localhost [127.0.0.1]) by smtp.burggraben.net (Postfix) with ESMTP id 4583C6002F7 for ; Tue, 9 Oct 2018 22:56:16 +0200 (CEST) X-Spam-Scanned: by amavisd-new at exwg.net Received: from smtp.burggraben.net ([127.0.0.1]) by localhost (ns.burggraben.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id e33pf0kWCtmr for ; Tue, 9 Oct 2018 22:56:04 +0200 (CEST) Received: from squirrel.exwg.net (p54852BE7.dip0.t-ipconnect.de [84.133.43.231]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "squirrel.exwg.net", Issuer "Christoph Moench-Tegeder" (verified OK)) by smtp.burggraben.net (Postfix) with ESMTPS for ; Tue, 9 Oct 2018 22:56:04 +0200 (CEST) Received: by squirrel.exwg.net (Postfix, from userid 1000) id E4A762535A5; Tue, 9 Oct 2018 22:56:03 +0200 (CEST) Date: Tue, 9 Oct 2018 22:56:03 +0200 From: Christoph Moench-Tegeder To: pgsql-general@lists.postgresql.org Subject: Re: Privilege mess? Message-ID: <20181009205603.r3pgaymxtpc2tsbw@squirrel.exwg.net> References: <20181009192629.Horde.3cygsKW_Jo7dLVp26E2y0cg@webmail.gelassene-pferde.biz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20181009192629.Horde.3cygsKW_Jo7dLVp26E2y0cg@webmail.gelassene-pferde.biz> User-Agent: NeoMutt/20170113 (1.7.2) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ## Thiemo Kellner (thiemo@gelassene-pferde.biz): > I installed pglogger (https://sourceforge.net/projects/pglogger/) and > try to insert into the "level" table as user "act" but it fails > claiming insufficient privileges even though insert is granted to > public (see below). What am I missing? Schema privileges. > ERROR: permission denied for schema logger > LINE 1: insert into logger.LEVEL ( It says "permission denied for schema", so this is not about table privileges (GRANT INSERT/UPDATE/... ON TABLE ...), but about schema provileges. I'd guess you miss USAGE on schema logger. See https://www.postgresql.org/docs/current/static/sql-grant.html AFAIK those privileges are not found in information_schema, you'll have to use pg_catalog for that. Regards, Christoph -- Spare Space.