[Tile-serving] [openstreetmap/osm2pgsql] New "flex" backend (#1036)
mboeringa
notifications at github.com
Wed Jan 22 13:10:41 UTC 2020
> @mboeringa With the flex backend, all names of tables and columns are set in your Lua code, so this is all just a question of writing a little bit of Lua code that does whatever naming you want. There is no need for any special prefixes or colon replacement characters. I suggest you give it a try and if there is something you can't do with Lua code, open an issue for that.
Interesting. To be honest I have never messed with the Lua code up to now, so am unfamiliar with it yet. I do see references to what I presume are example table definitions in the pull's "files" view as linked below, that also include OpenStreetMap key names, but I don't see an example of a column being "renamed".
That is of course understandable, because the current system also simply uses the key names as column names since PostgreSQL doesn't have a an issue with things like colon in the field's name, but it leaves me wondering where of how to specify an "alias" or alternative name for the output column name.
https://github.com/openstreetmap/osm2pgsql/pull/1037/files
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/issues/1036#issuecomment-577174550
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20200122/d787b742/attachment.htm>
More information about the Tile-serving
mailing list