Re: behaviour change - default_tablesapce + partition table

Alvaro Herrera <alvherre@2ndquadrant.com>

From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Cc: Rushabh Lathia <rushabh.lathia@gmail.com>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2019-06-06T22:52:24Z
Lists: pgsql-hackers

Attachments

On 2019-May-20, Alvaro Herrera wrote:

> On 2019-May-20, Amit Langote wrote:
> 
> > Should we add this to open items?
> 
> Yeah.  I'm AFK this week, but can handle it afterwards.  The fix already
> missed beta1, so I don't think there's a problem with taking a little
> bit longer.

Here's my proposed patch.  I changed/expanded the tests a little bit to
ensure more complete coverage.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Commits

  1. Fix default_tablespace usage for partitioned tables

  2. Fix tablespace inheritance for partitioned rels

  3. Make pg_dump emit ATTACH PARTITION instead of PARTITION OF

  4. Fix tablespace handling for partitioned tables