Thanks - I will give it another try - I have got a computer running Ubuntu 11.10, which has Postgres 9.1.2.   I will create a second database with an hstore and see how it compares.<div><br></div><div>Graham.<br><br><div class="gmail_quote">
On 17 February 2012 11:36, Stephan Knauss <span dir="ltr"><<a href="mailto:osm@stephans-server.de">osm@stephans-server.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">Komяpa writes: <br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
- is a database generated by osm2pgsql with an hstore expected to perform<br>
similarly to one without?<br>
</blockquote>
<br>
It performs at the same speed for me. <br>
Of course you're not supposed to use hstore for every tag, but just<br>
for those on highest zoom levels, where spatial indexes are used<br>
mostly, not indexes for other columns.<br>
</blockquote>
<br></div>
if you are using Postgres 9.1 you are advised to update to 9.1.2. There was a bug introduced that prevented index usage. For example testing for a tag like<br>
SELECT * from table WHERE hstore ? tag<br>
did not use an index and could make a query horribly slow. We experienced this on Toolserver. <br><span class="HOEnZb"><font color="#888888">
<br>
Stephan<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>Graham Jones<div>Hartlepool, UK.</div><br>
</div>