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 1hr9nB-0004NJ-OJ for pgsql-bugs@arkaria.postgresql.org; Fri, 26 Jul 2019 23:38:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hr9n8-00089F-ER for pgsql-bugs@arkaria.postgresql.org; Fri, 26 Jul 2019 23:38:26 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1hr9n8-000898-32 for pgsql-bugs@lists.postgresql.org; Fri, 26 Jul 2019 23:38:26 +0000 Received: from mail-qt1-x841.google.com ([2607:f8b0:4864:20::841]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hr9n4-00034c-FT for pgsql-bugs@lists.postgresql.org; Fri, 26 Jul 2019 23:38:25 +0000 Received: by mail-qt1-x841.google.com with SMTP id z4so54335773qtc.3 for ; Fri, 26 Jul 2019 16:38:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=xckBhu2DDYwPT/zObz/DkTQaQbU9ZnNHnaIo1Jca3+A=; b=J+G8Yj2o+yuGSCfX9IrlqXgEc7ILEyIhBKahlsK69aljY2dDWcn8R9yBV0eBzvg1Xw vfCMvfnr7sY4Y1jXCgzBUXmYBj8tppSMhwoVdc1MQzndPogJhUi6JcVArvDBm1ptq03g tUNMa9Apt2JRzadQ/9VsLzMW4O1PwaaB031dJjYGCsmYBqlg0cokSJSOiTyZu+rvHObA c8R5kLObwuy38Va8H2owbJJtOc/3c80E5S519+PGTd0hu4hLo+1Bkz15F0a2SgSgFFv4 TUp/aCDsRwIFw6tapNn4+gRd1keqFsJhkXhZOKV1ldPV+0WNLImea/T1XWd3OmUYOiBG oXfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=xckBhu2DDYwPT/zObz/DkTQaQbU9ZnNHnaIo1Jca3+A=; b=surMfuo75y82UczACZiOj/3LGO7ZHwbL9dcpyRnMGGefHbdcOAXEDf3d5Ix86arNv6 +65c8F5d0vukJC7+Ktj7N/nL6GR2wihG6g2e1ogr7L4/vqNVs3IlBgk9eYLl66m4xUz+ vH7jeb4qWC/Epq5zPbhEFCeONwnB8O+xkN/WiCdvEmSI8FmHeBaDT78uELcgex+Syt+F DUGj8cAiuI1e7tEMsqP91fO5xmDaM6+YUey+KaPwCTxkBBaN/M8GQjXtUWXNZCsEj51U irwX/kwJq9zaMod+aCvZ9iNgd9FoFPigTZvmACXq81vgjgzaJeNI+2pN0BGuZsm4f2vo Dz9g== X-Gm-Message-State: APjAAAWmjVjMd9SCDI70iCrAXjwmPZL4H64fBpMP+CTH3Vr/w4eSeIoW k8MlN0jeI0Vu6noh6D6kUQ0ajA== X-Google-Smtp-Source: APXvYqyf3+IK+Tyw2lP4f66NDllPlKICF92JukQYbCILvohlOFdigXNbfrdMqejc+pob5cXplxEpbg== X-Received: by 2002:ac8:18f0:: with SMTP id o45mr67966570qtk.273.1564184299483; Fri, 26 Jul 2019 16:38:19 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([179.56.49.109]) by smtp.gmail.com with ESMTPSA id t12sm23641584qtr.49.2019.07.26.16.38.18 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 26 Jul 2019 16:38:18 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id A63BC121121; Fri, 26 Jul 2019 18:20:28 -0400 (-04) Date: Fri, 26 Jul 2019 18:20:28 -0400 From: Alvaro Herrera To: Tom Lane Cc: Manuel Rigger , PostgreSQL mailing lists Subject: Re: DISCARD TEMP results in "ERROR: cache lookup failed for type 0" Message-ID: <20190726222028.GA18654@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4709.1562365346@sss.pgh.pa.us> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Jul-05, Tom Lane wrote: > Manuel Rigger writes: > > CREATE TEMP TABLE t0(c0 INT GENERATED ALWAYS AS IDENTITY) PARTITION BY > > HASH((t0.c0)); > > VACUUM FULL; > > DISCARD TEMP; -- unexpected: ERROR: cache lookup failed for type 0 > > Blech. The proximate cause is fairly obvious from poking around with a This was fixed by commit a0555ddab9b. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services