pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Soni <diptatapa@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-general@postgresql.org
Subject: Re: cache lookup failed for function 1 on fmgr_info_cxt_security, fmgr.c:184
Date: Tue, 23 Apr 2019 10:47:46 +0700
Message-ID: <7cf89ef1-0a97-66c2-36c9-e7338f862136@gmail.com> (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>

Fix it, change the lanvalidator value of 1 to the value of fmgr_c_validator.
Thanks a lot Tom, that was fantastic. Not sure how the lanvalidator 
value changed to 1.

Thanks,
Soni

On 23/04/2019 10:39, Soni wrote:
> 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)
>
> Thanks,
> Soni
>
> On 23/04/2019 10:31, Tom Lane wrote:
>> Soni <diptatapa@gmail.com> writes:
>>> Here's the backtrace. Please let me know if it helps.
>>> #4  OidFunctionCall1Coll (functionId=functionId@entry=1,
>>> collation=collation@entry=0, arg1=arg1@entry=75471) at fmgr.c:1325
>> hm, there's "function 1" ...
>>
>>> #5  0x0000000000532054 in ProcedureCreate (procedureName=<optimized
>>> out>, procNamespace=procNamespace@entry=2200, replace=<optimized out>,
>>>       returnsSet=returnsSet@entry=0 '\000',
>>> returnType=returnType@entry=2950, proowner=10,
>>> languageObjectId=languageObjectId@entry=13,
>>>       languageValidator=languageValidator@entry=1,
>> ... and that's where it's coming from.  Seems like you have corrupt
>> data in pg_language.  Might be entertaining to see what
>> "select * from pg_language" gives.
>>
>>             regards, tom lane





view thread (12+ messages)  latest in thread

Message-ID: <7cf89ef1-0a97-66c2-36c9-e7338f862136@gmail.com>
Permalink:  ../7cf89ef1-0a97-66c2-36c9-e7338f862136@gmail.com/
Also on:    postgresql.org/message-id/7cf89ef1-0a97-66c2-36c9-e7338f862136@gmail.com

 · 

reply

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: diptatapa@gmail.com, tgl@sss.pgh.pa.us
  Subject: Re: cache lookup failed for function 1 on fmgr_info_cxt_security, fmgr.c:184
  In-Reply-To: <7cf89ef1-0a97-66c2-36c9-e7338f862136@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> <7cf89ef1-0a97-66c2-36c9-e7338f862136@gmail.com>

* 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