Re: Index functions and INDEX_CREATE_SKIP_BUILD

2025-12-02 Thread Michael Paquier
On Tue, Dec 02, 2025 at 09:07:54AM +0100, Antonin Houska wrote: > I'm just wondering if these measures regarding GUCs and security context are > necessary at this place. I think that no index functions should be called if > we only create the catalog entry for the index, but I may be mistaken. See

Re: Index functions and INDEX_CREATE_SKIP_BUILD

2025-12-02 Thread Antonin Houska
Michael Paquier wrote: > On Tue, Dec 02, 2025 at 08:18:48AM +0100, Antonin Houska wrote: > > In ReindexRelationConcurrently(), the call of > > index_concurrently_create_copy() > > is enclosed in > > > > /* > > * Switch to the table owner's userid, so that any index functions are > >

Re: Index functions and INDEX_CREATE_SKIP_BUILD

2025-12-01 Thread Michael Paquier
On Tue, Dec 02, 2025 at 08:18:48AM +0100, Antonin Houska wrote: > In ReindexRelationConcurrently(), the call of index_concurrently_create_copy() > is enclosed in > > /* >* Switch to the table owner's userid, so that any index functions are >* run as that user. Also lock down