Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e6dLd-0006AJ-Ui for pgsql-bugs@arkaria.postgresql.org; Mon, 23 Oct 2017 14:04:58 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1e6dLd-0006Uu-Ha for pgsql-bugs@arkaria.postgresql.org; Mon, 23 Oct 2017 14:04:57 +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.84_2) (envelope-from ) id 1e6dKt-0004Bk-Lc for pgsql-bugs@postgresql.org; Mon, 23 Oct 2017 14:04:11 +0000 Received: from mail-wm0-x229.google.com ([2a00:1450:400c:c09::229]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1e6dKi-0003Db-Hf for pgsql-bugs@postgresql.org; Mon, 23 Oct 2017 14:04:10 +0000 Received: by mail-wm0-x229.google.com with SMTP id z3so3096770wme.5 for ; Mon, 23 Oct 2017 07:04:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=OS7NQmVpc6yPnuGVnb7VvbMQ8rTwUnAXLo0RN/qEKGs=; b=SrMz26GFfKL1oPYjv+Rf7LqUoF/e+iOngnDMYFUogvWnE6cRX4Vp+Dp5pTjA/+o5+l Bd80RHveI8YO6BTgxkSPBOoNu5XrPMQ7acOy8i3l5D74infphxFiFWjtOy+xbulhAW7L TUoQ4q9cFhApmQYUvZqk83npJj7G6pM3+hkpDdxmko/Zp0QVJnrlw7H6YO4r6XMMRDFY eu0iLeNXxGBMyH9TV7jIrfo8jyDx90oW/3L3TyAEPumu0EvAHOAVAGkZXg3e7h9PBv2T oVODxiX5PC821EyOgEcYUTvJ5lfRLmbIsQ7o2M0E9rX8Nk6h12cI3ADJzP6fal8n0Czy jFPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=OS7NQmVpc6yPnuGVnb7VvbMQ8rTwUnAXLo0RN/qEKGs=; b=f8GmSw9pwomVbHJffMmdfb+2LgY/idHMrpbGdZ4yWtrD+MRLAiNEzuV6EqU49rrjwt MgI4GH1HOJta/j9wHVhf7IFytusWh7S4nz9jllz97M+55VzQMu0C8WNQMyo0Ff2ybWM0 3slgaWZTxWmmzIVVTyXfkl8Dap8U/TaoQ5ta9S5MuDBsW9SAxvGa3LHNwaXbU5/XVTLU zEQJisgHNsz5UVHXiV5o/ZxegnqXRsHG+ggTlnSbblhUidhBZSUyjlX4sEqJxrxLGKbc F5wmhVpl6OsaErYARxjtsY3/twLazoyvM8TB0yYtty9srNdjLTCGwkh/M1qwWS7WetAY 0AbQ== X-Gm-Message-State: AMCzsaWtKQH6AQZZTbZ4v+r7W7CS2T9ou4h5/4POTDOpMMvGA99XasiC f0/eKT4YlLVcEy2x8fYShh0DgQ== X-Google-Smtp-Source: ABhQp+SnZt851W0uelujuo1q6QxqgdzjjQtEpIuSCgEiooDb1pdTfunoQsJ4Lx569krcKn24DNGu+Q== X-Received: by 10.28.113.71 with SMTP id m68mr3680264wmc.1.1508767438546; Mon, 23 Oct 2017 07:03:58 -0700 (PDT) Received: from alvin.alvh.no-ip.org (net-37-182-231-222.cust.vodafonedsl.it. [37.182.231.222]) by smtp.gmail.com with ESMTPSA id 76sm3965310wmj.37.2017.10.23.07.03.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 23 Oct 2017 07:03:58 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 28734EBF; Mon, 23 Oct 2017 16:03:57 +0200 (CEST) Date: Mon, 23 Oct 2017 16:03:57 +0200 From: Alvaro Herrera To: Feike Steenbergen Cc: Reinier Haasjes , PostgreSQL mailing lists Subject: Re: [pg_dump] not dumping some default privileges Message-ID: <20171023140357.6rufr5o7wnjmbew6@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20170306-137-4415bd-dirty (1.8.0) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Feike Steenbergen wrote: > On 23 October 2017 at 14:54, Alvaro Herrera > wrote: > > > > Reinier Haasjes wrote: > > > Hi, > > > > > > I noticed that pg_dump since 9.6 is missing some default privileges > > Hmm, I can confirm that 9.6 seems to have this problem while 9.5 does > > not seem to have it. Must have been broken at some point during the > > extensive pg_dump patches in 9.6 ... I'll give this a look. > > in buildACLQueries there is a filter to exclude those acl's that match the > pg_init_privs or default pg_catalog.acldefault for that role. Ah, thanks, Feike. So what is going on is that those commands don't actually have any visible effect in pg_dump because they change the privileges from the default state to a state that's identical to the default. I suppose that makes sense. However, I don't think Reinier would have gone to the trouble of reporting the problem unless there was something actually being affected by it. Am I mistaken? -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs