pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mark Steben <msteben@autorevenue.com>
To: 'Simon Riggs' <simon@2ndquadrant.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Question on partitioning
Date: Thu, 16 Nov 2006 13:13:38 -0500
Message-ID: <002601c709aa$f06ca210$b501a8c0@D1RPQZB1> (raw)
In-Reply-To: <1163698723.27956.554.camel@silverbirch.site>

Simon, you're right on the money.. the guys on the IRC chatroom suggested
that I cast the partitioning column as SMALLINT as the optimizer assumed
Integer and it worked.  Thx for getting back to me
Mark Steben
AutoRevenue

-----Original Message-----
From: Simon Riggs [mailto:simon@2ndquadrant.com] 
Sent: Thursday, November 16, 2006 12:39 PM
To: Mark Steben
Cc: pgsql-admin@postgresql.org
Subject: Re: [ADMIN] Question on partitioning

On Wed, 2006-11-15 at 15:13 -0500, Mark Steben wrote:

> Regarding partitioning - I set up a testing table - parent table and 4
> partitioning children's tables inheriting the
> 
> Attributes of the parent.  I inserted 1800 rows in all - 450 equitably
> in each partition. The CHECK constraints work great.
> 
>   The PART_ID column, defined as SMALLINT, Is the partitioning
> column.  
> 

You'll probably want to look at the caveats here
http://www.postgresql.org/docs/8.2/static/ddl-partitioning.html#DDL-PARTITIO
NING-CAVEATS

especially the ones about cross-datatype comparisons in CHECK
constraints.

-- 
  Simon Riggs             
  EnterpriseDB   http://www.enterprisedb.com





view thread (6+ messages)

Message-ID: <002601c709aa$f06ca210$b501a8c0@D1RPQZB1>
Permalink:  ../002601c709aa$f06ca210$b501a8c0@D1RPQZB1/
Also on:    postgresql.org/message-id/002601c709aa$f06ca210$b501a8c0@D1RPQZB1

 · 

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: msteben@autorevenue.com, simon@2ndquadrant.com
  Subject: Re: Question on partitioning
  In-Reply-To: <002601c709aa$f06ca210$b501a8c0@D1RPQZB1>
  References: <1163698723.27956.554.camel@silverbirch.site> <002601c709aa$f06ca210$b501a8c0@D1RPQZB1>

* 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