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

From Jim Nasby
Subject Re: make default TABLESPACE belong to target table.
Date
Msg-id 8be04688-d5a4-0295-794d-e9563fb75bcf@BlueTreble.com
Whole thread Raw
In response to Re: make default TABLESPACE belong to target table.  (Amos Bird <amosbird@gmail.com>)
Responses Re: make default TABLESPACE belong to target table.  (Amos Bird <amosbird@gmail.com>)
List pgsql-hackers
On 11/27/16 2:01 AM, Amos Bird wrote:
>
>> I was thinking about introducing a new GUC, named something like
>> default_index_tablespace, which would need to have at least these
>> behaviors:
>
> Should we also consider the chidren tables as mentioned by Corey?

Wouldn't point #2 handle that?

> 2. index tablespace is same as table's tablespace.

As for a magic value, based on other recent discussion the idea of "-1" 
came to me, since per the docs[1] that's not a valid identifier... but 
experimentation shows it's fine if you double-quote it. :/

1: 
https://www.postgresql.org/docs/current/static/sql-syntax-lexical.html#SQL-SYNTAX-IDENTIFIERS
-- 
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble! http://BlueTreble.com
855-TREBLE2 (855-873-2532)



pgsql-hackers by date:

Previous
From: Jim Nasby
Date:
Subject: Re: pg_config --version
Next
From: Amos Bird
Date:
Subject: Re: make default TABLESPACE belong to target table.