Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fzIV6-0008L7-Bp for pgsql-hackers@arkaria.postgresql.org; Mon, 10 Sep 2018 09:28:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fzIV3-0005jM-8K for pgsql-hackers@arkaria.postgresql.org; Mon, 10 Sep 2018 09:28:53 +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.89) (envelope-from ) id 1fzIV2-0005iX-Ug for pgsql-hackers@lists.postgresql.org; Mon, 10 Sep 2018 09:28:53 +0000 Received: from mail-it0-x241.google.com ([2607:f8b0:4001:c0b::241]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fzIUy-0001zh-8u for pgsql-hackers@postgresql.org; Mon, 10 Sep 2018 09:28:51 +0000 Received: by mail-it0-x241.google.com with SMTP id j198-v6so5514929ita.0 for ; Mon, 10 Sep 2018 02:28:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=5Y5/pmf3j5My22kVUe0J65uxIujtTeqyKnrzOf9RhQg=; b=stZwniSHDuFgSHq8snMwi77508bxYYcGU2dFtEkkrdD+eoJWGKzKkp9/f6XiuDzken Vf5ZpPu3/9aADDP4czBdscd5DLTX8k/3qWMQ4v8nfT9NRLzHr71waYlqcxi5N673G8Bm fdLPDka5M+457CLkIHH6jm3TWk40WlGrd7EUIXmD8IRMG/w5wyeS7jBIHhJGptEQXaWm VImM35yrbqIhg1QPMGiWKGYRz47e7aMinYA7rpARVyEnUsMcTIJPxYNJlslV77+cU2Nl D/IHLQVd3argRPQ7QTN2okq9TyZp3H87Y+WKyyoDqLQ35Tj/hatUL3ZwkbYqc1ljxSPL nb0Q== 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:references :mime-version:content-disposition:in-reply-to:user-agent; bh=5Y5/pmf3j5My22kVUe0J65uxIujtTeqyKnrzOf9RhQg=; b=abJ8yBMvtwfW4+LR3s2Xp7hrpneGl1dTWW4hXGcb2wUShjDSgUz++yvEjAmnYWNlgu GB2DnY4K0bXUtSFGQB7nM0wVujPEIHNeIp8IoxjPUOxZdvZUcwK0iwd2pR+M/OckgOyD 6nDIi4u2G3YzByZVk/FpWH0+pDgQTZ2MxWLK6ARJv27WHYf91zbShcZaumTVSZP5qLpf HR8bLD1GEwwphkInnqB51taF3fjmz/BI/iQCSGQ4XP/dNhkCq7UEg4GDiFvN2GwKSu4b BatdH2qJyKVbHPtKPCWrwLxBr3cszzBMxN8j/DFRrXGuZ6c/7TMy2XCu0nq5fDw3Ps1W dvBg== X-Gm-Message-State: APzg51C7hkS55HZ8kUE61dFBsRHHWEEZwZLwxXjM41FQ+dBe9yG7h1y5 eJEv6AUDKrFfFLOc4Tm3pLbtMg== X-Google-Smtp-Source: ANB0VdYC983m69s5Ub1KVOw8boVq+ETUXraPHyCPm9ZMWy2CqY6xMnFaU4q+IsL58FjbzZc2c/6bow== X-Received: by 2002:a24:f908:: with SMTP id l8-v6mr17439510ith.116.1536571726116; Mon, 10 Sep 2018 02:28:46 -0700 (PDT) Received: from pryzbyj (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id a14-v6sm4944283ioh.45.2018.09.10.02.28.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Sep 2018 02:28:45 -0700 (PDT) Received: by pryzbyj (Postfix, from userid 1000) id 45850805809; Mon, 10 Sep 2018 04:28:44 -0500 (CDT) Date: Mon, 10 Sep 2018 04:28:44 -0500 From: Justin Pryzby To: Rajkumar Raghuwanshi Cc: pgsql-hackers , Alvaro Herrera Subject: Re: cache lookup failed for constraint when alter table referred by partition table Message-ID: <20180910092843.GQ11702@telsasoft.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Adding Alvaro On Fri, Sep 07, 2018 at 04:02:13PM +0530, Rajkumar Raghuwanshi wrote: > postgres=# CREATE TABLE non_part (a INT,PRIMARY KEY(a)); > postgres=# CREATE TABLE part (a INT REFERENCES non_part(a)) PARTITION BY RANGE(a); > postgres=# CREATE TABLE part_p1 PARTITION OF part FOR VALUES FROM (MINVALUE) TO (MAXVALUE); > postgres=# ALTER TABLE non_part ALTER COLUMN a TYPE bigint; > *ERROR: cache lookup failed for constraint 16398* I want to suggest adding to open items. https://wiki.postgresql.org/index.php?title=PostgreSQL_11_Open_Items ..since it's documented as an "Major enhancement" in PG11: https://www.postgresql.org/docs/11/static/release-11.html Justin