Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qwPBn-00BTxO-8Y for pgsql-admin@arkaria.postgresql.org; Fri, 27 Oct 2023 15:55:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qwPBl-00GxlR-Md for pgsql-admin@arkaria.postgresql.org; Fri, 27 Oct 2023 15:55:57 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qwPBl-00GxlJ-Bt for pgsql-admin@lists.postgresql.org; Fri, 27 Oct 2023 15:55:57 +0000 Received: from mail-ej1-x636.google.com ([2a00:1450:4864:20::636]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qwPBi-002az1-Sp for pgsql-admin@lists.postgresql.org; Fri, 27 Oct 2023 15:55:56 +0000 Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-98377c5d53eso350463966b.0 for ; Fri, 27 Oct 2023 08:55:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20230601.gappssmtp.com; s=20230601; t=1698422153; x=1699026953; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=cpiT3aKuzu+OuvmeLA1jyXiRkYXMy7kUKi3z8wf4wzk=; b=0tGgEBaDxqW/gx3jNXL1/oA3UOI1141ZhwQR7j0+OTeBcZGKfUOO1i3taDi4AF8YnO C2XAFMjzwu5l/nWc6QIfmmEfaN0breaJgpP5OaORrodXm00IFdbZ0Jju2ALc/bZImqcA wiL2qj1hV/7Yu4R3ED8atHBT42z799WUjIr28/ceyXsrvVfUPIlOSXG0c2G25u0kZUic xwCvtmfqZyO9ImeNmNVoSqwVOPQ/Yy3m+A6i4BCLMeRzgtM2RqXIWSpHxkACmjYxJJhv LqiiLW/WgYGqC1IjQ12Rpx279o4zdwA5Kjx6ykeTmtH3KY5iaMA7Vsbh/pjS7Be5GzPi UHBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698422153; x=1699026953; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=cpiT3aKuzu+OuvmeLA1jyXiRkYXMy7kUKi3z8wf4wzk=; b=Zu7X3sZb2ffVqe4xgh+3nzJqljhw8APCgPzCzumnHe7KYY2qNYwAEQ5nAs0Ib3JW3s N56jIxj9r82HgTyFgYl6kPw6fRl2f5gkU0HTUwrcrZ2H6jkZVSyoWmwn/p8UvwRJ5R/0 SAdwwL6JeLRttj4FhKuEJGsoS9Jm0nWaPk11MYhe3kZxc5yB8v69u/K/N3vD2Cyeb9w0 U2vyGDjBcgrI7q9pJC0jyPQqQwBmpgypNkIY4vo/pDrA/BuQyjweSUC7PSmrQjBglkc9 d80bmzFEbPEC79mnSRlqJKZQAbQsGIMPIStLKXNct+lkB/bRPL5ivx5INptxJIqTCyh3 0eSQ== X-Gm-Message-State: AOJu0Yz9awaxcjwXzd8z9l9oTdT0A5Ric9ZSDnQ0CEWTRsAXWbVXAnVS nXN4pvkpIG/JP/kcTQ9EMEJj6Qa5/6dkiw6nzOQ= X-Google-Smtp-Source: AGHT+IEKJ2BV+Rre8HkTRXd5LfZoQKv8m9A2VHNOaDVegQf6QHuzV88w4ccDHQvs4vU5SyLGcBemtw== X-Received: by 2002:a17:906:db08:b0:9be:687e:1cb3 with SMTP id xj8-20020a170906db0800b009be687e1cb3mr2275299ejb.53.1698422153275; Fri, 27 Oct 2023 08:55:53 -0700 (PDT) Received: from localhost.localdomain ([2001:871:5e:8321:e6fd:49be:4e52:be26]) by smtp.gmail.com with ESMTPSA id p20-20020a170906b21400b009b65a698c16sm1371593ejz.220.2023.10.27.08.55.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 08:55:53 -0700 (PDT) Message-ID: <0981da4150831360f7e72326eb78e2fe6ed5a8ec.camel@cybertec.at> Subject: Re: Progress of ALTER TABLE on inheritance-partitioned table? From: Laurenz Albe To: Ron , pgsql-admin@lists.postgresql.org Date: Fri, 27 Oct 2023 17:55:52 +0200 In-Reply-To: <19270938-47e4-4863-84e3-8f638eb357b3@gmail.com> References: <400b499f-7db5-4e00-ac1c-0b20e855dc88@gmail.com> <19270938-47e4-4863-84e3-8f638eb357b3@gmail.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, 2023-10-27 at 09:19 -0500, Ron wrote: > On 10/27/23 09:04, Laurenz Albe wrote: > > On Fri, 2023-10-27 at 08:34 -0500, Ron wrote: > > > Pg 9.6.24 (Yes, I know; it's out of my control.) > > >=20 > > > I'm ALTERing that table to change a column from INTEGER to BIGINT. Of > > > course, all of the partitions are pretty big. > > >=20 > > > Even though it's one giant transaction, is there any way for me to mo= nitor > > > it's progress? > > No, there is no way to monitor progress. The best you can do is to fol= low > > the growth of the table on disk. > >=20 > > You could consider logical replication ... oh, wait, 9.6. >=20 > Since it's really a bunch of "small" partitions, can I track the=20 > (non)existence of those table oid files under $PGDATA/? Probably not. Perhaps your best bet is to watch the growth of the data directory. Yours, Laurenz Albe