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 1hImal-0005SF-TQ for pgsql-general@arkaria.postgresql.org; Tue, 23 Apr 2019 03:59:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hImak-0006In-ER for pgsql-general@arkaria.postgresql.org; Tue, 23 Apr 2019 03:59:34 +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 1hImaj-0006If-Vg for pgsql-general@lists.postgresql.org; Tue, 23 Apr 2019 03:59:34 +0000 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hImah-0001wF-LV for pgsql-general@postgresql.org; Tue, 23 Apr 2019 03:59:32 +0000 Received: by mail-pf1-x444.google.com with SMTP id 9so6728376pfj.13 for ; Mon, 22 Apr 2019 20:59:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=NGt3EVcXrDUOHnnqVHBKZ+DyYQffti815FR+7Xi+r4s=; b=umJ3+bSqbOz1fh7qxi+iyuhKrXocZnF4YPnrc/EegFSmOtLLXA0mN8qHArQSOKQ2E7 lHumYFW4JcP49CZQfaE+l9U+sTJBRq0rEl1M/KBcdC+vxdriwJz5Q+f/mQF4/Si0WRRd vf+FuqyKdnkYi8gH76YUsr3KvPYI/8xrsRmBtm9tqABnqrgChUnM/u/kElL1qSTjKR+q xJjMzRynUTKzj6MHsJwwiIzyEfEtgcKLKktBtZqQAT+3lZMnlyaKh3CCTKhcT5khdecu Mt4iYEQlJca3GrxhUQaBpFi/mv4+KGLLETx9dW4Eg3QljVbcl/4d4Sxi/UAp9dVHOGFx k4wQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=NGt3EVcXrDUOHnnqVHBKZ+DyYQffti815FR+7Xi+r4s=; b=VoR3YIepGQq19exX/syVjabn40I8J2FIgpLfSZE3pDEf2gDXPP9sGg4OuUd9eCGzWs hqEwsXq7C00EbLDDi5Oy9f1YHUidZL398jsi3X0XKw+hNpk99ifYkai4CJD+vZ4BCDP9 g2dusGaTmMQF4c5MaEik+7OKZytLKz+7NxCG6etAuh0bZxv4bc1XRm6fEXaxX5xDQ4vx GGqZUathPDzlMkdAEpv5AcKEwmVHvFfhHQhDJvGd3WSW+5zCUlCmfS6IURGDAbLUjdsd oSBj5cP4BWuXhhZ1Qi+XDCQ/W1m5sR+OK5a99Rq5J+tvnlmKXXmIirQNOCZ2GDRN1RNQ bFrA== X-Gm-Message-State: APjAAAVawrjJMPr3pzhOWqMVEHcGX9KTRnzyMIFk6u++RMk1x77nqD1S o/1x8LCp+kXx2xccLZRxlES3D20l X-Google-Smtp-Source: APXvYqxDeSHBp8NACLJrG8G9J5qfSqxwqdDKse0jLeJFY00JwbatO2dFfFDGmSggNzn8jkDvF85sYQ== X-Received: by 2002:a63:30c5:: with SMTP id w188mr22538753pgw.76.1555991970409; Mon, 22 Apr 2019 20:59:30 -0700 (PDT) Received: from [192.168.1.11] ([36.79.250.46]) by smtp.gmail.com with ESMTPSA id g13sm902347pfk.151.2019.04.22.20.59.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Apr 2019 20:59:29 -0700 (PDT) From: Soni To: Tom Lane Cc: pgsql-general@postgresql.org Subject: Re: cache lookup failed for function 1 on fmgr_info_cxt_security, fmgr.c:184 References: <3982.1555941867@sss.pgh.pa.us> <15430.1555990285@sss.pgh.pa.us> <16134.1555991477@sss.pgh.pa.us> Message-ID: <98f4f75a-a6ba-7c3c-04e4-9889c8fc1659@gmail.com> Date: Tue, 23 Apr 2019 10:59:26 +0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <16134.1555991477@sss.pgh.pa.us> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk I did not re-initdb, just use the old pgdata. I also did not recreate current database. Some of the database has value 1 for lanvalidator, some has 2247. I'll check with the team how the lanvalidator got 1 for the value. I will report back here. Thanks, Soni. On 23/04/2019 10:51, Tom Lane wrote: > Soni 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