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

From: Igor Neyman <ineyman(at)perceptron(dot)com>
To: Chris Withers <chris(at)simplistix(dot)co(dot)uk>, John R Pierce <pierce(at)hogranch(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: performance problems with bulk inserts/updates on tsrange with gist-based exclude constrains
Date: 2016-09-16 13:54:01
Message-ID: MWHPR07MB2877649C8B70929DA95FC928DAF30@MWHPR07MB2877.namprd07.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


-----Original Message-----
From: pgsql-general-owner(at)postgresql(dot)org [mailto:pgsql-general-owner(at)postgresql(dot)org] On Behalf Of Chris Withers
Sent: Friday, September 16, 2016 6:47 AM
To: John R Pierce <pierce(at)hogranch(dot)com>; pgsql-general(at)postgresql(dot)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 inserting a new row with a start ts running on from that.

Of course, the adds are just inserting new rows.

cheers,

Chris

____________________________________________________________________________________________________

So, what is the value for "end ts", when the record is inserted (the range just started)?

Regards,
Igor Neyman

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Arun Rangarajan 2016-09-16 14:01:37 Re: Unable to create oracle_fdw (foreign data wrapper) extension
Previous Message Chris Withers 2016-09-16 11:13:52 Re: performance problems with bulk inserts/updates on tsrange with gist-based exclude constrains