Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fu8uA-0007t3-AW for pgsql-bugs@arkaria.postgresql.org; Mon, 27 Aug 2018 04:13:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fu8u8-0004qU-Ao for pgsql-bugs@arkaria.postgresql.org; Mon, 27 Aug 2018 04:13:28 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fu8u7-0004pz-SM for pgsql-bugs@lists.postgresql.org; Mon, 27 Aug 2018 04:13:28 +0000 Received: from mail-qt0-x241.google.com ([2607:f8b0:400d:c0d::241]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fu8u4-0007XK-9h for pgsql-bugs@postgresql.org; Mon, 27 Aug 2018 04:13:27 +0000 Received: by mail-qt0-x241.google.com with SMTP id x7-v6so16581449qtk.5 for ; Sun, 26 Aug 2018 21:13:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=aKUY6Ch/oaAtWVj49pf/9ps7JnwJ1eY0ZCkzXuoB1yI=; b=flPuZYcgHD3gWSha5Ctv0XkuROoXaxwA0gv0t/Qt+CV6TLsqcV/ldwH4odN4zHfwW0 zLFOYJFcZY3qp6wlhrhQ8Ad5WqAoS1WUBHflNXHv5yqY+9uDyumnLoHNcp0VRw1pijBY ijjX2hnmOlgIShhh0u2+R6TFCplRxeB/iflbs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=aKUY6Ch/oaAtWVj49pf/9ps7JnwJ1eY0ZCkzXuoB1yI=; b=JDKJUMnzX7FBHdouBkLCg5P3yv1CmQIlqp7D0Xm9ifkqomebzG9SnwvJBs4Ij6N5OS WNCAhkaUVDw4JyQ9dMTejMiGVW5BQNDZP57qMKDQzDIal5eDaH2iUGi016Tt0JP64Sb2 P88FfQHpRw8e3Zf2J06ghSFHk4Ztx1odJLiFj34GBYnIwXkWJERYLU2Cwdg8adJCEhse L8FzE/xKkAv3klbJ+SGhRpyCKZLtzfanjy9YZOheJOJxMYUzAdL9zYtew45gqeX89+oJ 3y0rlwEtDD6w+zs3vg7XlseRBc7gHI/x1YTcQXTHV9Ldp4fsbF4sxr7NZSAmkLyUqfKw 1GTA== X-Gm-Message-State: APzg51B6umUqun5Ewg9T9UVk5Rt7idhfwpIKqip1VtvmWJmqGN9UMwIn 7PqGov6kcPa97CgVyuKzbKi8+LXEjAs= X-Google-Smtp-Source: ANB0VdYQx091f4+ZkY+qTgX5LDhje5Ufmm0dtVYNqKDxpR5prh+EGPQsTaOuq4grC4Mq9cCajLuGbw== X-Received: by 2002:a0c:a362:: with SMTP id u89-v6mr10725361qvu.245.1535343202118; Sun, 26 Aug 2018 21:13:22 -0700 (PDT) Received: from rfd.leadboat.com (c-73-158-248-138.hsd1.ca.comcast.net. [73.158.248.138]) by smtp.gmail.com with ESMTPSA id u21-v6sm7907577qka.88.2018.08.26.21.13.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 26 Aug 2018 21:13:20 -0700 (PDT) Date: Sun, 26 Aug 2018 21:13:17 -0700 From: Noah Misch To: Thomas Butz Cc: Tom Lane , pgsql-bugs@postgresql.org Subject: Re: Autovacuum analyze can't find C based function Message-ID: <20180827041317.GA1236401@rfd.leadboat.com> References: <2118571382.49.1531905290326.JavaMail.tbutz@BART> <8572.1531922146@sss.pgh.pa.us> <2003798392.33.1531988965573.JavaMail.tbutz@BART> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2003798392.33.1531988965573.JavaMail.tbutz@BART> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Thu, Jul 19, 2018 at 10:29:27AM +0200, Thomas Butz wrote: > Tom Lane writes: > > In recent PG releases, autovacuum executes stuff under a restrictive > > search_path setting (just pg_catalog, in fact). > > This should probably be added to section 24.1. of the documentation. At least i couldn't find it elsewhere. That wouldn't be unreasonable, but I think it's too much detail for the documentation. What I'd find more promising is to refine the HINT to react when the function exists in a schema outside search_path. Perhaps it would then say "HINT: No function matches the given name, but other schemas have functions of that name. You might need to schema-qualify the function name." (I don't plan to implement that myself.) > > or add a "SET search_path" clause to the function > >definition. > > Could you elaborate a bit more on this? It seems like this would only limit/change which objects should be accessed > within the function as described by the CREATE FUNCTION documentation. The function itself wouldn't still be picked > up by the autovacuum daemon or am i missing something? Based on the error you posted, you would add the "SET search_path" clause to function public.make_standard_name(text). Autovacuum did find public.make_standard_name(text), but it did not find the transliteration(text) function called inside the body of public.make_standard_name(text).