PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ get_pgtype()

static char* get_pgtype ( uint8_t  column_type)
static

Definition at line 39 of file lwgeom_in_flatgeobuf.c.

39  {
40  switch (column_type) {
41  case flatgeobuf_column_type_bool:
42  return "boolean";
43  case flatgeobuf_column_type_byte:
44  case flatgeobuf_column_type_ubyte:
45  return "smallint";
46  case flatgeobuf_column_type_short:
47  return "smallint";
48  case flatgeobuf_column_type_int:
49  return "integer";
50  case flatgeobuf_column_type_uint:
51  case flatgeobuf_column_type_long:
52  case flatgeobuf_column_type_ulong:
53  return "bigint";
54  case flatgeobuf_column_type_float:
55  return "real";
56  case flatgeobuf_column_type_double:
57  return "double precision";
58  case flatgeobuf_column_type_datetime:
59  return "timestamptz";
60  case flatgeobuf_column_type_string:
61  return "text";
62  case flatgeobuf_column_type_binary:
63  return "bytea";
64  case flatgeobuf_column_type_json:
65  return "jsonb";
66  }
67  elog(ERROR, "unknown column_type %d", column_type);
68 }

Referenced by pgis_tablefromflatgeobuf().

Here is the caller graph for this function: