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 1ffiY1-00066H-SQ for pgsql-bugs@arkaria.postgresql.org; Wed, 18 Jul 2018 09:15:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ffiY0-0004k0-AE for pgsql-bugs@arkaria.postgresql.org; Wed, 18 Jul 2018 09:15:00 +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 1ffiY0-0004jt-2R for pgsql-bugs@lists.postgresql.org; Wed, 18 Jul 2018 09:15:00 +0000 Received: from zimbra.optitool.de ([82.135.4.195]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ffiXw-0001wv-T4 for pgsql-bugs@postgresql.org; Wed, 18 Jul 2018 09:14:59 +0000 Received: from zimbra.optitool.de (localhost [IPv6:::1]) by zimbra.optitool.de (Postfix) with ESMTPS id B386F382D28 for ; Wed, 18 Jul 2018 11:14:55 +0200 (CEST) Received: from localhost (localhost [IPv6:::1]) by zimbra.optitool.de (Postfix) with ESMTP id 99F1A382D2E for ; Wed, 18 Jul 2018 11:14:55 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.10.3 zimbra.optitool.de 99F1A382D2E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=optitool.de; s=E37AA3DA-415C-11E8-B16D-258E1F829521; t=1531905295; bh=fTOZn1rHQC5+zCxLobyxv4Sij9UF8Hrm/zWYlSyg3Ds=; h=Date:From:To:Message-ID:MIME-Version; b=XCNF6faGbjgwbuYpDaUTm4c96/djRvIqJ92FX7gHzQ8Pbq9W+/SGPSyscv83l4dNM p9IArB1Pmav+TEypksuHvMxWxorfy6sYcaskH7diWQc+3uUMaXpHBhMRjMJignOJFJ U6xIhPHxdEX1VSsfM6Xhxe9ObdYFIgloB27W+lwTBo/u2SOJLHa0C9dHftgYdLqg4Q N4Evxl+6J5RZBH/2xcv5N4wJP8gtceon2ePOWX6jaZm5kl52YoiH8DplRxRDAsh6Gn MjdPSC2UcSRj2of+/fhu6KedHm7RCXpfVL7KI7ra9huCACkNVs4RIaKKBbalnxu9yi 5Rl5zIumtIAiw== Received: from zimbra.optitool.de ([IPv6:::1]) by localhost (zimbra.optitool.de [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id EdPAJuYrG1PW for ; Wed, 18 Jul 2018 11:14:55 +0200 (CEST) Received: from zimbra.optitool.de (localhost [127.0.0.1]) by zimbra.optitool.de (Postfix) with ESMTP id 7ED13382D28 for ; Wed, 18 Jul 2018 11:14:55 +0200 (CEST) Date: Wed, 18 Jul 2018 11:14:55 +0200 (CEST) From: Thomas Butz To: pgsql-bugs@postgresql.org Message-ID: <2118571382.49.1531905290326.JavaMail.tbutz@BART> In-Reply-To: <568723392.45.1531904384974.JavaMail.tbutz@BART> Subject: Autovacuum analyze can't find C based function MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [::ffff:192.168.253.142] X-Mailer: Zimbra 8.7.11_GA_1854 (Zimbra Desktop/7.3.1_13063_Windows) Thread-Index: G7ZoQF2NY/yk4U3z9PJlB+GmGpKjDQ== Thread-Topic: Autovacuum analyze can't find C based function List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk While installing Nominatim(OSM geocoding service) I stumbled upon this issu= e: https://github.com/openstreetmap/Nominatim/issues/1097#issue-341799919 The function "transliteration" has been properly created during the install= ation processes according to the following template: https://github.com/openstreetmap/Nominatim/blob/v3.1.0/sql/functions.sql#L2= 5 The strange thing is that i'm able to execute the function while background= analyzation of the table "placex" repeatedly fails with the following erro= r: 2018-07-17 06:59:35.908 UTC [30641] ERROR: function transliteration(text) = does not exist at character 23 2018-07-17 06:59:35.908 UTC [30641] HINT: No function matches the given na= me and argument types. You might need to add explicit type casts. 2018-07-17 06:59:35.908 UTC [30641] QUERY: SELECT gettokenstring(translite= ration(name)) 2018-07-17 06:59:35.908 UTC [30641] CONTEXT: PL/pgSQL function public.make= _standard_name(text) line 5 at assignment automatic analyze of table "nominatim.public.placex" I can execute the same function without an error in a psql session though: # psql -d nominatim -U www-data -c "SELECT transliteration('some w=E2=82=AC= =C3=AA=C3=AErd text')" transliteration ----------------- some weird text (1 row) Restarting the database stops the anaylze errors from occurring. Postgres: 10.4 Postgis: 2.4 Nominatim: 3.1.0 --=20 Best regards Thomas Butz