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 1hIlrs-0003Pd-Ia for pgsql-general@arkaria.postgresql.org; Tue, 23 Apr 2019 03:13:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hIlrr-0001x7-3i for pgsql-general@arkaria.postgresql.org; Tue, 23 Apr 2019 03:13:11 +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 1hIlrq-0001ww-KD for pgsql-general@lists.postgresql.org; Tue, 23 Apr 2019 03:13:10 +0000 Received: from mail-pl1-x642.google.com ([2607:f8b0:4864:20::642]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hIlrn-0000v9-PU for pgsql-general@postgresql.org; Tue, 23 Apr 2019 03:13:09 +0000 Received: by mail-pl1-x642.google.com with SMTP id d9so822946pls.8 for ; Mon, 22 Apr 2019 20:13:07 -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=u93iOktipG9BQZ/gQPpOG5ifwFRl7UufF4uRI9xyEgI=; b=JrZHse/cXupndjWIDVq23bn1WeFGUB90HxKpXbRkJ6BqOt3uwgQkyytldGydZzGczz NIJvkhoZ74Y7seWiHmB8NBVh07m/L/H4Dldw5t4/kdlsMV809ojsMb+SS335EjWkOH73 /26AZsvGWfdE+y67vBVQADlCyf0xfOOPHB3+evT5zlxfZnkml5fVZsNRsNHXq/216JfF kEgUTVTj4HA/CZAQODooL55vDjlrVbF7E40Lpj5HGYCGftusKvy4Cvl3kf8Ta8D8DwG2 k2ikiwZXf+kIfb8NO60ZBZ/my5AvUlLfe9xfsFF+UWAiCfRQbUPStlFkRxQ0YsZU7bz1 rCFg== 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=u93iOktipG9BQZ/gQPpOG5ifwFRl7UufF4uRI9xyEgI=; b=CzqV59yJGbyEziW8elMCc0zsjuuZ01r6Pyu3P5iv89HFYxDwSSYkzJkPZ3YjVc9JZR wmQ1B9YrnBQ4OLwo5maAq3VremVSuHYOTvUFx3MZVkATjqmMAi3zqMPnfmBHrQAnG5zm nds9ps6U7ZJrs1z0D/vZj1S6P2ww+qo1Xx3P0fr4P4qciAUiTv5FJ2cu3RJBAXNiH62y e7z4VrOaEvKhXrna3jMfGX7hiQt4Y/Xz8uIePFfADw/OkXtcy/4+T2bPH8MF4i/iBql9 pK49m35h/8evtrs+g19rDdQ7AR0spyb46JRuaE2gDyRwOgqmgzt06tJqISaW3fTN+naN 56EQ== X-Gm-Message-State: APjAAAXnRp0iuP2nQaIs0rDO6lr6BgdKNt9oIw1DTyIsVu1zVdJ8sfHB vLAypTc96r0wlYzP/MPh1HyoUn7O X-Google-Smtp-Source: APXvYqxK+f1Bb1UdDDB7FCQheeeTxi9Gb9j6Ym9yu4/cKHkOvgnWSa00QZL1mK/Pdtf4JGSy+0dKhQ== X-Received: by 2002:a17:902:f204:: with SMTP id gn4mr6377848plb.318.1555989186264; Mon, 22 Apr 2019 20:13:06 -0700 (PDT) Received: from [192.168.1.11] ([36.79.250.46]) by smtp.gmail.com with ESMTPSA id j22sm19746687pfn.129.2019.04.22.20.13.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Apr 2019 20:13:05 -0700 (PDT) From: Soni To: rob stone Cc: pgsql-general@postgresql.org, Adrian Klaver Subject: Re: cache lookup failed for function 1 on fmgr_info_cxt_security, fmgr.c:184 References: <764968eb-41e2-5698-b36b-7425e69b2cc7@gmail.com> <2451b7f700b06dd941def476a7a0b194fe8a4145.camel@gmail.com> Message-ID: Date: Tue, 23 Apr 2019 10:13:03 +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: <2451b7f700b06dd941def476a7a0b194fe8a4145.camel@gmail.com> 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 Yes for that three questions. -bash-4.2$ ls /usr/pgsql-10/share/extension/uuid-ossp.control /usr/pgsql-10/share/extension/uuid-ossp.control select * from pg_available_extensions where name = 'uuid-ossp';    name    | default_version | installed_version |                     comment -----------+-----------------+-------------------+-------------------------------------------------  uuid-ossp | 1.1             |                   | generate universally unique identifiers (UUIDs) (1 row) -bash-4.2$ ls /usr/pgsql-10/lib/uuid-ossp.so /usr/pgsql-10/lib/uuid-ossp.so Thanks, Soni On 23/04/2019 10:05, rob stone wrote: > > On Tue, 2019-04-23 at 09:15 +0700, Soni wrote: >> I install the contrib module from the postgres repo using yum >> install. >> creating extension run as postgres superuser. >> >> Thanks, >> Soni >> > 1) Is there a uuid-ossp.control file sitting in the $SHAREDIR/extension > path? > > 2) Does its name exist in pg_available_extensions? > > 3) Is there a uuid-ossp.so in the lib path? > > My 2 cents. > > Cheers > Rob > > > >> On 22/04/2019 21:05, Adrian Klaver wrote: >>> On 4/21/19 9:14 PM, Soni wrote: >>>> Hello All, >>>> >>>> CentOS Linux release 7.5.1804 (Core) >>>> Postgres 10.7. >>>> >>>> When "create extension "uuid-ossp"", I got : >>>> 2019-04-22 02:41:53.323 UTC [10305] XX000ERROR: XX000: cache >>>> lookup >>>> 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: create >>>> extension >>>> "uuid-ossp" ; >>>> I tried reinstall contrib module and even all postgres component, >>>> but >>>> still no luck. >>>> Try restarting the server also but no luck. >>>> Any idea how to resolve this ? >>> How and where are you installing Postgres and -contrib from? >>> >>> Is the user you are running CREATE EXTENSION a superuser? >>> >>>> Thanks, >>>> Soni >>>> >>>> >>>> >>