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 1fzLsH-0001pp-Bk for pgsql-hackers@arkaria.postgresql.org; Mon, 10 Sep 2018 13:05:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fzLsE-0004wR-JV for pgsql-hackers@arkaria.postgresql.org; Mon, 10 Sep 2018 13:05:02 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fzLsE-0004w7-4D for pgsql-hackers@lists.postgresql.org; Mon, 10 Sep 2018 13:05:02 +0000 Received: from mail-qt0-x241.google.com ([2607:f8b0:400d:c0d::241]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fzLsA-00057U-V1 for pgsql-hackers@postgresql.org; Mon, 10 Sep 2018 13:05:00 +0000 Received: by mail-qt0-x241.google.com with SMTP id k38-v6so23930960qtk.11 for ; Mon, 10 Sep 2018 06:04:58 -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=8e+bAYID3G+I2bUFugsg2LKGpvEml7bEF7v7+bp/WIE=; b=fyJFbUjxK6hvs18OgD8KTUPoUrzVZLV0rE4PznWK7t3ihETqhbmPhfZNIGMO3t77jF tcWp3kb5RfuauwR8evgZk6bAhEDuogkev+SaVJ7z7qU1ciuw2KM8m4zS2e6qtwmciyw5 G5VJ7YRD2OyoaBluZ2y4DObkHr7/TfAm8tPLW7u2KfNGoGkv7HP/DzwgS9bQ7L0m043E GazNuLk56tIiVYMVmUHIyDPLoBoDpy+1SaZyjYdDQgruMSUEPpgdm2qNu9KKZs3FEqd9 R4yBpw5nM9lO4ICjGO8B/JyWirQQtvN2lXQmBG7NEWzkd+witsaUAE9eW9J23CPr2C8z bxKA== 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=8e+bAYID3G+I2bUFugsg2LKGpvEml7bEF7v7+bp/WIE=; b=jCMLWuBVlmzWetiBfXUnYw2JyEEZbp0Ah6s9faTtvlq6tYtkOJ4K3e++18Z4c44cnt yQ4OLTOdJukm9M1jhI9Aaf5NCT+zf1Pdf6OklhZ7J69zZC/fPcaapj5wSfxoSvrDVJOE yXdcR5W7IKtec65innZUiaSAsKiJl52jzj8Qo1RGr1pWY+hh0EjBzr9UM8/r5shbb0Fh CWqCu0747yGKyCvZkNb3TxsClNA+IfhclVDHXhv7baZim+CReOhoazQAe17a4ul2i7Wx hOHAxxvTQ1L99VSoVfqp2/2cdSaDksN7qnl6JgF5sfElrLkcXYPRIQUTyazKy8WNNtyN q2NQ== X-Gm-Message-State: APzg51AYRcaFB+fib1F72VzJ1ADe0hHGpxR2GrE1OO6vEJs7iuNVVzqB DBAejbAn19QtMDEI7AAfIHOqlw== X-Google-Smtp-Source: ANB0VdZaQpHpS+p/Htc4m5g30uNToUXJXKwGEvQ3UexzzPYf61N4Rjw8tufrElJJ91UghwhXfjj7gA== X-Received: by 2002:ac8:1909:: with SMTP id t9-v6mr15766769qtj.327.1536584698142; Mon, 10 Sep 2018 06:04:58 -0700 (PDT) Received: from alvin.alvh.no-ip.org ([191.125.227.82]) by smtp.gmail.com with ESMTPSA id a10-v6sm10097329qkj.60.2018.09.10.06.04.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 10 Sep 2018 06:04:57 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id CBEF54ED; Mon, 10 Sep 2018 09:47:47 -0300 (-03) Date: Mon, 10 Sep 2018 09:47:47 -0300 From: Alvaro Herrera To: Justin Pryzby Cc: Rajkumar Raghuwanshi , pgsql-hackers Subject: Re: cache lookup failed for constraint when alter table referred by partition table Message-ID: <20180910124747.iqfyeccjnllijl4v@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180910092843.GQ11702@telsasoft.com> User-Agent: NeoMutt/20170306-137-4415bd-dirty (1.8.0) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018-Sep-10, Justin Pryzby wrote: > 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 Thanks, looking. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services