| From: | Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> |
|---|---|
| To: | Claudio Freire <klaussfreire(at)gmail(dot)com> |
| Cc: | PostgreSQL-Dev <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: [WIP] [B-Tree] Keep indexes sorted by heap physical location |
| Date: | 2016-08-21 04:43:57 |
| Message-ID: | CAA4eK1+_y=XsccEoA-uykoaGhR=b4am29qv2dqHVyRY8OBaMtQ@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Sat, Aug 20, 2016 at 9:58 PM, Claudio Freire <klaussfreire(at)gmail(dot)com> wrote:
> On Sat, Aug 20, 2016 at 4:27 AM, Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> wrote:
>>
>> That makes sense, but this means there is a chance that the searches
>> could lead to different buffers in case of uniqueness checks (the
>> search with key-ctid could lead to a different buffer than the search
>> with just key). I am not clear do we have requirement for doing this
>> uniqueness check for key-ctid search API, because as I understand you
>> want to do it mainly for vacuum and WARM tuples. Vacuum won't add new
>> tuples, so is this required for WARM tuples?
>
> Well, I'm not realy sure what exactly would need to be done when doing
> the WARM conditional insert in the case of unique indexes, and that's
> a strong motivation to not add the interface for inserts just yet.
> Vacuum will only need to delete, and in the case of deletes the
> operation would be quite straight forward.
>
Right. I think if you initially modify the interface only for deletes
that will reduce the complexity of patch as well. We can later
enhance it to handle WARM tuple case.
--
With Regards,
Amit Kapila.
EnterpriseDB: http://www.enterprisedb.com
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Amit Kapila | 2016-08-21 05:45:36 | Re: dsm_unpin_segment |
| Previous Message | Craig Ringer | 2016-08-21 04:24:50 | Re: replication slots replicated to standbys? |