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 1fg4Jc-0002Ro-EN for pgsql-bugs@arkaria.postgresql.org; Thu, 19 Jul 2018 08:29:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fg4Ja-0005fX-7b for pgsql-bugs@arkaria.postgresql.org; Thu, 19 Jul 2018 08:29:34 +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 1fg4Ja-0005fQ-01 for pgsql-bugs@lists.postgresql.org; Thu, 19 Jul 2018 08:29:34 +0000 Received: from zimbra.optitool.de ([2001:a60:a0c8::3]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fg4JX-0000J8-4r for pgsql-bugs@postgresql.org; Thu, 19 Jul 2018 08:29:33 +0000 Received: from zimbra.optitool.de (localhost [IPv6:::1]) by zimbra.optitool.de (Postfix) with ESMTPS id 0F828443AB2; Thu, 19 Jul 2018 10:29:28 +0200 (CEST) Received: from localhost (localhost [IPv6:::1]) by zimbra.optitool.de (Postfix) with ESMTP id E937C443AB4; Thu, 19 Jul 2018 10:29:27 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.10.3 zimbra.optitool.de E937C443AB4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=optitool.de; s=E37AA3DA-415C-11E8-B16D-258E1F829521; t=1531988967; bh=vp8baALa6NaU+Uoo2ElI43SNG7bQIxN9nJQa+F0tT6Q=; h=Date:From:To:Message-ID:MIME-Version; b=ZgkABeViIQ343hb5p5F8s+5E5L/pg1uKhRnCewzt/Ej8TjB4ngKU1tXfvun0HCYNa 0iSaYOFU8kZSs9nEcBUR0JaiTFcyDKUzO+UghpMbQQi4VCVps0n+z0wnu8g0LlneCV 0VSnuGwcyQbZF2/HIBS5yjfXJThhU8NM147yuuqxyAPUQ2HUIR93tHKgvQACvfOvld M9aOU0vc0m3Vh87tc4w8gvfzBNaNe09VDqOCwWrPBtcqPCF0m6HHOnP6R0iAsOgw3N GvM8Aklu9vdlm4+qiytcOGn9ZivnifolrOJ4aCciGdQ/vmuddQ0P5pqtJXyZuUY/gn txL9s8PAGrEng== Received: from zimbra.optitool.de ([IPv6:::1]) by localhost (zimbra.optitool.de [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id g1GJIThyLnMM; Thu, 19 Jul 2018 10:29:27 +0200 (CEST) Received: from zimbra.optitool.de (localhost [127.0.0.1]) by zimbra.optitool.de (Postfix) with ESMTP id CD393443AB2; Thu, 19 Jul 2018 10:29:27 +0200 (CEST) Date: Thu, 19 Jul 2018 10:29:27 +0200 (CEST) From: Thomas Butz To: Tom Lane Cc: pgsql-bugs@postgresql.org Message-ID: <2003798392.33.1531988965573.JavaMail.tbutz@BART> In-Reply-To: <8572.1531922146@sss.pgh.pa.us> References: <2118571382.49.1531905290326.JavaMail.tbutz@BART> <8572.1531922146@sss.pgh.pa.us> Subject: Re: Autovacuum analyze can't find C based function MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [::ffff:192.168.253.142] X-Mailer: Zimbra 8.7.11_GA_1854 (Zimbra Desktop/7.3.1_13063_Windows) Thread-Topic: Autovacuum analyze can't find C based function Thread-Index: kDW8CzK+TShnV08ObdKEX/s0HCBLgQ== List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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. > So you need to do something explicit to reference stuff in other schemas; either schema > qualify the name That solved my problem. Now the autovacuum daemon is able to find the function. > 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? > This is good practice anyway: what you're seeing is that this > function fails with any search_path other than the one you use by default. > > regards, tom lane -- Best regards Thomas Butz