Re: Re: best practice for moving millions of rows to child table when setting up partitioning?

From: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
To: Mark Stosberg <mark(at)summersault(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Re: best practice for moving millions of rows to child table when setting up partitioning?
Date: 2011-05-04 17:33:03
Message-ID: BANLkTinieDbJ5dabJDX7v_JzTGSkKxpsMA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Wed, May 4, 2011 at 11:04 AM, Mark Stosberg <mark(at)summersault(dot)com> wrote:
> It is not as findable as it could be then. Besides scanning the page, I
> also searched for "child", "parent" and "partition", and none of those
> words are mentioned. Neither is "inherit". Pulling out "ONLY" to have
> it's own "Parameter" sub-heading also help, instead of bundling that
> documentation under the "name" sub-heading.
>
> I suggest that at least one of the above search terms be added to better
> relate the documentation to the partitioning documentation.

Agreed.

> Further, since TRUNCATE permanently and instantly deletes mass amounts
> of data, I would hope that it would provide "safety" by default, but
> only truncating one table unless I specify otherwise.

Keep in mind you're using postgres, the only thing you can't wrap in a
transaction is create / drop tablespace or database. So you can test
your truncate within a transaction to be sure it's doing what you
want.

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Kevin Grittner 2011-05-04 17:46:30 Re: My server is oddly very slow
Previous Message Mark Stosberg 2011-05-04 17:04:39 Re: Re: best practice for moving millions of rows to child table when setting up partitioning?