<p></p>
<p>Currently the flex output doesn't have a default config, so you always have to specify a config on the command line. On the one hand this is good, because it forces the user to understand that there are several options here and to decide which config they want, on the other hand having some default would make first time use a little bit easier.</p>
<p>If we want to have a default config, we have to decide which one that is. Should it be something similar to what the old default config did? Or something more modern using hstore by default etc.?</p>
<p>I tend towards the latter. This is our chance to introduce a "modern" flexible config that incorporates all we have learned in the last decade about this subject. Something that also doubles as a good baseline from which the use can make small changes. I am thinking about three tables, for points, linestrings, and polygons, each with an hstore or JSON column for the tags. We should take the time to get this right.</p>
<p>I think we also should have two config files that mimic the old C transform and the default Lua transform, to help users who are migrating. There is already the <code>flex-config/compatible.lua</code> I wrote, but we have to re-check this.</p>
<p>There is one side-issue here: If we decide we want to have a default config, where should it go? Is this compiled in or is there a specific path where it must be, something like <code>/etc/osm2pgsql/config.lua</code> or so? Having a file outside the binary makes osm2pgsql a little harder to use, because you have to properly install it with the extra files. (Also we need to handle systems other than Linux where paths are different.)</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/osm2pgsql/issues/1165">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353V2RTIARZAMWHITK5DRQZGR3ANCNFSM4M5D2F3A">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AA6353X6XC3RKTQTIKYQ2ZDRQZGR3A5CNFSM4M5D2F3KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4JFNHA6A.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/osm2pgsql/issues/1165",
"url": "https://github.com/openstreetmap/osm2pgsql/issues/1165",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>