Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZRCK3-0004GR-JY for pgsql-sql@arkaria.postgresql.org; Mon, 17 Aug 2015 04:46:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZRCK2-0004iq-Qv for pgsql-sql@arkaria.postgresql.org; Mon, 17 Aug 2015 04:46:58 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZRCK1-0004ic-4K for pgsql-sql@postgresql.org; Mon, 17 Aug 2015 04:46:57 +0000 Received: from mail-pa0-x235.google.com ([2607:f8b0:400e:c03::235]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZRCJx-0003lf-Nu for pgsql-sql@postgresql.org; Mon, 17 Aug 2015 04:46:56 +0000 Received: by paccq16 with SMTP id cq16so56226077pac.1 for ; Sun, 16 Aug 2015 21:46:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=G7nGLEX44ohrLuwJ0X2+4CsQoLtn8Tp0cq2FM2EfWIA=; b=cRaFxL1r4kYl06clT5+noYSgcWZCZseCz0a6yujbk3Do3c8HXfwdT3C+Jmrv3IrLJK XfIWrPmRchUE0eRFMgu93YW5yZluASsrqotFVrNtzB6IyWkgrl//MBMYGMZDFLqzK80v COfboEWrXVNg4YnJpxIQE8ovflhG71X30V9HjCAEMkd8OWqmo1V5Yy3zuVHLkX+nHiri RSuJxrkGLeBCYCeoOjvLiHboK+atRb50/+o8mPRwkVEHtf78hsu0Ia9PIyBpd5vqA3ya 8woa2VXFgZuHatY5/VIrgoDimLGgewocaJFSfk3VqfYcgLxZsDSE0bq9QgfFG2w9joxe ClXw== X-Received: by 10.68.117.11 with SMTP id ka11mr114415697pbb.77.1439786810100; Sun, 16 Aug 2015 21:46:50 -0700 (PDT) Received: from station12.ousa.org (nat-198-95-226-236.netapp.com. [198.95.226.236]) by smtp.googlemail.com with ESMTPSA id ft7sm12978582pdb.58.2015.08.16.21.46.47 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 16 Aug 2015 21:46:49 -0700 (PDT) Subject: Re: ERROR: cache lookup failed for type To: Adrian Klaver , Tom Lane References: <55D131B0.6010500@gmail.com> <15241.1439781395@sss.pgh.pa.us> <55D15A62.70406@gmail.com> <55D15E47.9020007@aklaver.com> Cc: "pgsql-sql@postgresql.org" From: Stuart X-Enigmail-Draft-Status: N1110 Message-ID: <55D16735.80304@gmail.com> Date: Mon, 17 Aug 2015 08:46:45 +0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <55D15E47.9020007@aklaver.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-sql Precedence: bulk Sender: pgsql-sql-owner@postgresql.org On 08/17/2015 08:08 AM, Adrian Klaver wrote: > So this is what you did when you started with the Alpha 1 database, > correct? > > When you went to Alpha 2 you just installed the new program over the > existing Alpha 1, but left the data directory as is and then ran into > the error, correct? > > You then did a dump of the Alpha 1 or other(?) existing database and > then a restore into the Alpha 2(the reload above) at which point the > error went away, correct? Adrian, that is correct. More precisely, the steps taken were the following which I now see where I may have potentially introduced the error: upgrade from prostgres 9.4.4 to 9.5alpha1 pg_dumpall > file.sql pg_ctl stop upgrade postgres 9.5alpha1 rm -r /pgdir/* initdb -D /pgdir/ pg_ctl start -D /pgdir/ psql template1 -f file.sql upgrade from postgres 9.5alpha1 to 9.5alpha2 upgrade postgres 9.5alpha1 pg_ctl stop pg_ctl start -D /pgdir/ Now I see that not stopping the database prior to the upgrade may have introduced the problem eventhough I don't understand the internals. I did do another pg_ctl stop/start after upgrade just to see if that would fix but it didn't. I just did the following steps, and now no error: pg_dumpall > file.sql pg_ctl stop rm -r /pgdir/* initdb -D /pgdir/ pg_ctl start -D /pgdir/ psql template1 -f file.sql logged into db and recreated the function psql db create function ds_stats... Thanks, Stuart -- Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-sql