Skip to main content
Grant permissions to a comma-separated list of users. Includes the users specified in the ai.grant_to_default setting.

Samples

SELECT ai.create_vectorizer(
    'my_table'::regclass,
    grant_to => ai.grant_to('bob', 'alice'),
    -- other parameters...
);

Arguments

This function takes a comma-separated list of usernames to grant permissions to.

Returns

An array of name values that you can use in ai.create_vectorizer.