[Tile-serving] [openstreetmap/osm2pgsql] Introduce separate COPY threads (#914)

Sarah Hoffmann notifications at github.com
Thu Feb 28 20:09:19 UTC 2019


lonvia commented on this pull request.



> +    void add_array_elem(char const *s)
+    {
+        assert(m_current);
+        m_current->buffer += '"';
+        add_escaped_string(s);
+        m_current->buffer += "\",";
+    }
+
+    /// Finish an array column.
+    void finish_array()
+    {
+        auto idx = m_current->buffer.size() - 1;
+        if (m_current->buffer[idx] == '{')
+            m_current->buffer += '}';
+        else
+            m_current->buffer[idx] = '}';

I've added documentation for all the functions in the copy manager. Hope that helps.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/914#discussion_r261363589
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20190228/24f09e09/attachment.html>


More information about the Tile-serving mailing list