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 1hcJoU-0005Yi-3e for pgsql-committers@arkaria.postgresql.org; Sun, 16 Jun 2019 01:18:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hcJoS-0003rx-B2 for pgsql-committers@arkaria.postgresql.org; Sun, 16 Jun 2019 01:18:28 +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 1hcJoS-0003qi-4O for pgsql-committers@lists.postgresql.org; Sun, 16 Jun 2019 01:18:28 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hcJoL-00016y-GE; Sun, 16 Jun 2019 01:18:27 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x5G1IJCS008834; Sat, 15 Jun 2019 21:18:19 -0400 From: Tom Lane To: Tomas Vondra cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Rework the pg_statistic_ext catalog In-reply-to: References: Comments: In-reply-to Tomas Vondra message dated "Sat, 15 Jun 2019 23:21:16 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <8832.1560647898.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sat, 15 Jun 2019 21:18:18 -0400 Message-ID: <8833.1560647898@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Tomas Vondra writes: > Rework the pg_statistic_ext catalog So ... not one of the buildfarm members that are running TAP tests likes this. The failures look like # Running: pg_dump --no-sync --file=3D/Users/tgl/pgsql/src/bin/pg_dump/tmp= _check/tmp_test_cSh8/role.sql --role=3Dregress_dump_test_role --schema=3Dd= ump_test_second_schema postgres pg_dump: error: query failed: ERROR: permission denied for table pg_stati= stic_ext pg_dump: error: query was: SELECT tableoid, oid, stxname, stxnamespace, (S= ELECT rolname FROM pg_catalog.pg_roles WHERE oid =3D stxowner) AS rolname = FROM pg_catalog.pg_statistic_ext not ok 4576 - role: pg_dump runs # Failed test 'role: pg_dump runs' # at t/002_pg_dump.pl line 3418. I think probably what's happening is that pg_dump is still trying to dump directly from the catalog, when what it needs to do now is dump from the view, in case it's not running as superuser. regards, tom lane