Re: BUG #16722: PG hanging on COPY when table has close to 2^32 toasts in the table. - Mailing list pgsql-bugs

From tomohiro hiramitsu
Subject Re: BUG #16722: PG hanging on COPY when table has close to 2^32 toasts in the table.
Date
Msg-id CAOR2cEbVUDJJ_sDjONz3Yg_uCJQPN6TNZVhjUVm3WNZ1Quw9Ug@mail.gmail.com
Whole thread Raw
In response to Re: BUG #16722: PG hanging on COPY when table has close to 2^32 toasts in the table.  (Kasahara Tatsuhito <kasahara.tatsuhito@gmail.com>)
List pgsql-bugs
Hi

On Wed, Jan 6, 2021 at 11:13 AM Kasahara Tatsuhito <kasahara.tatsuhito@gmail.com> wrote:

> By the way
> How about distributing OIDs so that the GetNewOidWithIndex function doesn't take long to find an available OID?
> For example, skip one and assign an OID.
>
> As a side effect of this method, the OID progresses faster.
> (Maybe the btree index will be fragmented faster)
I think the idea of assigning OIDs to sparse is interesting.
However, I think it needs to find out how much it will affect the performance.
It could be a non-negligible overhead, especially for large amounts of
data insertion/updating.
I agree with you. I can't predict the impact of this method on performance.
I may need to do some performance tests to find out the impact of this method.

Thank you for your reply. 

regards.
--
Tomohiro Hiramitsu
NTT Open Source Software Center

pgsql-bugs by date:

Previous
From: Сибиряков Евгений Олегович
Date:
Subject: Проблемы с Postgresql 11
Next
From: Sergey Mirvoda
Date:
Subject: Re: Проблемы с Postgresql 11