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 1ggaUz-0000WX-Rw for pgsql-hackers@arkaria.postgresql.org; Mon, 07 Jan 2019 19:23:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ggaUy-00078s-Gx for pgsql-hackers@arkaria.postgresql.org; Mon, 07 Jan 2019 19:23:44 +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 1ggaUy-00078A-4q for pgsql-hackers@lists.postgresql.org; Mon, 07 Jan 2019 19:23:44 +0000 Received: from mail-qk1-x742.google.com ([2607:f8b0:4864:20::742]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ggaUq-0006T4-R2 for pgsql-hackers@postgresql.org; Mon, 07 Jan 2019 19:23:43 +0000 Received: by mail-qk1-x742.google.com with SMTP id a1so944458qkc.5 for ; Mon, 07 Jan 2019 11:23:36 -0800 (PST) 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=k7om5uUQ3+GjE0i8kh1bdGv0wPvAWqy/zrK5hgxZHy0=; b=jBPYgFSf9omm/ZBRpCCBGcYA2Uw2h8qeZYTv8/4OY90lm7jE1vxfQTWyFu+lKvox93 wwRS/drByIduzo+0qCXNPvMw7iVdWYbUZ1EiYmxLLr58r9K0srrK4QK11WhLK8xeBTlr E8WTlt15XXNbfiewujhQ8vY3sNiQ9WTQWrmdFeNRDUaLQJ2o1hB0/7eHdYbTXjj5xiB8 /+eihUTYtXAzYU1UN/XDewKdG5A/1F6sprdU+bWNOvE39a2x6UC6cYEczdLNZsfqY0XW UCLgUtSxucUrkJpWfJgpXapyq3PdIk+thYelumGpvMlUdFwTGqGy/UCZYUAco4cJ7kb4 uGUw== 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=k7om5uUQ3+GjE0i8kh1bdGv0wPvAWqy/zrK5hgxZHy0=; b=ljCkH0iYeDpLd9ZhoPpNP138OTogA3b1u7wKLw4mTMNkVZB7Ziw0Ow40WZOtTT45NW udiL3WMZu+hQrz11ypauow/jsacwW9RtcPKs+A6RXnX1yQumpPpKKabUfkJ8jkzUUMCh M6iKudempCHCtLesHuc6+Fxg692ocH/PWVl7i1etjLOLOEew102/hFOqJP3yGPtS9fFy oeF9LRGjng7O6UgSrHe/HmmU9DT7dvekCyOvZBnYyPHXuFL/guwrQENgU5dzrcta6NyZ 0+m3kx8/BDVcIJ4GxFhZGpm9TcfhdYr3A2xuho6yLSxCxpidWre3k0dG2yrfqYJ357bl EHvw== X-Gm-Message-State: AJcUukcOGNsum0d0NKsQWje2y8HR9iJkVatjW/zBLqqmil7vOg9MYbTn iT1lMINlQu0/aImfSOG42ax9904fqx+zHIf7i8qzC2fYaBv0PzndtK3C9xKJbDt1qx0a6F5J55Q mBpjPA6zPkBWuH4r3GIuY9iEE6lkef+ussDaQEdKhap9pldlHd7MFr6TxjLxBHijyayQIo3gbCk kE/DzmoUua X-Google-Smtp-Source: ALg8bN4CxlQaYlkHwLRv320pH9SxaCZLySQu0fJUY2XHIdiizzBAdzyN3R1Mqhz/8bxzO0INOXGZZg== X-Received: by 2002:a37:9d10:: with SMTP id g16mr55660636qke.53.1546889014525; Mon, 07 Jan 2019 11:23:34 -0800 (PST) Received: from alvin.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id m41sm43126963qtc.58.2019.01.07.11.23.32 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 07 Jan 2019 11:23:33 -0800 (PST) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id BDCE09A0; Mon, 7 Jan 2019 16:23:30 -0300 (-03) Date: Mon, 7 Jan 2019 16:23:30 -0300 From: Alvaro Herrera To: Justin Pryzby Cc: pgsql-hackers@postgresql.org Subject: Re: ALTER INDEX fails on partitioned index Message-ID: <201901071923.7r2xflxvncly@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190105185937.GO25379@telsasoft.com> User-Agent: NeoMutt/20180716-1013-2c1e88 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Jan-05, Justin Pryzby wrote: > 12dev and 11.1: > > postgres=# CREATE TABLE t(i int)PARTITION BY RANGE(i); > postgres=# CREATE INDEX ON t(i) WITH(fillfactor=11); > postgres=# ALTER INDEX t_i_idx SET (fillfactor=12); > ERROR: 42809: "t_i_idx" is not a table, view, materialized view, or index > LOCATION: ATWrongRelkindError, tablecmds.c:5031 > > I can't see that's deliberate, Well, I deliberately ignored that aspect of the report at the time as it seemed to me (per discussion in thread [1]) that this behavior was intentional. However, if I think in terms of things like pages_per_range in BRIN indexes, this decision seems to be a mistake, because surely we should propagate that value to children. [1] https://www.postgresql.org/message-id/flat/CAH2-WzkOKptQiE51Bh4_xeEHhaBwHkZkGtKizrFMgEkfUuRRQg%40mail.gmail.com -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services