Database query

I have - from the wiki - not clearly undestood: can I - with a postresql client - do a question to the Openstreetmap data, for example all underground stations in Munich?

Or must I first do a download, and then locally use osmosis, and then locally do the database query?


Of cause you need a postgres OSM database.
you can do it with the osm2pgsql tool.

Or use xapi to get the data you need, then import that locally into a postgis db.