[Tile-serving] [openstreetmap/osm2pgsql] Define what "columns" should be in flex docs (#1134)

Paul Norman notifications at github.com
Sat Apr 25 05:05:00 UTC 2020


The flex docs say `osm2pgsql.define_node_table(name, columns)` defines a node table, but give no information on the structure of the columns object.

As far as I can tell, columns must be a list of objects, each object defining a column. A single column is a lua table with the following possible keys and values
key | value
--|--
column | name of postgresql column
type | postgresql type for "normal" columns, or the geometry type for a geometry column
not_null | true if the column is a NOT NULL
create_only | true if the column is added to the create table command, but not filled when adding data

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/issues/1134
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20200424/26f9ab4a/attachment-0001.htm>


More information about the Tile-serving mailing list