On Fri, Jul 3, 2020 at 7:06 PM Tom Lane <t...@sss.pgh.pa.us> wrote:

> Magnus Hagander <mag...@hagander.net> writes:
> > On Fri, Jul 3, 2020 at 6:12 PM Tom Lane <t...@sss.pgh.pa.us> wrote:
> >> The lack of documentation seems to be my fault, so I'm willing to pick
> >> this up unless somebody else wants it.
>
> > If the comments I included in that patch are enough, I can just commit
> > those along with it. Otherwise, please do :)
>
> Being once burned, I had something more like the attached in mind.
>

That's a bit more elaborate and yes, I agree, better.


BTW, looking at this, I'm kind of wondering about the other code path
> in SharedFileSetInit:
>
>         if (fileset->ntablespaces == 0)
>         {
>                 fileset->tablespaces[0] = DEFAULTTABLESPACE_OID;
>                 fileset->ntablespaces = 1;
>         }
>
> Shouldn't that be inserting MyDatabaseTableSpace?  I see no other places
> anywhere that are forcing temp stuff into pg_default like this.
>

Yeah, looking at it again, I think it should. I can't see any reason why it
should enforce pg_default.

-- 
 Magnus Hagander
 Me: https://www.hagander.net/ <http://www.hagander.net/>
 Work: https://www.redpill-linpro.com/ <http://www.redpill-linpro.com/>

Reply via email to