Re: Should new partitions inherit their tablespace from their parent?

David Rowley <david.rowley@2ndquadrant.com>

From: David Rowley <david.rowley@2ndquadrant.com>
To: Michael Paquier <michael@paquier.xyz>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>, Robert Haas <robertmhaas@gmail.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2018-12-17T01:40:53Z
Lists: pgsql-hackers
On Mon, 17 Dec 2018 at 12:59, Michael Paquier <michael@paquier.xyz> wrote:
> Okay, I think that you should add an assertion on
> CheckRelationLockedByMe() as MergeAttributes()'s only caller is
> DefineRelation().  Better safe than sorry later.

Would that not just double up the work that's already done in relation_open()?

-- 
 David Rowley                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


Commits

  1. Fix tablespace handling for partitioned tables