On 16 February 2012 18:51, Frederik Ramm <span dir="ltr"><<a href="mailto:frederik@remote.org">frederik@remote.org</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 02/16/2012 07:25 PM, Graham Jones wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
This reminded me of a question I have been meaning to ask for quite a<br>
while - is a database generated by osm2pgsql with an hstore expected to<br>
perform similarly to one without?<br>
</blockquote>
<br></div>
I never ran one with hstore when I think of what this must mean for the database engine, and storage space, then I shudder and would not be surprised by the factor 5 you mentioned.</blockquote><div><br></div><div>Thanks - I don't feel so bad about giving up so easily now! </div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
If you want to add a new key but avoid re-importing the full database, you can add the key to osm2pgsql's style file, somehow generate an .osm file that contains only the objects that have this tag, wrap this .osm file into a "<osmChange><modify>...</<u></u>modify></osmChange>" instead of "<osm>...</osm>" and throw it at osm2pgsql in append mode.</blockquote>
<div><br></div><div>That's a neat idea - will try that next time, thanks. </div><div> </div><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
People like keys that are understandable without context. Contrast this with a tag "width=2" - where you have no chance in knowing what it means without looking at the whole thing.</blockquote><div><br></div><div>
Yes - I think it is just a style difference - I am quite happy to interpret it from context for the sake of having a smaller number of unique keys to think about.</div><div><br></div><div>Cheers<br><br></div><div>Graham</div>
<div> </div></div>-- <br>Graham Jones<div>Hartlepool, UK.</div><br>