| From: | Martijn van Oosterhout <kleptog(at)svana(dot)org> |
|---|---|
| To: | Gene <genekhart(at)gmail(dot)com> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: Partition Rule Updating While Running? |
| Date: | 2006-07-07 09:01:19 |
| Message-ID: | 20060707090119.GA7485@svana.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On Fri, Jul 07, 2006 at 04:39:53AM -0400, Gene wrote:
> Sorry if this is a duplicat, someone suggested posting to general as well,
>
> I'm using PostgreSQL 8.1.4 in a Hibernate Application and I am
> attempting to use partitioning via Inherited tables. At first I was
> going to create a rule per sub-table based on a date range, but found
> out with multiple rules postgres will only return the affected-row
> count on the last rule which gives Hibernate problems. So now I'm
> thinking the way to do it is just have one rule at a time and when I
> want to start appending data to a new partition, just change the rule
> on the parent table and also update the constraint on the last table
> to reflect the date ranges contained so that constraint_exclusion will
> work. this should perform better also. For instance
Why not just decide somedate2 in advance and create the constraint as a
range to start with. Then, a few days before somedate2 add a new
constraint for between somedate2 and somedate 3. Then you never have to
update any constraints...
Have a nice day,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | tommaso.gastaldi | 2006-07-07 09:01:21 | Re: OLEDB connection does not want to work. Help!! |
| Previous Message | tommaso.gastaldi | 2006-07-07 08:43:28 | Re: OLEDB connection does not want to work. Help!! |