[Tile-serving] [openstreetmap/osm2pgsql] Add functionality to send data to PostgreSQL in binary (PR #1938)
Jochen Topf
notifications at github.com
Mon Feb 27 09:56:20 UTC 2023
Prepared statements can now send parameters in binary as well as in the default text format. To do this, wrap the binary data in an instance of the binary_param class, which is just a wrapper of std::string_view used to signal to the exec_prepared() function that this parameter should be sent in binary.
You can mix and match any number of parameters in text or binary format.
It isn't possible any more to use exec_prepared() without any parameters, but that wasn't use (and doesn't make much sense anyway), so no loss there.
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/osm2pgsql/pull/1938
-- Commit Summary --
* Add functionality to send data to PostgreSQL in binary
-- File Changes --
M src/pgsql.hpp (35)
M tests/test-pgsql.cpp (41)
-- Patch Links --
https://github.com/openstreetmap/osm2pgsql/pull/1938.patch
https://github.com/openstreetmap/osm2pgsql/pull/1938.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/1938
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/osm2pgsql/pull/1938 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20230227/0a165b7a/attachment-0001.htm>
More information about the Tile-serving
mailing list