Re: performance problems with bulk inserts/updates on tsrange with gist-based exclude constrains - Mailing list pgsql-general

From Chris Withers
Subject Re: performance problems with bulk inserts/updates on tsrange with gist-based exclude constrains
Date
Msg-id bdddb804-f284-b11f-6022-26652c2791a1@simplistix.co.uk
Whole thread Raw
In response to Re: performance problems with bulk inserts/updates on tsrange with gist-based exclude constrains  (Igor Neyman <ineyman@perceptron.com>)
Responses Re: performance problems with bulk inserts/updates on tsrange with gist-based exclude constrains  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
On 16/09/2016 14:54, Igor Neyman wrote:
>
> -----Original Message-----
> From: pgsql-general-owner@postgresql.org [mailto:pgsql-general-owner@postgresql.org] On Behalf Of Chris Withers
> Sent: Friday, September 16, 2016 6:47 AM
> To: John R Pierce <pierce@hogranch.com>; pgsql-general@postgresql.org
> Subject: Re: [GENERAL] performance problems with bulk inserts/updates on tsrange with gist-based exclude constrains
>
> On 16/09/2016 10:26, John R Pierce wrote:
>> On 9/16/2016 2:23 AM, John R Pierce wrote:
>>>
>>> wait, what is a tsrange?   the standard textsearch data types in
>>> postgres are tsvector and tsquery,
>>
>> never mind,  I should have known, its a timestamp range.   ...
>>
>>
>> when you do updates, are you changing any of the indexed fields, or
>> just "value" ?
> Yeah, it's a temporal table, so "updates" involve modifying the period column for a row to set its end ts, and then
insertinga new row with a start ts running on from that. 
>
> Of course, the adds are just inserting new rows.
>
> So, what is the value for "end ts", when the record is inserted (the range just started)?

It's open ended, so the period is [start_ts, )

Chris


pgsql-general by date:

Previous
From: Arun Rangarajan
Date:
Subject: Re: Unable to create oracle_fdw (foreign data wrapper) extension
Next
From: Tom Lane
Date:
Subject: Re: performance problems with bulk inserts/updates on tsrange with gist-based exclude constrains