pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedSkipping Inserts
4+ messages / 4 participants
[nested] [flat]
* Skipping Inserts
@ 2026-09-21 21:30 Anthony Mallgren <abmallgren@gmail.com>
0 siblings, 3 replies; 4+ messages in thread
From: Anthony Mallgren @ 2026-09-21 21:30 UTC (permalink / raw)
To: pgsql-general
I'm getting a lot of messages like this:
[warn] skipped a 3-word n-gram: table tid from new index tuple (2524,87)
cannot find insert offset between offsets 2 and 16 of block 36 in index
"congress_103_3_word_word1_idx"
[warn] skipped a 3-word n-gram: table tid from new index tuple (2524,130)
cannot find insert offset between offsets 2 and 16 of block 36 in index
"congress_103_3_word_word1_idx"
Any idea?
Anthony B. Mallgren
https://mallgren.wordpress.com/ <https://mallgren.me;
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Skipping Inserts
@ 2026-09-22 16:16 Tom Lane <tgl@sss.pgh.pa.us>
parent: Anthony Mallgren <abmallgren@gmail.com>
2 siblings, 0 replies; 4+ messages in thread
From: Tom Lane @ 2026-09-22 16:16 UTC (permalink / raw)
To: Anthony Mallgren <abmallgren@gmail.com>; +Cc: pgsql-general
Anthony Mallgren <abmallgren@gmail.com> writes:
> I'm getting a lot of messages like this:
> [warn] skipped a 3-word n-gram: table tid from new index tuple (2524,87)
> cannot find insert offset between offsets 2 and 16 of block 36 in index
> "congress_103_3_word_word1_idx"
I don't know about the first part of that, maybe it's from your
application? But the "table tid ..." part matches this:
/*
* postingoff should never be set more than once per leaf page
* binary search. That would mean that there are duplicate table
* TIDs in the index, which is never okay. Check for that here.
*/
if (insertstate->postingoff != 0)
ereport(ERROR,
(errcode(ERRCODE_INDEX_CORRUPTED),
errmsg_internal("table tid from new index tuple (%u,%u) cannot find insert offset between offsets %u and %u of block %u in index \"%s\"",
ItemPointerGetBlockNumber(key->scantid),
ItemPointerGetOffsetNumber(key->scantid),
low, stricthigh,
BufferGetBlockNumber(insertstate->buf),
RelationGetRelationName(rel))));
So this code thinks your index is corrupt. REINDEX should help.
regards, tom lane
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Skipping Inserts
@ 2026-09-22 16:17 Laurenz Albe <laurenz.albe@cybertec.at>
parent: Anthony Mallgren <abmallgren@gmail.com>
2 siblings, 0 replies; 4+ messages in thread
From: Laurenz Albe @ 2026-09-22 16:17 UTC (permalink / raw)
To: Anthony Mallgren <abmallgren@gmail.com>; pgsql-general
On Mon, 2026-09-21 at 17:30 -0400, Anthony Mallgren wrote:
> I'm getting a lot of messages like this:
>
> [warn] skipped a 3-word n-gram: table tid from new index tuple (2524,87) cannot find insert offset between offsets 2 and 16 of block 36 in index "congress_103_3_word_word1_idx"
> [warn] skipped a 3-word n-gram: table tid from new index tuple (2524,130) cannot find insert offset between offsets 2 and 16 of block 36 in index "congress_103_3_word_word1_idx"
>
> Any idea?
That doesn't look like PostgreSQL.
Please ask the authors of whatever extension you are using.
Yours,
Laurenz Albe
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Skipping Inserts
@ 2026-09-22 16:18 Adrian Klaver <adrian.klaver@aklaver.com>
parent: Anthony Mallgren <abmallgren@gmail.com>
2 siblings, 0 replies; 4+ messages in thread
From: Adrian Klaver @ 2026-09-22 16:18 UTC (permalink / raw)
To: Anthony Mallgren <abmallgren@gmail.com>; pgsql-general
On 9/21/26 2:30 PM, Anthony Mallgren wrote:
> I'm getting a lot of messages like this:
>
> [warn] skipped a 3-word n-gram: table tid from new index tuple (2524,87)
> cannot find insert offset between offsets 2 and 16 of block 36 in index
> "congress_103_3_word_word1_idx"
>
> [warn] skipped a 3-word n-gram: table tid from new index tuple
> (2524,130) cannot find insert offset between offsets 2 and 16 of block
> 36 in index "congress_103_3_word_word1_idx"
>
>
> Any idea?
This is going to need more information:
1) Postgres version and whether it is community or fork.
2) Any extensions being used.
3) The actual query being used.
>
>
> Anthony B. Mallgren
> https://mallgren.wordpress.com/ <https://mallgren.me;
--
Adrian Klaver
adrian.klaver@aklaver.com
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2026-09-22 16:18 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2026-09-21 21:30 Skipping Inserts Anthony Mallgren <abmallgren@gmail.com>
2026-09-22 16:16 ` Tom Lane <tgl@sss.pgh.pa.us>
2026-09-22 16:17 ` Laurenz Albe <laurenz.albe@cybertec.at>
2026-09-22 16:18 ` Adrian Klaver <adrian.klaver@aklaver.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox