Re: BUG #16722: PG hanging on COPY when table has close to 2^32 toasts in the table.
Andres Freund <andres@anarazel.de>
From: Andres Freund <andres@anarazel.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Magnus Hagander <magnus@hagander.net>, Fujii Masao <masao.fujii@oss.nttdata.com>, skoposov@ed.ac.uk, PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Date: 2020-11-19T01:40:43Z
Lists: pgsql-bugs
Hi, On 2020-11-18 20:17:55 -0500, Tom Lane wrote: > I'm not really on board with creating an actual sequence object for each > toast table. I don't think they are efficient enough. I'm not convinced that's true. Sure, nextval() could stand to be cheaper - but on the other hand, this would allow us to entirely avoid doing ahead-of-time uniqueness probes. Needing one extra WAL record every SEQ_LOG_VALS/32 toast insertions seems likely to be win over doing at least SEQ_LOG_VALS-1 additional uniqueness index probes. It's not like the oid counter is free of contention - one benefit of what I suggest would be that the potential contention point would move from system wide to table wide. I think reducing the rate of oid counter advancement is a significant benefit, moving the point of where we have to care about efficiency problems around system oid assignment costs quite a bit further into the future. I think there's also some small potential benefits around indexing in having densely allocated toast chunk ids for each toast table, over the sparser allocation we have right now. Greetings, Andres Freund
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Log when GetNewOidWithIndex() fails to find unused OID many times.
- 7fbcee1b2d5f 14.0 landed
-
Add tests for bytea LIKE operator
- eb42110d952f 14.0 cited