Re: No enough privileges for autovacuum worker - Mailing list pgsql-general

From Adrian Klaver
Subject Re: No enough privileges for autovacuum worker
Date
Msg-id 56104bce-d461-1fa2-8c8d-96dd4a13ba92@aklaver.com
Whole thread Raw
In response to No enough privileges for autovacuum worker  (Андрей Сычёв <andrey.sychev@cifrasoft.com>)
Responses Re: No enough privileges for autovacuum worker  (Андрей Сычёв <andrey.sychev@cifrasoft.com>)
List pgsql-general
On 3/23/21 9:18 AM, Андрей Сычёв wrote:
> Sorry, my mistake, but actually
> 
> trigrams_array is called by trigrams_vector

Yes and that is at least one of the issues:

2021-03-23 13:00:07.564 MSK [60828]-[]-[]-[autovacuum 
worker]-[42501]-[(at)] ERROR:  permission denied for schema dict at 
character 34
2021-03-23 13:00:07.564 MSK [60828]-[]-[]-[autovacuum 
worker]-[42501]-[(at)] QUERY:
                 SELECT array_to_string(dict.trigrams_array($1), ' 
')::tsvector;

So who is running below and do they have permissions on schema dict?

Not sure where table fpdb.fpbackup.fp_vpn_data_2021w12 fits in? Are you 
running the function against values in the table?

> 
> Definition for the function dict.trigrams_vector:
> 
> CREATE OR REPLACE FUNCTION dict.trigrams_vector(word text)
>   RETURNS tsvector
>   LANGUAGE sql
>   IMMUTABLE STRICT
> AS $function$
>          SELECT array_to_string(dict.trigrams_array($1), ' ')::tsvector;
> $function$
> ;
> 
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com



pgsql-general by date:

Previous
From: Андрей Сычёв
Date:
Subject: Re: No enough privileges for autovacuum worker
Next
From: Андрей Сычёв
Date:
Subject: Re: No enough privileges for autovacuum worker