[Talk-de] Import in Postgres DB unvollständig

M∡rtin Koppenhoefer dieterdreist at gmail.com
Mi Mär 23 12:36:12 UTC 2011


Mal eine Frage an die Experten unter Euch:
Ich hatte bei meinem letzten Import ein Problem (soweit ich das
verstehe beim Sortieren oder Erstellen des Index):

Das war der output:

Reading in file: /home/mortn/OSM/data/2011-03-21.mergeitaly.osm.bz2
Processing: Node(65179k) Way(3552k) Relation(31420)  parse time: 29265s

Node stats: total(65179872), max(1209501909)
Way stats: total(3552928), max(104887535)
Relation stats: total(31420), max(1484364)

Going over pending ways
processing way (1924k)

Going over pending relations

node cache: stored: 57328872(87.95%), storage efficiency: 21.36%, hit
rate: 88.46%
Committing transaction for planet_osm_roads
Committing transaction for planet_osm_line
Committing transaction for planet_osm_polygon
Sorting data and creating indexes for planet_osm_polygon
Committing transaction for planet_osm_point
Sorting data and creating indexes for planet_osm_roads
Sorting data and creating indexes for planet_osm_line
Sorting data and creating indexes for planet_osm_point
Stopping table: planet_osm_ways
Stopping table: planet_osm_rels
Stopping table: planet_osm_nodes
Building index on table: planet_osm_rels
Building index on table: planet_osm_ways
Stopped table: planet_osm_nodes
Stopped table: planet_osm_rels
Completed planet_osm_polygon
CREATE TABLE planet_osm_roads_tmp AS SELECT * FROM planet_osm_roads
ORDER BY way;
 failed: FEHLER:  konnte Relation base/16385/6820713 nicht erweitern:
Auf dem Gerät ist kein Speicherplatz mehr verfügbar
HINT:  Prüfen Sie den freien Festplattenplatz.

Error occurred, cleaning up

______________________________

Beim Durchsehen der einzelnen Tabellen habe ich festgestellt, dass
einige Indizes fehlen.
Erstellt wurde
"planet_osm_polygon_index" gist (way)
und alle btree (osm_id)

es fehlen also:
"planet_osm_point_index" gist (way)
"planet_osm_line_index" gist (way)
"planet_osm_roads_index" gist (way)

Meine Frage:
-------------------
kann ich die Indizes manuel in Postgres erstellen mit
CREATE INDEX planet_osm_point_index ON planet_osm_point USING gist(way);
etc.

und bin dann bereit fürs Rendern, als ob osm2pgsql komplett
durchgelaufen wäre, oder passt es dann immer noch nicht, weil z.B. die
z_order noch nicht richtig berechnet wurde, oder die way_area noch
fehlt?

Gruß Martin




Mehr Informationen über die Mailingliste Talk-de