pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Андрей Сычёв <andrey.sychev@cifrasoft.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: No enough privileges for autovacuum worker
Date: Tue, 23 Mar 2021 09:28:49 -0700
Message-ID: <56104bce-d461-1fa2-8c8d-96dd4a13ba92@aklaver.com> (raw)
In-Reply-To: <1723387856.20210323201857@cifrasoft.com>
References: <1224144510.20210323142019@cifrasoft.com>
	<dfa9e41a-633b-0b02-2c17-75e05da300e8@aklaver.com>
	<18310311052.20210323200728@cifrasoft.com>
	<f7ce0f69-e3db-c8f1-5937-8eea25566ecf@aklaver.com>
	<1723387856.20210323201857@cifrasoft.com>

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





view thread (12+ messages)  latest in thread

Message-ID: <56104bce-d461-1fa2-8c8d-96dd4a13ba92@aklaver.com>
Permalink:  ../56104bce-d461-1fa2-8c8d-96dd4a13ba92@aklaver.com/
Also on:    postgresql.org/message-id/56104bce-d461-1fa2-8c8d-96dd4a13ba92@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, andrey.sychev@cifrasoft.com
  Subject: Re: No enough privileges for autovacuum worker
  In-Reply-To: <56104bce-d461-1fa2-8c8d-96dd4a13ba92@aklaver.com>
  References: <1224144510.20210323142019@cifrasoft.com> <dfa9e41a-633b-0b02-2c17-75e05da300e8@aklaver.com> <18310311052.20210323200728@cifrasoft.com> <f7ce0f69-e3db-c8f1-5937-8eea25566ecf@aklaver.com> <1723387856.20210323201857@cifrasoft.com> <56104bce-d461-1fa2-8c8d-96dd4a13ba92@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox