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 1hImSp-00057w-Vp for pgsql-general@arkaria.postgresql.org; Tue, 23 Apr 2019 03:51:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hImSo-000425-Ep for pgsql-general@arkaria.postgresql.org; Tue, 23 Apr 2019 03:51:22 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hImSo-00041y-1G for pgsql-general@lists.postgresql.org; Tue, 23 Apr 2019 03:51:22 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hImSl-0001nA-LZ for pgsql-general@postgresql.org; Tue, 23 Apr 2019 03:51:20 +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 x3N3pHcn016135; Mon, 22 Apr 2019 23:51:17 -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: <3982.1555941867@sss.pgh.pa.us> <15430.1555990285@sss.pgh.pa.us> Comments: In-reply-to Soni message dated "Tue, 23 Apr 2019 10:39:25 +0700" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <16133.1555991477.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 22 Apr 2019 23:51:17 -0400 Message-ID: <16134.1555991477@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Soni writes: > Here it is: > select * from pg_language; > =C2=A0lanname=C2=A0 | lanowner | lanispl | lanpltrusted | lanplcallfoid= | = > laninline | lanvalidator | lanacl > ----------+----------+---------+--------------+---------------+---------= --+--------------+-------- > =C2=A0internal |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 10 | f=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 | f=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 0 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 = > 0 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 2246 | > =C2=A0sql=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 10 | f=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | t=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0 |=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 = > 0 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 2248 | > =C2=A0plpgsql=C2=A0 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 10 | t=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 | t=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 13= 793 |=C2=A0=C2=A0=C2=A0=C2=A0 = > 13794 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 13795 | > =C2=A0c=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 10 | f=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | f=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0 |=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 = > 0 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 1 = | > (4 rows) Hm. That doesn't look like data corruption: that looks like somebody actually did update pg_language set lanvalidator =3D 1 where lanname =3D 'c'; or something equivalent to that. Needless to say, that was not a good idea. You said you reinstalled the postgres executables, but did you re-initdb? Or even just re-create the current database? I'm wondering if it's like that in every database of your cluster. It'd be possible to fix this particular database by setting lanvalidator back to its correct value (2247) but it'd be wise to first inquire as to how it got like this. regards, tom lane