Skip to content

Commit a3a21a2

Browse files
committed
Properly set schema for osm2pgsql_find_changed_ways()
1 parent 7d7a970 commit a3a21a2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/middle-pgsql.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ void middle_pgsql_t::get_node_parents(idlist_t const &changed_nodes,
659659
// better to do a full table scan which totally destroys performance.
660660
// This is due to the PostgreSQL statistics on ARRAYs being way off.
661661
queries.emplace_back(R"(
662-
CREATE OR REPLACE FUNCTION osm2pgsql_find_changed_ways() RETURNS void AS $$
662+
CREATE OR REPLACE FUNCTION {schema}osm2pgsql_find_changed_ways() RETURNS void AS $$
663663
DECLARE
664664
changed_buckets RECORD;
665665
BEGIN
@@ -677,8 +677,8 @@ BEGIN
677677
END;
678678
$$ LANGUAGE plpgsql
679679
)");
680-
queries.emplace_back("SELECT osm2pgsql_find_changed_ways()");
681-
queries.emplace_back("DROP FUNCTION osm2pgsql_find_changed_ways()");
680+
queries.emplace_back("SELECT {schema}osm2pgsql_find_changed_ways()");
681+
queries.emplace_back("DROP FUNCTION {schema}osm2pgsql_find_changed_ways()");
682682

683683
queries.emplace_back(R"(
684684
INSERT INTO osm2pgsql_changed_relations

0 commit comments

Comments
 (0)