pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tomas Vondra <tomas@vondra.me>
To: Elie Gedeon <elie@gedeon.li>
To: pgsql-bugs@lists.postgresql.org
Subject: Re: Regression from postgresql14 to postgresql17 with postgis (osm2pgsql)
Date: Thu, 14 Nov 2024 17:43:22 +0100
Message-ID: <bb89cf3d-7c47-4f4b-9354-0606ca86ffd7@vondra.me> (raw)
In-Reply-To: <fb9f522d-e041-44b7-ac24-f4e9c6574160@gedeon.li>
References: <fb9f522d-e041-44b7-ac24-f4e9c6574160@gedeon.li>

On 11/13/24 20:01, Elie Gedeon wrote:
> Hi,
> ...
>
> 2024-11-13 18:15:15 Creating geometry index on table 'planet_osm_line'...
> 2024-11-13 18:32:22 Creating osm_id index on table 'planet_osm_line'...
> WARNING: page verification failed, calculated checksum 27154 but
> expected 30568
> 2024-11-13 18:44:44 Creating geometry index on table 'planet_osm_polygon'...
> 2024-11-13 19:18:28 Creating osm_id index on table 'planet_osm_polygon'...
> WARNING: page verification failed, calculated checksum 63824 but
> expected 53140
> 2024-11-13 19:36:44 Done postprocessing on table 'planet_osm_ways' in
> 7358s (2h 2m 38s)
> 2024-11-13 19:36:44 Done postprocessing on table 'planet_osm_rels' in
> 572s (9m 32s)
> 2024-11-13 19:36:44 All postprocessing on table 'planet_osm_point' done
> in 1852s (30m 52s).
> 2024-11-13 19:36:44 All postprocessing on table 'planet_osm_roads' done
> in 1334s (22m 14s).
> 2024-11-13 19:36:44 ERROR: Database error: ERROR: invalid page in block
> 25652861 of relation base/16385/8057509
> CONTEXT: parallel worker
> 

This suggests you probably have storage issues - notice the 'page
verification failed' warnings, complaining about checksum errors. I
don't know why osm2pgsql doesn't fail right away, maybe it's not
checking the result of that command, or something like that

The most likely explanation for PG14 working is that it doesn't have
checksums enabled. In which case it may have the same issues, it just
doesn't notice that.

Are there any suspicious I/O errors in dmesg, or something like that? I
don't know which filesystem you use, but maybe try with something that
has thorough checksumming (like zfs), or check mount options.


regards

-- 
Tomas Vondra






view thread (4+ messages)

Message-ID: <bb89cf3d-7c47-4f4b-9354-0606ca86ffd7@vondra.me>
Permalink:  ../bb89cf3d-7c47-4f4b-9354-0606ca86ffd7@vondra.me/
Also on:    postgresql.org/message-id/bb89cf3d-7c47-4f4b-9354-0606ca86ffd7@vondra.me

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: tomas@vondra.me, elie@gedeon.li, pgsql-bugs@lists.postgresql.org
  Subject: Re: Regression from postgresql14 to postgresql17 with postgis (osm2pgsql)
  In-Reply-To: <bb89cf3d-7c47-4f4b-9354-0606ca86ffd7@vondra.me>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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