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 1iSTYB-0002c6-7o for pgsql-general@arkaria.postgresql.org; Wed, 06 Nov 2019 22:13:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iSTY9-00050Z-SO for pgsql-general@arkaria.postgresql.org; Wed, 06 Nov 2019 22:13:13 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iSTY9-00050S-J1 for pgsql-general@lists.postgresql.org; Wed, 06 Nov 2019 22:13:13 +0000 Received: from uucp.dinoex.org ([2a0b:f840::12]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iSTY7-00010X-7m for pgsql-general@postgresql.org; Wed, 06 Nov 2019 22:13:13 +0000 Received: from uucp.dinoex.sub.de (uucp.dinoex.org [185.220.148.12]) by uucp.dinoex.org (8.16.0.41/8.16.0.41) with ESMTPS id xA6MD4Dg073771 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Wed, 6 Nov 2019 23:13:05 +0100 (CET) (envelope-from pmc@citylink.dinoex.sub.org) X-MDaemon-Deliver-To: X-Authentication-Warning: uucp.dinoex.sub.de: Host uucp.dinoex.org [185.220.148.12] claimed to be uucp.dinoex.sub.de Received: from citylink.dinoex.sub.org (uucp@localhost) by uucp.dinoex.sub.de (8.16.0.41/8.16.0.41/Submit) with UUCP id xA6MD4bh073770 for pgsql-general@postgresql.org; Wed, 6 Nov 2019 23:13:04 +0100 (CET) (envelope-from pmc@citylink.dinoex.sub.org) Received: from gate.oper.dinoex.org (gate-e [192.168.98.2]) by citylink.dinoex.sub.de (8.15.2/8.15.2) with ESMTP id xA6Li1I9031793 for ; Wed, 6 Nov 2019 22:44:01 +0100 (CET) (envelope-from peter@gate.oper.dinoex.org) Received: from gate.oper.dinoex.org (gate-e [192.168.98.2]) by gate.oper.dinoex.org (8.15.2/8.15.2) with ESMTP id xA6LffHS031572 for ; Wed, 6 Nov 2019 22:41:41 +0100 (CET) (envelope-from peter@gate.oper.dinoex.org) Received: (from peter@localhost) by gate.oper.dinoex.org (8.15.2/8.15.2/Submit) id xA6LfftB031571 for pgsql-general@postgresql.org; Wed, 6 Nov 2019 22:41:41 +0100 (CET) (envelope-from peter) Date: Wed, 6 Nov 2019 22:41:41 +0100 From: Peter To: pgsql-general@postgresql.org Subject: Re: Locked out of schema public Message-ID: <20191106214141.GA24734@gate.oper.dinoex.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.12.2 (2019-09-21) X-Milter: Spamilter (Reciever: uucp.dinoex.sub.de; Sender-ip: 185.220.148.12; Sender-helo: uucp.dinoex.sub.de;) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (uucp.dinoex.org [185.220.148.12]); Wed, 06 Nov 2019 23:13:07 +0100 (CET) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi Adrian, okay, lets check these out: > What is ${daily_pgsql_user} equal to? postgres. The owner of the installation. > I am not seeing -U postgres. > Are you sure there is not something else specifying the user e.g. env > PGUSER? I'm sure. The log shows the nightly backup connections as postgres:, and all connections except postgres:postgres work only with kerberos - it cannot do much bogus there. > What user are you doing below as? Ordinary application user. The postgres and superusers do get access to the tables. > What does \dn+ show? => \dn+ List of schemas Name | Owner | Access privileges | Description --------+----------+----------------------+------------------------ public | postgres | postgres=UC/postgres+| standard public schema | | pgsql=UC/postgres | And after restoring with "pg_restore -C -c -d postgres", when it works correctly again, then it shows: -> \dn+ List of schemas Name | Owner | Access privileges | Description --------+----------+----------------------+------------------------ public | postgres | postgres=UC/postgres+| standard public schema | | =UC/postgres +| | | pgsql=UC/postgres | So that was the command I was searching for. Thank You! For now I hold on the bug... cheers, PMc