Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1j7LTI-0002RR-Kk for pgsql-general@arkaria.postgresql.org; Thu, 27 Feb 2020 15:53:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j7LTH-0003Ok-94 for pgsql-general@arkaria.postgresql.org; Thu, 27 Feb 2020 15:53:07 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1j7LTF-0003OV-E3 for pgsql-general@lists.postgresql.org; Thu, 27 Feb 2020 15:53:07 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j7LTB-0005fb-Ch for pgsql-general@lists.postgresql.org; Thu, 27 Feb 2020 15:53:05 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id BD4C121ACE; Thu, 27 Feb 2020 10:52:57 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Thu, 27 Feb 2020 10:52:57 -0500 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=e pkInisx69EJJ/UEpezujcDMquWS1thzE5RaiGXyicg=; b=dsbK8jTQ0Rnu4tItu FAvkaQgoa94RrX7QbeRQsjrPxX7YwNUvxQox5jn/vO4PsuYH6m2dsDH7PO4KuOBZ GS7HK0QLuAYd1b844JXaXCe1kbO7+GcdA0RMKuQKwM5aMP16UyzCWOto7fLYuONq Vk3+KbhbE7802C23QoN7N9exbGNKJQBrcfr/dg0hw9ltt/qjpkobdXnLdznZdV2J l4NOMcdgR7UAidW1aMBy9yQV/S7HvtvvKJs7uaI6AwYmZ114pg0sn5iSFzaeOYNq yLC+Rj87UPCQq5LZr+bj31iZ3yf4HLf39VIsY9QUvHUdBuxIU8eu694s1+RAqyy7 c8J8g== 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=epkInisx69EJJ/UEpezujcDMquWS1thzE5RaiGXyi cg=; b=ymIyEiHKWyAGZNrjTriLGCbZqCW4NGoyaFHQoVc5cKrMwWio3/sfHPeOf DJME0HtxFgPVm8tW/mpwUUg4Zh4a4P6coDqMFyDNFw1a03Ms2wXLdir6VY8QUvrl i7QQ7WtdRxd6OODlkxijkIbkN3II4uBBvPCIwZn25fi5OCFbUV5cSYEfk91Gplev BJkNA6m5ImQ+zogtiDAjvuitEopzqhyfLtdB5m3W6F0nIg8TvBwTlk1zw5sQ2LXO CHqdHT1qUzEP6ugh4r4i7Hv2RoRXOpaKtE1vynWOlgq8QjIfEMLaN+Lm8ZO0jvDJ vJXfPloesfVFxD9YXVqRfXiU0ckzQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrleeigdekfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesthekre dttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhl rghvvghrsegrkhhlrghvvghrrdgtohhmqeenucfkphepjedurddvuddvrdduvdelrddule efnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggu rhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Received: from [192.168.1.10] (unknown [71.212.129.193]) by mail.messagingengine.com (Postfix) with ESMTPA id 0B44A3060FCB; Thu, 27 Feb 2020 10:52:56 -0500 (EST) Subject: =?UTF-8?Q?Re=3a_Error_=e2=80=9ccache_lookup_failed_for_function?= =?UTF-8?B?4oCd?= To: =?UTF-8?Q?Albrecht_Dre=c3=9f?= , pgsql-general@lists.postgresql.org References: From: Adrian Klaver Message-ID: <205d6785-e790-b338-74bf-264fa11f701a@aklaver.com> Date: Thu, 27 Feb 2020 07:52:56 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: 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: Precedence: bulk On 2/26/20 11:37 AM, Albrecht Dreß wrote: > Sorry for the late reply, I've been on a short vacation… > > Am 21.02.20 21:44 schrieb(en) Adrian Klaver: >> 1) From your original post what does the below mean?: >> >> -- add several db functions > > One trigger function, plus two “normal” ones, all (yet) unused. > >> -- replace a DB function: > > This was the > > ---8<-------------------------------------------------------------------- > DROP FUNCTION public.get_result2[…] > CREATE FUNCTION public.get_result2[…] > ---8<-------------------------------------------------------------------- > > sequence triggering the error. > >> 2) What do you see when you do?: >> >> select * from pg_proc where oid = 1821571; > > Unfortunately, when I saw that restarting the cluster didn't solve the > issue, I re-installed it from a dump (which appears to be intact, btw), > but /without/ taking a copy of the original data folder.  Thus, this > information is lost, sorry. > >> 3) What is the definition for retrieve_single_result()? > > Ancient implementation, somewhat similar to get_result2(), but with less > security and different error checking approach: > > ---8<-------------------------------------------------------------------- > CREATE FUNCTION public.retrieve_single_result(mytaskid bigint, OUT data > bytea, OUT metadata jsonb) RETURNS record >     LANGUAGE plpgsql STABLE SECURITY DEFINER >     AS $$ > DECLARE >     errortext text; > BEGIN >     SELECT results.data, results.metadata, results.errortext FROM > results LEFT JOIN tasks ON tasks.resultid = results.resultid WHERE > taskid = mytaskid LIMIT 1 INTO data, metadata, errortext; >     IF errortext IS NOT NULL THEN >         RAISE EXCEPTION 'error result "%"', errortext; >     END IF; > END; > $$; > ---8<-------------------------------------------------------------------- > >> 4) What does the below show?: >> >> select proname, prosrc from pg_proc  where proname in >> ('retrieve_single_result', 'get_result2'); > > Same problem as with #2, sorry… Alright, as Tom said upstream, there is not much that can be done with information missing. Hopefully it does not happen again, but if it does you know what needs to be captured. > > Thanks, > Albrecht. -- Adrian Klaver adrian.klaver@aklaver.com