Skip to content

Commit 992d7e3

Browse files
committed
Do not show messages about invalid geometries
By setting message level in copy thread.
1 parent 32d1258 commit 992d7e3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/db-copy.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,10 @@ void db_copy_thread_t::thread_t::operator()()
129129
// Let commits happen faster by delaying when they actually occur.
130130
m_conn->exec("SET synchronous_commit = off");
131131

132+
// Do not show messages about invalid geometries (they are removed
133+
// by the trigger).
134+
m_conn->exec("SET client_min_messages = WARNING");
135+
132136
bool done = false;
133137
while (!done) {
134138
std::unique_ptr<db_cmd_t> item;

0 commit comments

Comments
 (0)