From: | Jeff Janes <jeff(dot)janes(at)gmail(dot)com> |
---|---|
To: | Richard Onorato <richard_onorato(at)yahoo(dot)com> |
Cc: | "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Table Partitioning |
Date: | 2013-05-22 04:35:29 |
Message-ID: | CAMkU=1wfJUL6-96EojgcnoJQbf-3b2GMOZzRYJ=SiBMyyjOChg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Tuesday, May 21, 2013, Richard Onorato wrote:
> I am wanting to partition my data based on a mod of one of the bigint
> columns, but when I run my insert test all the data goes into the base
> table and not the partitions. Here is what the table looks like:
>
This works for me, on 9.2.4. Can you show exactly how you do the inserts?
CREATE TABLE MyMappingTableT1 (PRIMARY KEY (id), CHECK((c1 % 5) = 0))
> INHERITS (MyMappingTable);
>
>
This is not going to work well. constraint_exclusion does not understand
the modulus operator.
Cheers,
Jeff
From | Date | Subject | |
---|---|---|---|
Next Message | Dev Kumkar | 2013-05-22 05:37:20 | Re: [ODBC] ODBC constructs |
Previous Message | John R Pierce | 2013-05-22 04:02:19 | Re: [ODBC] ODBC constructs |