[Tile-serving] [openstreetmap/osm2pgsql] Don't do multi-statement queries (PR #2002)

Jochen Topf notifications at github.com
Fri Jul 14 14:57:22 UTC 2023


Only send one SQL command per exec(). This should fix a problem with the Pgpool-II connection pool server which doesn't support multi-statement queries. It also makes it hopefully a bit more obvious that there are several statements sent to the server. To that end I have also removed the semicolons at the end of the queries in all places, because they should never be needed any more.

Fixes #1995
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/osm2pgsql/pull/2002

-- Commit Summary --

  * Don't do multi-statement queries

-- File Changes --

    M src/middle-pgsql.cpp (170)
    M src/middle-pgsql.hpp (8)
    M tests/test-middle.cpp (6)

-- Patch Links --

https://github.com/openstreetmap/osm2pgsql/pull/2002.patch
https://github.com/openstreetmap/osm2pgsql/pull/2002.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/2002
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/osm2pgsql/pull/2002 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20230714/f15a4806/attachment.htm>


More information about the Tile-serving mailing list