Postgres 10 temp tablespace question

From: Joseph Dunleavy <joseph(dot)dunleavy(at)vertexinc(dot)com>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Postgres 10 temp tablespace question
Date: 2019-03-09 01:05:37
Message-ID: DM6PR17MB2747BA46DA76ABBBEF637045E44E0@DM6PR17MB2747.namprd17.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I am building a multi-tenant deployment with multiple database - 1 tenant per database.

I would like to be able to dedicate specific temp tablespace to a specific database or user/schemas.

I understand how to define temp_tablespace in postgresql.conf.

I can't find anything in the documentation on how to dedicate a specific temp_tablespaces to a specific database, user or schema.

I also thought maybe I could create a trigger on logon to set a specific temp tablespace per user, but I can't do that either.

Is it possible in Postgresql to dedicate a specific temp tablespace to a specific database or user/schema?

Thank you for the help.

JD

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Julie Nishimura 2019-03-09 02:13:57 DDL for database creation
Previous Message Alexandru Lazarev 2019-03-08 16:40:27 Re: Hot to model data in DB (PostgreSQL) for SNMP-like multiple configurations