pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Guido Barosio <gbarosio@gmail.com>
To: Colton A Smith <smith@cs.utk.edu>
Cc: pgsql-admin@postgresql.org
Subject: Re: COPY and partitioning
Date: Sat, 19 Nov 2005 00:29:54 +0000
Message-ID: <f7f6b4c70511181629uaddf3d4t237c360a0b5019d6@mail.gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.62.0511170946370.29277@cetus5.cs.utk.edu>
References: <Pine.LNX.4.62.0511170946370.29277@cetus5.cs.utk.edu>

Thinking about dumping the schema, rewriting that structure with your
partitioning needs, and after copy the data.
 Why not?
 Just 2 cents, never done it.
 to dump a schema:
pg_dump -s dbname > dbname.schema
 Then just restore the data, it should work I guess.
 Best regards,
Guido

 On 11/17/05, Colton A Smith <smith@cs.utk.edu> wrote:
>
> Hi
>
> I understand v8.1 implements table partitioning. Very exciting!
>
> I have a big table (30 G) that is a real headache. I'd like to
> partition it. My plan is the following: (1) use pg_dump -t to
> dump the data; (2) create a partitioning schema with check constraints;
> and (3) repopulate using the COPY utility.
>
> My question: does the COPY utility consult check constraints
> before populating tables?
>
> Thanks as always.
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: explain analyze is your friend
>



--
"Adopting the position that you are smarter than an automatic
optimization algorithm is generally a good way to achieve less
performance, not more" - Tom Lane.

view thread (3+ messages)  latest in thread

Message-ID: <f7f6b4c70511181629uaddf3d4t237c360a0b5019d6@mail.gmail.com>
Permalink:  ../f7f6b4c70511181629uaddf3d4t237c360a0b5019d6@mail.gmail.com/
Also on:    postgresql.org/message-id/f7f6b4c70511181629uaddf3d4t237c360a0b5019d6@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-admin@postgresql.org
  Cc: gbarosio@gmail.com, smith@cs.utk.edu
  Subject: Re: COPY and partitioning
  In-Reply-To: <f7f6b4c70511181629uaddf3d4t237c360a0b5019d6@mail.gmail.com>
  References: <Pine.LNX.4.62.0511170946370.29277@cetus5.cs.utk.edu> <f7f6b4c70511181629uaddf3d4t237c360a0b5019d6@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