Skip to content

Commit

Permalink
Added some extra warnings in manual about using sql_types
Browse files Browse the repository at this point in the history
  • Loading branch information
joto committed Feb 2, 2024
1 parent 842195d commit 912063d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion _manual/06-flex-output.md
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,11 @@ on [Type Conversions](#type-conversions).

The content of the `sql_type` field is not checked by osm2pgsql, it is passed
on to PostgreSQL as is. Do not set this to anything else but a valid PostgreSQL
type.
type. Correct use of `sql_type` is not easy. Only use `sql_type` if you have
some familiarity with PostgreSQL types and how they are converted from/to text.
If you get this wrong you'll get error messages about "Ending COPY mode" that
are hard to interpret. Considering using the `json` or `jsonb` `type` instead,
for which osm2pgsql does the correct conversions.
{: .note}


Expand Down

0 comments on commit 912063d

Please sign in to comment.