Re: [HACKERS] Declarative partitioning grammar

2008-01-14 Thread Jeff Cohen
On Jan 14, 2008, at 1:49 AM, Markus Schiltknecht wrote: I don't think the separation into list, hash and range partitioning is adequate. What is the system supposed to do, if you try to insert a row which doesn't fit any of the values in your list or doesn't fit any of the ranges you

Re: [HACKERS] Declarative partitioning grammar

2008-01-14 Thread Jeff Cohen
On Jan 12, 2008, at 9:34 AM, Peter Eisentraut wrote: Well, with an extensible system such as PostgreSQL you will need to have a partitioning scheme that can deal with extensions. Perhaps people want to partition by XML, GIS, text-search data, or whatever someone might come up with in

Re: [HACKERS] Declarative partitioning grammar

2008-01-11 Thread Jeff Cohen
into a single partition, so we wanted a declarative syntax where it was relatively easy to check that range and list specifications don't overlap. kind regards, Jeff Cohen ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [HACKERS] Declarative partitioning grammar

2008-01-11 Thread Jeff Cohen
On Jan 11, 2008, at 4:03 PM, Mike wrote: Pardon my ignorance as I've never actually used partitioning before but plan to in the near future, but couldn't the grammar resemble a common WHERE clause more closely? Hi Mike, Thanks for your suggestions. The current syntax we chose is