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 1mD6fw-00025x-4H for pgsql-general@arkaria.postgresql.org; Mon, 09 Aug 2021 14:54:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mD6fN-0006m8-GL for pgsql-general@arkaria.postgresql.org; Mon, 09 Aug 2021 14:54:13 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mD6fN-0006m0-5e for pgsql-general@lists.postgresql.org; Mon, 09 Aug 2021 14:54:13 +0000 Received: from mail-oo1-xc33.google.com ([2607:f8b0:4864:20::c33]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mD6fK-0000fi-Ch for pgsql-general@lists.postgresql.org; Mon, 09 Aug 2021 14:54:12 +0000 Received: by mail-oo1-xc33.google.com with SMTP id z3-20020a4a98430000b029025f4693434bso4443282ooi.3 for ; Mon, 09 Aug 2021 07:54:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=s0SCMoHXB6mfibB4TGH4WvGU7X+xevhgoWixTWECaiY=; b=saFLHK4QYv86OxFaPgN68Gaj0kspcrG78U87lrhajNAhPJlPD1dnXXkxe9owMsBJKe bDM8/JiOV29mX0Jf3XJ29vvY/Oo+m2AfNp3tF51AqZxfZmlRnHIgGDKnCzcwigqxCvu3 RxSMCjXn+CSwSWEjw4qoYfN6PK+I+GXxZlwbMwE4cyNRWXrAu3tOYPlqPEBsyZCdq6ol +wCgSkPH3vSdK6iCTGcEvq+UQpaT/OL5yWPoHmDFOiq+GeB+oZkzRCRvQSjXcEay0u6h N/lfCiJUgRPIdsXtekWgBRPt9gEUbdVGvktQyfM0hkpocTFPsq3ON2XqzSDg624+cKL9 OhSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=s0SCMoHXB6mfibB4TGH4WvGU7X+xevhgoWixTWECaiY=; b=hkUYaV48HuDtXRdYmep5XIKZFoHoJYpjfIAkYkTdwHp/MnWrlP2DT2TCNY2nMoRr9r KGpcF9oa3air9QTxAV3kOtXJlg5dJksHnTbU9d9C777ONNY7cT8/KywCn02MIOgm86T/ 31LRSu+3C9r+JrutHVP9xa9ozu/f04kDWy8mWMyTALTBjW7VuNJnvto45BeBHPIBfjeb IW62lLhSqEkptvurMxezSffUAoN0suE1/rBT7HKpIZzzF8VSkOxaikfAQomFvCTpRTgY bnTffKDCQ+ECK714N/kxpU0ZKG8kShkk+cnf6RmHy1cY+0UCqaVqd/AUBa4PBAocjdvp t4qA== X-Gm-Message-State: AOAM5312mlhTfUh3nb2bYWwi0uxfGuAt82Nfnb05YBH987oil3F0s1xd JbZQG0rrpvw0fCaVUcbHVPEFbUMvvqOAwQ== X-Google-Smtp-Source: ABdhPJy2dRib1ujXzJdbzHEWzP/YiAmoGwYi8qzf5Y+ItFQVBTBtA54jI82ESi+g8JerfrCaVCtH1A== X-Received: by 2002:a4a:ea37:: with SMTP id y23mr14165029ood.39.1628520849432; Mon, 09 Aug 2021 07:54:09 -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 7sm1714668oth.69.2021.08.09.07.54.08 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 09 Aug 2021 07:54:08 -0700 (PDT) Subject: Re: Partitioning a table by integer value (preferably in place) To: pgsql-general@lists.postgresql.org References: From: Ron Message-ID: Date: Mon, 9 Aug 2021 09:54:07 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 8/9/21 9:14 AM, Pól Ua Laoínecháin wrote: > Hi again all, > > Just a quick follow-up - could I script the creation of 1000 > partitions using bash Sure.  That's what scripting languages are for. > or PL/pgSQL? I think (rightly/wrongly?) that > this may be the best solution? > > I've found samples on the web, but they are for partitioning by date - > a quick sample by integer would be gratefully received! > > Is partman recommended by the community? -- Angular momentum makes the world go 'round.