pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Tolley <eggyknap@gmail.com>
To: Julio Cesar Sánchez González <knowhow@sistemasyconectividad.com.mx>
Cc: pgsql-general@postgresql.org
Subject: Re: Partitioning
Date: Sat, 18 Aug 2007 09:33:19 -0600
Message-ID: <e7e0a2570708180833q2bf2fbfbxd608a95a5333861f@mail.gmail.com> (raw)
In-Reply-To: <1187424557.6772.5.camel@andromeda>
References: <1187424557.6772.5.camel@andromeda>

On 8/18/07, Julio Cesar Sánchez González
<knowhow@sistemasyconectividad.com.mx> wrote:
> Hi guys,
>
> It's natural what master table in the partitioning table contain data
> (http://www.postgresql.org/docs/8.1/interactive/ddl-partitioning.html) ?
> or to be empty.

I'm no partitioning expert, but I would say most of the time the
parent table is supposed to be empty. That said, partitioning schemes
need to be developed based on what data you have and what exactly
you're trying to do. If you're using the common example of keeping a
bunch of historical data where partitions represent a distinct chunk
of time (for instance, one partition for every month of data) you
probably want to keep the parent table empty. Every row has a date,
and so there's a child table for each row naturally, so it doesn't
make sense to put anything in the parent tables. But I'm sure someone
can come up with a scheme where having data in the parent is also
useful.

- Josh



view thread (32+ messages)  latest in thread

Message-ID: <e7e0a2570708180833q2bf2fbfbxd608a95a5333861f@mail.gmail.com>
Permalink:  ../e7e0a2570708180833q2bf2fbfbxd608a95a5333861f@mail.gmail.com/
Also on:    postgresql.org/message-id/e7e0a2570708180833q2bf2fbfbxd608a95a5333861f@mail.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: eggyknap@gmail.com, knowhow@sistemasyconectividad.com.mx
  Subject: Re: Partitioning
  In-Reply-To: <e7e0a2570708180833q2bf2fbfbxd608a95a5333861f@mail.gmail.com>
  References: <1187424557.6772.5.camel@andromeda> <e7e0a2570708180833q2bf2fbfbxd608a95a5333861f@mail.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