Re: [PERFORM] Index on a range array

2013-08-15 Thread Heikki Linnakangas
On 13.08.2013 23:47, Daniel Cristian Cruz wrote: Hello, I'm trying to simplify a schema, where I had many ranges floating around. My idea is to put them all in an array field and query like this: SELECT event.* FROM event JOIN participant_details USING (participant_id) WHERE tsrange(event

Re: [PERFORM] Index on a range array

2013-08-14 Thread Daniel Cristian Cruz
I guess this is not a performance question... What kind of question would it be? Admin, General or SQL? 2013/8/13 Daniel Cristian Cruz > Hello, > > I'm trying to simplify a schema, where I had many ranges floating around. > My idea is to put them all in an array field and query like this: > > S

[PERFORM] Index on a range array

2013-08-13 Thread Daniel Cristian Cruz
Hello, I'm trying to simplify a schema, where I had many ranges floating around. My idea is to put them all in an array field and query like this: SELECT event.* FROM event JOIN participant_details USING (participant_id) WHERE tsrange(event.start, event.end) && ANY (participant_details.periods