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 1lOibR-00033h-VO for pgsql-general@arkaria.postgresql.org; Tue, 23 Mar 2021 15:05:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lOibP-0002fJ-Bl for pgsql-general@arkaria.postgresql.org; Tue, 23 Mar 2021 15:05:51 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lOibO-0002fB-8l for pgsql-general@lists.postgresql.org; Tue, 23 Mar 2021 15:05:51 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lOibL-0006TX-5Z for pgsql-general@lists.postgresql.org; Tue, 23 Mar 2021 15:05:49 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 615BA5C012F; Tue, 23 Mar 2021 11:05:45 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 23 Mar 2021 11:05:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=L +4YyxL6+qhKNL4AqxMg0tgR7cy/Z/NPeRPUtMKy4Oc=; b=mJ/5fPRem9BBClyMS 2zjqtW/OFP9FZX7PKAmsO2H59FU154qIGm1RqA8GkaHtT79opGXp0LPdNsZoflGP Q1MhVZ1ZWMX71xUPO1a1A98VaX5420q+8n4ZPAsQVTgbBOKdBwMs90aXYAQhEDom jH+MV2M3c0oCl7/+HM7/jl1k1rX/9XWJW/DQmrpgC/Qn5ywZZVN/ejIiQ7Is/Tpj 0HutoScZZwKxQujy30IQ11d5oVFhp50cjRZBEcobcBROAyVEvR3HFs13Aw9U9iSD 1BkkPfHwARcOTWjRKVfUbmpNnI4D6wXM099Ddyi75Z2s7DCD/ZUtQBh/DL6X/biw FwPlA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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=L+4YyxL6+qhKNL4AqxMg0tgR7cy/Z/NPeRPUtMKy4 Oc=; b=U+61mg99KKb1qxeniA2s1hsHmzyzKvmU3bbgVb/pRp6H6kfH2WOBmSfkW dtoqlZtZL/zH3Aa0oNjAV10KjeFJdpslWc7HgunrLe/hfV0w/QAFGOy6AgmzLlSP LT1RB4zuFQ3V6Go/XhJ17TVsTHQ/OtAlltSK74Gj//hoxfJxi/gD/BLzDcvIZWdk ako2QsBiBdSlGWcSp+qLGAUQkhKtN9VwAFJ494fQ4Zp8//PtCwnCGsbUE0wUi07r 9lkXcCw1BOxE7jE/D4WDSl60KLcSiPliGp028kVzVK5flLVn1vMN8GVO9LXC6Ix+ f21WarqJGx2MAH8P8+g3Jm5znGD4g== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudegiedgjedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtke ertddtfeejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecuggftrfgrthhtvghrnhepveevfeevfe eugeffkeekhfegieeufffgteeujedvgffhueejjefhkeejleegtdegnecukfhppeeljedr uddufedrvddujedrvdejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Received: from [192.168.1.4] (97-113-217-27.tukw.qwest.net [97.113.217.27]) by mail.messagingengine.com (Postfix) with ESMTPA id 0630D24041F; Tue, 23 Mar 2021 11:05:43 -0400 (EDT) Subject: Re: No enough privileges for autovacuum worker To: =?UTF-8?B?0JDQvdC00YDQtdC5INCh0YvRh9GR0LI=?= , pgsql-general@lists.postgresql.org References: <1224144510.20210323142019@cifrasoft.com> From: Adrian Klaver Message-ID: Date: Tue, 23 Mar 2021 08:05:43 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <1224144510.20210323142019@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 3:20 AM, Андрей Сычёв wrote: > Hi everyone, > > Every minute, I see the following error message in my server logs: > > 2021-03-23 13:00:07.564 MSK [60828]-[]-[]-[autovacuum worker]-[42501]-[@] ERROR: permission denied for schema dict at character 34 > 2021-03-23 13:00:07.564 MSK [60828]-[]-[]-[autovacuum worker]-[42501]-[@] QUERY: > SELECT array_to_string(dict.trigrams_array($1), ' ')::tsvector; > > 2021-03-23 13:00:07.564 MSK [60828]-[]-[]-[autovacuum worker]-[42501]-[@] CONTEXT: SQL function "trigrams_vector" during inlining > automatic analyze of table "fpdb.fpbackup.fp_vpn_data_2021w12" What is trigrams_vector() doing and does it involve table fpdb.fpbackup.fp_vpn_data_2021w12? Also what user is the function running as and does that user have permissions to schema dict? > > > It seems that something related to autovacuum does not have enough > privileges to do some particular work, but I have no idea to what > and/or to whom I should grant privileges to fix this problem. > > log setting from postgresql.conf: > log_line_prefix = '%m [%p]-[%h]-[%a]-[%b]-[%e]-[%u@%d] ' > > PostgreSQL version 13. > > > Any ideas? > -- Adrian Klaver adrian.klaver@aklaver.com