From: Tom Lane <tgl@sss.pgh.pa.us>
To: Soni <diptatapa@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: cache lookup failed for function 1 on fmgr_info_cxt_security, fmgr.c:184
Date: Mon, 22 Apr 2019 23:51:17 -0400
Message-ID: <16134.1555991477@sss.pgh.pa.us> (raw)
In-Reply-To: <a3327b5d-0228-601f-0ceb-7e7cea48f33e@gmail.com>
References: <b7082510-b2a1-acbe-dc79-d4492eccacc4@gmail.com>
<3982.1555941867@sss.pgh.pa.us>
<fb770c7a-5c4e-a4dd-5a69-6218017c397b@gmail.com>
<15430.1555990285@sss.pgh.pa.us>
<a3327b5d-0228-601f-0ceb-7e7cea48f33e@gmail.com>
Soni <diptatapa@gmail.com> writes:
> Here it is:
> select * from pg_language;
> lanname | lanowner | lanispl | lanpltrusted | lanplcallfoid |
> laninline | lanvalidator | lanacl
> ----------+----------+---------+--------------+---------------+-----------+--------------+--------
> internal | 10 | f | f | 0 |
> 0 | 2246 |
> sql | 10 | f | t | 0 |
> 0 | 2248 |
> plpgsql | 10 | t | t | 13793 |
> 13794 | 13795 |
> c | 10 | f | f | 0 |
> 0 | 1 |
> (4 rows)
Hm. That doesn't look like data corruption: that looks like
somebody actually did
update pg_language set lanvalidator = 1 where lanname = '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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, diptatapa@gmail.com
Subject: Re: cache lookup failed for function 1 on fmgr_info_cxt_security, fmgr.c:184
In-Reply-To: <16134.1555991477@sss.pgh.pa.us>
References: <b7082510-b2a1-acbe-dc79-d4492eccacc4@gmail.com> <3982.1555941867@sss.pgh.pa.us> <fb770c7a-5c4e-a4dd-5a69-6218017c397b@gmail.com> <15430.1555990285@sss.pgh.pa.us> <a3327b5d-0228-601f-0ceb-7e7cea48f33e@gmail.com> <16134.1555991477@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox