Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lOjtt-0005yr-0P for pgsql-general@arkaria.postgresql.org; Tue, 23 Mar 2021 16:29:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lOjtr-0002fq-Vg for pgsql-general@arkaria.postgresql.org; Tue, 23 Mar 2021 16:28:59 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lOjtr-0002fj-ES for pgsql-general@lists.postgresql.org; Tue, 23 Mar 2021 16:28:59 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lOjtl-0004Iq-6U for pgsql-general@lists.postgresql.org; Tue, 23 Mar 2021 16:28:58 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id EF7F85C00CA; Tue, 23 Mar 2021 12:28:51 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Tue, 23 Mar 2021 12:28:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=L Pwcqjpej+KDqrRk6zICNEyKjEGzNcPEOG0K4P/AMU8=; b=nSm0pUUKclXYdsvLW W/5uf3bgVpSBMREe6KPLRoMOYmHZ+88bgfKk26if8m44sDXqTanN6g7zbBFL0xWt pTrpv7SuF+RLMvh2vYKIiQbwoz1ef9X1NFGH2o5v9gtSx55EFkh1/G1R0r+iKYA4 6Zc/35iD/JIWLCfyiVk8oIl4RSeG/RQQqi4hUVVY8hHIvr/8oJTtG7fpSmeAg8Ln GnG7RteypBwxYP2aJfqLrR9QbyO0GbhFjwwnH9HOK0Kig/+vmKK6fDhYrZMFfoEL 7JljvlLwJEhkfqnpGfXg8oz4/hFRgTtxdV2JSuI0XCdmBTkwfAGSv9CWjsqW14WP xeSQA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=LPwcqjpej+KDqrRk6zICNEyKjEGzNcPEOG0K4P/AM U8=; b=tR2es5NPPEeU2xbuRToC/L1ln+zYJJ41VwEp8UfXOF1lh+KgTzEhUMPcZ gt4YxPcBshOGf2XaCp2u7CIPdDteDpCviI8r1lacX6k1XJTd0oazjSwXADbDuDoD YJhD4hPMAKCntALgU8AzvyjtkjI6bhvY76oWMT7ElxNEl1SI8pGNHb+YV/nRD3l1 s5fNjnf6WdaPb3Nt19SCt5mJz0IZ/J5HhPEbZTv7j8wBTNSbbNO+ZXWQ1QMeHz8G FvR7bR7ytr3Lzmir9oakvY0W8G/y5+VEHCNgnhUEl3TU8xdedENXDD5LsApdB28p BWUa4iJVm0N6fZ53GZmUUx0KmTglw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudegiedgkeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtke ertddtfeejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecuggftrfgrthhtvghrnhepveevfeevfe eugeffkeekhfegieeufffgteeujedvgffhueejjefhkeejleegtdegnecukfhppeehtddr udeljedrkedtrddvnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Received: from ranger.suse (50-197-80-2-static.hfc.comcastbusiness.net [50.197.80.2]) by mail.messagingengine.com (Postfix) with ESMTPA id 88F6024041F; Tue, 23 Mar 2021 12:28:50 -0400 (EDT) Subject: Re: No enough privileges for autovacuum worker To: =?UTF-8?B?0JDQvdC00YDQtdC5INCh0YvRh9GR0LI=?= Cc: pgsql-general@lists.postgresql.org References: <1224144510.20210323142019@cifrasoft.com> <18310311052.20210323200728@cifrasoft.com> <1723387856.20210323201857@cifrasoft.com> From: Adrian Klaver Message-ID: <56104bce-d461-1fa2-8c8d-96dd4a13ba92@aklaver.com> Date: Tue, 23 Mar 2021 09:28:49 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: <1723387856.20210323201857@cifrasoft.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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