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.89) (envelope-from ) id 1j4sdC-0006GZ-An for pgsql-general@arkaria.postgresql.org; Thu, 20 Feb 2020 20:41:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j4sdB-0002Bp-6P for pgsql-general@arkaria.postgresql.org; Thu, 20 Feb 2020 20:41:09 +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 1j4sdA-0002Bf-Su for pgsql-general@lists.postgresql.org; Thu, 20 Feb 2020 20:41:08 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j4sd6-0000TG-RJ for pgsql-general@lists.postgresql.org; Thu, 20 Feb 2020 20:41:08 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id DDCA521FFD; Thu, 20 Feb 2020 15:41:01 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Thu, 20 Feb 2020 15:41:01 -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=6 GQow09sX6dksQq6pTi+Kb+KoYdbr4DdCiX0cQSRkqo=; b=CckAUDFE3H7ta0h8Z 2rt9hfMUE7rcYpQDCe9CygN6sGjJQjqH13cfqbyjpuFo03Qi5XqCihVwzicGfxRp ja4TYWPpvxycCyXy/VllR95tNwAu/YJe/JVAshug86p+uZTDDWY+nN482K3aSxc3 JW8EFD7rph5xnUA+/wr+Qk0mNfCf2/SvWesjpC9WFnJ83HqJl5m7u0YHg9aTgPVX uJlnReRiiKCUjq8tGt9qxV4/9vBACVQO18kuT4uQmWocVfVxybUicR8jv++RWjZ7 z4R4pBG+fK7NgqVbf9vfy6ncDriJp4pLzokL5T5il3l9Iczf93416yCwlNrboLvH et8AA== 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=6GQow09sX6dksQq6pTi+Kb+KoYdbr4DdCiX0cQSRk qo=; b=OwlZV0+F9q7l9cVbmZa28Fv4NgaUkn41VtIYK+4CdXcxkxP6RYFFUjc8Y kBfv48qpYscDcHHxbCwllPJd9VOpeYZQ0biS13W76j4x5w7wwHC47bEcMKFzueFn trO/anChcQts+LcbM80AH1kdZ1aWqa0xttozrTvN4OO4QKAuCnJHr3Gb5Naya1Fc GOfp8ptuIZc8ra0wgn1mSP1CF/Rt2pshMEsR/ekYghL1oY8Sp6ca8WtpeCSVwpVC CDnjWCFmRPJds+6FQMU54erYQdh5zCqywdvAAUNe/xG7IVvyI4HSOiCSmWqUdxGX PZH+9hAjpVZrnwcQfr1StH0tIblkQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrkedvgddugeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtke ertddtfeejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecukfhppeejuddrvdduvddruddvledrud elfeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegr ughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Received: from [192.168.1.10] (unknown [71.212.129.193]) by mail.messagingengine.com (Postfix) with ESMTPA id 16BCF3280064; Thu, 20 Feb 2020 15:41:00 -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: <32cc0d01-c217-ada7-c9eb-7cb29391d4bf@aklaver.com> Date: Thu, 20 Feb 2020 12:41:00 -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/20/20 11:28 AM, Albrecht Dreß wrote: > Am 20.02.20 19:32 schrieb(en) Tom Lane: >> This is, actually, not very surprising.  You dropped the old function >> while clients were using it.  The new function is a completely >> unrelated object, even if it happens to have the same name. > > Yes, I agree that this was not a too clever approach… > >> It does seem a bit annoying that something in plpgsql is apparently >> doing a fresh catalog lookup to find information that likely was >> already cached at the start of function execution. > > OK, but after fully stopping the daemon via systemctl (which of course > disconnects all clients) and re-starting it, the cache is empty, isn't > it?  So the client after re-connecting /should/ find the proper > function?  In my case the full restart did *not* help, but produced the > same error again afterwards!  I didn't reboot the whole box, though. It would be nice to know what: […] represented in: CREATE FUNCTION public.get_result2(mytaskid bigint, OUT data bytea, OUT metadata jsonb, OUT errortext text, OUT vanished boolean) RETURNS record […] COMMIT; The Postgres logs during and after restart might provide some info. Also the errors thrown when accessing the other function. > > This led me to the assumption that the database was “somehow” damaged. > > Thanks, > Albrecht. -- Adrian Klaver adrian.klaver@aklaver.com