Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ly4oL-0002bo-Nd for pgsql-general@arkaria.postgresql.org; Tue, 29 Jun 2021 03:53:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ly4oJ-0007Uf-EK for pgsql-general@arkaria.postgresql.org; Tue, 29 Jun 2021 03:53:19 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ly4oJ-0007UX-3O for pgsql-general@lists.postgresql.org; Tue, 29 Jun 2021 03:53:19 +0000 Received: from mail-ot1-x32c.google.com ([2607:f8b0:4864:20::32c]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ly4oC-0003hy-8V for pgsql-general@postgresql.org; Tue, 29 Jun 2021 03:53:18 +0000 Received: by mail-ot1-x32c.google.com with SMTP id h24-20020a9d64180000b029036edcf8f9a6so21289274otl.3 for ; Mon, 28 Jun 2021 20:53:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=Ie6lFzKhcDFhx4L+5KEW6ZbB6m/u5a2siEIHpp9iHMo=; b=WMXnhtts4XG1qPDppZWFnk5Bv3sm4tA604xELV39PReVQgBe3SyKkj1S0meBop0NVx IbZLJLnS+tgDVabCodXhjtROgBZee+d5krUu+NUrT4AdUROziV4nRDJOMjlDs71bCCfa +dHOe8R2hiu4xkOm0IWyVjCoxLso/nMxG8gdP/klYAwalCez7rNp5VLl7u69nINI09uh OjTiLFcqt8Rzx67tSLYSdDuDaSzYVQUb0i5I/hLuMmMqy+4W1r9uVjMpaKkyr/Oy6Bi7 /HLUkRazEL3dsJqH4e2lhccvXe2PgPKxScX/jnpmHJIVvTn1fV7/GCc0FWwLVEDMBwnC +IdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=Ie6lFzKhcDFhx4L+5KEW6ZbB6m/u5a2siEIHpp9iHMo=; b=BejPUj5Dkg/pBxxyB9+6PFMX5KyM+b3/UKLJQgBX1oQ3j9+dGSFBdnmgpZLa+TgSS9 BkeSjfkdjmxjg421csTkxYv6KOmoi1WZKTLMDNMVGDVvfZX6acThkaMIaypjN2wsfTue 7hPNa2xuur4+bt8OtV/4geDekUcKrV07bhcE1fqrYlaos/fCMyi+UrcD4IGevYSEXh7s JA5Jhj40RLGiVhZqp9sXN8F2GfZGqx1fi/LroHynTJ7hO1P5GcH4TOkpVmXkkxp2+Lft Mpyb1AGebEO6mgr0OmsZvy8o0BrtpYj0SitifRD6O1/NC0ex/Wjw1OUIpUJNAlz5sbcH 3MEA== X-Gm-Message-State: AOAM531eGSVCtsIOajADyU526uCxz2nPMxIVMkg6LSBOnCWWmKqhuhpi UWKK5C5Y2SOCY8k69yZD3jFSFGrxUACF0Q== X-Google-Smtp-Source: ABdhPJwrOw26DkcLjRBvT5LuJ10OQY27Of0hcXgvS+J0niOmLRaFDmT/wbCAcJbyW4jy+YP5IO9jSQ== X-Received: by 2002:a9d:4105:: with SMTP id o5mr2595032ote.20.1624938790245; Mon, 28 Jun 2021 20:53:10 -0700 (PDT) Received: from [192.168.88.10] (ip174-67-141-204.no.no.cox.net. [174.67.141.204]) by smtp.googlemail.com with ESMTPSA id bb34sm1968335oob.39.2021.06.28.20.53.09 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 28 Jun 2021 20:53:09 -0700 (PDT) To: "pgsql-general@postgresql.org" From: Ron Subject: CREATE INDEX ONLY on a partitioned table? Message-ID: Date: Mon, 28 Jun 2021 22:53:09 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Postgresql 12.5. https://www.postgresql.org/docs/12/ddl-partitioning.html mentions creating indices on children, and then attaching them to a table which previously had CREATE INDEX ... ONLY ON executed. Can I do something similar on an existing table (for example, on a heavily partitioned table, or because I want to see that progress is being made)? -- Angular momentum makes the world go 'round.