On Fri, Nov 20, 2026 at 4:38 PM Hayato Kuroda (Fujitsu)
<[email protected]> wrote:
>
> > Here is the V96 version which:
>
> Thanks for updating the patch. I reviewed v96-0001 and LGTM.
>

Thanks for the review and sorry I forgot to credit you as a reviewer.
I have pushed the patch.

 I have one comment
> for codes in HEAD, let me share just in case.
>
> ```
>         /* Create conflict log table. */
>         relid = heap_create_with_catalog(relname,
>                                                                          
> PG_CONFLICT_NAMESPACE,
>                                                                          0, 
> /* tablespace */
> ...
> ```
>
> In create_conflict_log_table() the tablespace is specified as 0, it bypasses 
> a GUC
> default_tablespace. Is it intentional? The parameter can be resolved by
> GetDefaultTablespace().
>

Yes, the current behavior is intentional and I feel that is
appropriate. This is because using default_tablespace will make it
depend on the session that creates it rather than keeping it tied with
subscriptions. Also, this is a system-managed table, so it seems apt
to keep it at database's default tablespace. The other thing is the
privileges mismatch. The DefineRelation() that uses
GetDefaultTablespace() checks ACL_CREATE on the tablespace for the
current user, while the table is owned by the subscription owner
(subowner), so we need to consider that differently.

> Even if we retain the behavior, it can be InvalidOid
>

Agreed. Additionally, we can add a comment on the lines: "Place the
table in the database's default tablespace, ignoring
default_tablespace, so its placement does not depend on the session
that creates it.". What do you think?

-- 
With Regards,
Amit Kapila.


Reply via email to