pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Partitioning a table by integer value (preferably in place)
Date: Mon, 9 Aug 2021 09:54:07 -0500
Message-ID: <d08df5c8-b616-e541-2f62-fe0521457ecf@gmail.com> (raw)
In-Reply-To: <CAF4RT5QGYi2rYNXJP9HUVAyygGJ36BbWincXCKzTqVXHLkJGVQ@mail.gmail.com>
References: <CAF4RT5Si8N7S2MqRNYBrWKwEadnw6UjKvYK-Ze0ScB9cdKUvEw@mail.gmail.com>
	<CAF4RT5QGYi2rYNXJP9HUVAyygGJ36BbWincXCKzTqVXHLkJGVQ@mail.gmail.com>

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.





view thread (10+ messages)  latest in thread

Message-ID: <d08df5c8-b616-e541-2f62-fe0521457ecf@gmail.com>
Permalink:  ../d08df5c8-b616-e541-2f62-fe0521457ecf@gmail.com/
Also on:    postgresql.org/message-id/d08df5c8-b616-e541-2f62-fe0521457ecf@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: ronljohnsonjr@gmail.com
  Subject: Re: Partitioning a table by integer value (preferably in place)
  In-Reply-To: <d08df5c8-b616-e541-2f62-fe0521457ecf@gmail.com>
  References: <CAF4RT5Si8N7S2MqRNYBrWKwEadnw6UjKvYK-Ze0ScB9cdKUvEw@mail.gmail.com> <CAF4RT5QGYi2rYNXJP9HUVAyygGJ36BbWincXCKzTqVXHLkJGVQ@mail.gmail.com> <d08df5c8-b616-e541-2f62-fe0521457ecf@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox