Re: make default TABLESPACE belong to target table. - Mailing list pgsql-hackers

From Amit Kapila
Subject Re: make default TABLESPACE belong to target table.
Date
Msg-id CAA4eK1+=Pp3mEfk=uXs8G2BvRAYxJEZhAS_ctg_kEba1BMmS1w@mail.gmail.com
Whole thread Raw
In response to Re: make default TABLESPACE belong to target table.  (Michael Paquier <michael.paquier@gmail.com>)
Responses Re: make default TABLESPACE belong to target table.
List pgsql-hackers
On Sat, Nov 26, 2016 at 8:57 AM, Michael Paquier
<michael.paquier@gmail.com> wrote:
> On Sat, Nov 26, 2016 at 11:25 AM, Amos Bird <amosbird@gmail.com> wrote:
>> How about making a storage parameter "default_tablespace" that also
>> covers CREATE INDEX and other stuff?
>
> That's exactly the idea, the one at relation-level gets priority on
> the global one defined in postgresql.conf.
>

What will such a storage parameter (default_tablespace) mean at table
level and how it will different from existing default_tablespace?  I
think the usage asked by Amos is quite genuine, but not sure if
introducing default_tablespace as a storage level parameter is the
best way to address it.  Another way could be that we allow the user
to specify something like tablespace_name <inherit parent>/<inherit
table> or something like that.

-- 
With Regards,
Amit Kapila.
EnterpriseDB: http://www.enterprisedb.com



pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: Parallel Index Scans
Next
From: Dilip Kumar
Date:
Subject: Re: Parallel bitmap heap scan