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 1hIZYl-0001wr-Mm for pgsql-general@arkaria.postgresql.org; Mon, 22 Apr 2019 14:04:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hIZYj-0004ag-SZ for pgsql-general@arkaria.postgresql.org; Mon, 22 Apr 2019 14:04:37 +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 1hIZYj-0004aZ-J4 for pgsql-general@lists.postgresql.org; Mon, 22 Apr 2019 14:04:37 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hIZYc-0004Iv-JM for pgsql-general@postgresql.org; Mon, 22 Apr 2019 14:04:37 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x3ME4RNQ003983; Mon, 22 Apr 2019 10:04:27 -0400 From: Tom Lane To: Soni cc: pgsql-general@postgresql.org Subject: Re: cache lookup failed for function 1 on fmgr_info_cxt_security, fmgr.c:184 In-reply-to: References: Comments: In-reply-to Soni message dated "Mon, 22 Apr 2019 11:14:08 +0700" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <3981.1555941867.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 22 Apr 2019 10:04:27 -0400 Message-ID: <3982.1555941867@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Soni writes: > When "create extension "uuid-ossp"", I got : > 2019-04-22 02:41:53.323 UTC [10305] XX000ERROR:=C2=A0 XX000: cache looku= p = > failed for function 1 > 2019-04-22 02:41:53.323 UTC [10305] XX000LOCATION: = > fmgr_info_cxt_security, fmgr.c:184 > 2019-04-22 02:41:53.323 UTC [10305] XX000STATEMENT:=C2=A0 create extensi= on = > "uuid-ossp" ; That is just bizarre. uuid-ossp's installation script does nothing beyond a few simple CREATE FUNCTION commands, so it's really hard to see how you could be getting to an incorrect function call. Do you perhaps have any other extensions installed that could be running add-on code during DDL commands? I'm thinking of pgaudit or auto_explain or the like. If so, try disabling those to see if the problem goes away. If that's not it, could we trouble you to get a stack trace of this problem? Set a breakpoint at errfinish, run the CREATE EXTENSION, and when it stops send us the output of "bt". (Make sure that fmgr_info_cxt_security appears one or two levels down in the trace, else you stopped at the wrong message output.) https://wiki.postgresql.org/wiki/Generating_a_stack_trace_of_a_PostgreSQL_= backend regards, tom lane