Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bcfpw-0005w8-U1 for pgsql-bugs@arkaria.postgresql.org; Wed, 24 Aug 2016 21:35:53 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bcfpv-0004uB-Qs for pgsql-bugs@arkaria.postgresql.org; Wed, 24 Aug 2016 21:35:51 +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_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bcfpu-0004u2-BB for pgsql-bugs@postgresql.org; Wed, 24 Aug 2016 21:35:50 +0000 Received: from mail.windfish.net ([2001:4801:7824:104:ca47:84ed:ff10:50ea]) by magus.postgresql.org with esmtps (TLS1.1:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bcfpq-00084Z-SM for pgsql-bugs@postgresql.org; Wed, 24 Aug 2016 21:35:49 +0000 Received: by mail.windfish.net (Postfix, from userid 33) id 8CCD7765CC; Wed, 24 Aug 2016 17:35:44 -0400 (EDT) To: Andrew Gierth Subject: Re: BUG #14290: materialized view refresh doesn't use =?UTF-8?Q?=20temp=5Ftablespace?= X-PHP-Originating-Script: 33:rcube.php MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=_77dc553248afe392ff2c02a944a15447" Date: Wed, 24 Aug 2016 17:35:44 -0400 From: Rick Otten Cc: pgsql-bugs@postgresql.org In-Reply-To: <87k2f69bch.fsf@news-spur.riddles.org.uk> References: <20160818190623.1529.12440@wrigleys.postgresql.org> <87shtu9ewv.fsf@news-spur.riddles.org.uk> <0042eb8ad3f665b06c06b5948ca02399@www.windfish.net> <87k2f69bch.fsf@news-spur.riddles.org.uk> Message-ID: X-Sender: rotten@windfish.net User-Agent: Roundcube Webmail/1.0.3 X-Pg-Spam-Score: -2.1 (--) 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 --=_77dc553248afe392ff2c02a944a15447 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Aha. Maybe that is my problem. The refresh is silently failing to use TEMP_TABLESPACES. When I explicitly do the grant create, the refresh then uses the temp tablespace as originally expected. Thanks. On 2016-08-24 16:14, Andrew Gierth wrote: > "Rick" == Rick Otten writes: Rick> Is t1 also the tablespace for your materialized view? (It isn't Rick> clear from what you've posted below.) No. The matview was created in pg_default. Rick> In my environment my default tablespace for the database is Rick> different than the temp_tablespace. Possibly relevant here is that to put a tablespace into temp_tablespaces, you must have CREATE permission on it. If you set the value in postgresql.conf rather than with SET, you may not see errors from lack of permission, instead tablespaces without permission will be silently omitted. --=_77dc553248afe392ff2c02a944a15447 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=UTF-8

Aha.  Maybe that is my problem.  The refresh is silently faili= ng to use TEMP_TABLESPACES.

When I explicitly do the grant create, the refresh then uses the temp ta= blespace as originally expected.

Thanks.

 

On 2016-08-24 16:14, Andrew Gierth wrote:

"Rick" =3D=3D Rick Otten <rotten@windfish.net> writes:
 Rick> Is t1 also the tablespace for your materialized view? (It is=
n't
 Rick> clear from what you've posted below.)

No. The matview was created in pg_default.

 Rick> In my environment my default tablespace for the database is
 Rick> different than the temp_tablespace.

Possibly relevant here is that to put a tablespace into
temp_tablespaces, you must have CREATE permission on it. If you set the
value in postgresql.conf rather than with SET, you may not see errors
from lack of permission, instead tablespaces without permission will be
silently omitted.

 

--=_77dc553248afe392ff2c02a944a15447--