{"id":50842,"date":"2023-01-14T00:00:00","date_gmt":"2023-01-14T08:00:00","guid":{"rendered":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/%e6%9c%aa%e5%88%86%e9%a1%9e\/using-the-griddb-import-export-tools-to-migrate-from-postgresql-to-griddb\/"},"modified":"2025-11-14T07:55:57","modified_gmt":"2025-11-14T15:55:57","slug":"using-the-griddb-import-export-tools-to-migrate-from-postgresql-to-griddb","status":"publish","type":"post","link":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/using-the-griddb-import-export-tools-to-migrate-from-postgresql-to-griddb\/","title":{"rendered":"GridDB\u30a4\u30f3\u30dd\u30fc\u30c8\u30fb\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u30c4\u30fc\u30eb\u3092\u4f7f\u3063\u3066PostgreSQL\u304b\u3089GridDB\u3078\u79fb\u884c\u3059\u308b"},"content":{"rendered":"<p>\u3053\u306e\u30d6\u30ed\u30b0\u3067\u306f\u3001PostgreSQL\u304b\u3089GridDB\u3078\u306e\u79fb\u884c\u3092\u7c21\u5358\u306b\u884c\u3046\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\u30ea\u30ec\u30fc\u30b7\u30e7\u30ca\u30eb\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u3042\u307e\u308a\u8a73\u3057\u304f\u306a\u3044\u65b9\u306e\u305f\u3081\u306b\u8aac\u660e\u3059\u308b\u3068\u3001<a href=\"https:\/\/www.postgresql.org\/\">PostgreSQL<\/a>\u306f\u300c\u4e16\u754c\u3067\u6700\u3082\u5148\u9032\u7684\u306a\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u30ea\u30ec\u30fc\u30b7\u30e7\u30ca\u30eb\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u300d<a href=\"https:\/\/www.postgresql.org\/\">1<\/a>\u3067\u3042\u308b\u3068\u8a00\u308f\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30d6\u30ed\u30b0\u3067\u306f\u3001GridDB\u3068PostgreSQL\u3092\u76f4\u63a5\u6bd4\u8f03\u3059\u308b\u306e\u3067\u306f\u306a\u304f\u30012\u3064\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30b9\u30ad\u30fc\u30de\u306e\u9055\u3044\u3068\u3001\u30ea\u30ec\u30fc\u30b7\u30e7\u30ca\u30eb\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304b\u3089GridDB\u306b\u30c7\u30fc\u30bf\u3092\u5b89\u5168\u306b\u79fb\u884c\u3059\u308b\u65b9\u6cd5\u306b\u7126\u70b9\u3092\u5f53\u3066\u3066\u8aac\u660e\u3057\u307e\u3059\u3002\u307e\u305f\u3001PostgreSQL\u304b\u3089GridDB\u3078\u306e\u79fb\u884c\u3092\u691c\u8a0e\u3059\u308b\u3068\u826f\u3044\u7406\u7531\u306b\u3064\u3044\u3066\u3082\u89e6\u308c\u307e\u3059\u3002<\/p>\n<p>GridDB\u306fNoSQL\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3067\u3042\u308a\u306a\u304c\u3089SQL\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u3001SQL\u3092\u30eb\u30fc\u30c4\u3068\u3057\u3066\u3044\u308b\u3053\u3068\u3082\u7279\u5fb4\u3067\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u300c\u4f1d\u7d71\u7684\u306a\u300d\u30ea\u30ec\u30fc\u30b7\u30e7\u30ca\u30eb\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304b\u3089\u30c7\u30fc\u30bf\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u3066\u3082\u3001\u30c7\u30fc\u30bf\u578b\u306b\u3042\u307e\u308a\u3053\u3060\u308f\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u672c\u30d6\u30ed\u30b0\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306f\u3001\u3053\u3061\u3089\u306e<a href=\"https:\/\/github.com\/griddbnet\/Blogs\/tree\/migration_from_rdb\/\">GitHub<\/a>\u304b\u3089\u3054\u89a7\u3044\u305f\u3060\u3051\u307e\u3059\u3002\u3053\u306e\u4e2d\u306b\u306f\u3001Kaggle\u304b\u3089\u30aa\u30ea\u30b8\u30ca\u30eb\u306e\u30bd\u30fc\u30b9\u30c7\u30fc\u30bf\u3092\u30af\u30ea\u30fc\u30f3\u30a2\u30c3\u30d7\u3059\u308b\u305f\u3081\u306epython\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u542b\u3080\u3001\u3059\u3079\u3066\u306e\u95a2\u9023\u30d5\u30a1\u30a4\u30eb\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>\u30ce\u30f3\u30c6\u30af\u30cb\u30ab\u30eb\u30bb\u30af\u30b7\u30e7\u30f3<\/h2>\n<p>\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u79fb\u884c\u65b9\u6cd5\u3092\u7406\u8ad6\u7684\u306b\u8aac\u660e\u3057\u307e\u3059\u3002\u79fb\u884c\u65b9\u6cd5\u3092\u3059\u3050\u306b\u77e5\u308a\u305f\u3044\u65b9\u306f\u3001\u6b21\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u306b\u9032\u3093\u3067\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3>\u904e\u53bb\u306e\u30d6\u30ed\u30b0<\/h3>\n<p>\u3053\u306e\u30c8\u30d4\u30c3\u30af\u306f\u904e\u53bb\u306e\u30d6\u30ed\u30b0<a href=\"https:\/\/griddb.net\/jp\/blog\/migrating-from-mysql-to-griddb\/\">MySQL\u304b\u3089GridDB\u3078\u306e\u79fb\u884c<\/a>\u3068<a href=\"https:\/\/griddb.net\/jp\/blog\/migrating-from-postgresql-to-griddb\/\">PostgreSQL\u304b\u3089GridDB\u3078\u306e\u79fb\u884c<\/a> \u3067\u3082\u89e6\u308c\u305f\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e2\u3064\u306e\u30d6\u30ed\u30b0\u3067\u3082\u3001\u69d8\u3005\u306a\u65b9\u6cd5\u3092\u7528\u3044\u3066\u6280\u8853\u7684\u306b\u30c7\u30fc\u30bf\u3092\u79fb\u884c\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>GridDB\u306e\u30a4\u30f3\u30dd\u30fc\u30c8\u30fb\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u30c4\u30fc\u30eb\u3092\u7d39\u4ecb\u3059\u308b\u4ed6\u306b\u3001\u306a\u305cPostgreSQL\u304b\u3089GridDB\u3078\u79fb\u884c\u3059\u308b\u3068\u826f\u3044\u304b\u306b\u3064\u3044\u3066\u3082\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u3067\u306f\u306f\u3058\u3081\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>\u306a\u305cMigrate\u3059\u308b\u3079\u304d\u304b\uff1f<\/h3>\n<p>GridDB\u30a4\u30f3\u30dd\u30fc\u30c8\u30fb\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u30c4\u30fc\u30eb\u3092\u4f7f\u3063\u3066PostgreSQL\u304b\u3089GridDB\u306b\u30c7\u30fc\u30bf\u3092\u7269\u7406\u7684\u306b\u79fb\u884c\u3059\u308b\u6280\u8853\u7684\u306a\u5074\u9762\u306b\u5165\u308b\u524d\u306b\u3001\u306a\u305c\u30ea\u30ec\u30fc\u30b7\u30e7\u30ca\u30eb\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304b\u3089\u6642\u7cfb\u5217\u30d9\u30fc\u30b9\u306eGridDB\u306b\u30c7\u30fc\u30bf\u3092\u79fb\u884c\u3059\u308b\u30d7\u30ed\u30bb\u30b9\u3092\u8e0f\u3080\u5fc5\u8981\u304c\u3042\u308b\u306e\u304b\u3092\u7c21\u5358\u306b\u8aac\u660e\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u3082\u3057\u3001\u3042\u306a\u305f\u306e\u30ef\u30fc\u30af\u30ed\u30fc\u30c9\u3084\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u304c\u6642\u7cfb\u5217\u30c7\u30fc\u30bf\u306b\u57fa\u3065\u3044\u3066\u3044\u308b\u306a\u3089\u3070\u3001\u6642\u7cfb\u5217\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u6271\u3046\u305f\u3081\u306b\u4f5c\u3089\u308c\u305f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u79fb\u884c\u3059\u308b\u3053\u3068\u306f\u3001\u5b8c\u5168\u306b\u7406\u306b\u304b\u306a\u3063\u3066\u3044\u307e\u3059\u3002GridDB\u306f\u3001\u6642\u7cfb\u5217\u306e\u30ef\u30fc\u30af\u30ed\u30fc\u30c9\u3092\u6271\u3046\u3053\u3068\u306b\u9577\u3051\u3066\u304a\u308a\u3001\u3053\u3061\u3089\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3067\u8aac\u660e\u3055\u308c\u3066\u3044\u307e\u3059\u3002<a href=\"https:\/\/docs.griddb.net\/about\/what-is-time-series-database\/\">\u6642\u7cfb\u5217\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068\u306f<\/a>\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>GridDB\u306f\u3001\u6642\u7cfb\u5217\u306e\u6a5f\u80fd\u306b\u52a0\u3048\u3066\u3001\u30db\u30ef\u30a4\u30c8\u30da\u30fc\u30d1\u30fc <a href=\"https:\/\/griddb.net\/en\/docs\/Benchmarking_Application_GridDB_MariaDB.pdf\">GridDB\u3068MariaDB\u3092\u7528\u3044\u305f\u30bb\u30f3\u30b5\u30fc\u8ab2\u91d1\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30d9\u30f3\u30c1\u30de\u30fc\u30af<\/a>\u3067\u516c\u958b\u3057\u305f\u904e\u53bb\u306e\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u306b\u898b\u3089\u308c\u308b\u3088\u3046\u306b\u3001SQL\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068\u6bd4\u8f03\u3057\u3066\u3001\u304b\u306a\u308a\u5927\u304d\u306a\u6027\u80fd\u4e0a\u306e\u512a\u4f4d\u6027\u3092\u6301\u3063\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u306f\u5e45\u5e83\u3044\u30af\u30a8\u30ea\u3092\u30ab\u30d0\u30fc\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u7c21\u6f54\u306b\u307e\u3068\u3081\u308b\u3068\u3001GridDB\u306fMariaDB\u306b\u6bd4\u3079\u306613\u500d\u901f\u304f\u30c7\u30fc\u30bf\u3092\u53d6\u308a\u8fbc\u3080\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u6642\u306b\u306f\u6027\u80fd\u3088\u308a\u3082\u3001\u7d20\u65e9\u304f\u52b9\u7387\u7684\u306b\u30d7\u30ed\u30c8\u30bf\u30a4\u30d7\u3092\u4f5c\u6210\u3059\u308b\u80fd\u529b\u304c\u3088\u308a\u91cd\u8981\u306a\u6307\u6a19\u3068\u306a\u308b\u3053\u3068\u3082\u3042\u308b\u3067\u3057\u3087\u3046\u3002\u3082\u3057\u305d\u3046\u3067\u306a\u3051\u308c\u3070\u3001\u3059\u3079\u3066\u306e\u30e6\u30fc\u30b9\u30b1\u30fc\u30b9\u306b\u304a\u3044\u3066C++\u304c\u652f\u914d\u7684\u306a\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3068\u306a\u308a\u3001Python\u306f\u304b\u306a\u308a\u30cb\u30c3\u30c1\u306a\u7acb\u3061\u4f4d\u7f6e\u306b\u306a\u3063\u3066\u3044\u305f\u3067\u3057\u3087\u3046\u3002GridDB\u304c\u3053\u306e\u70b9\u3067\u512a\u308c\u3066\u3044\u308b\u306e\u306f\u3001<a href=\"https:\/\/en.wikipedia.org\/wiki\/Java_Database_Connectivity\">JDBC (Java Database Connectivity)<\/a>\u3092\u4ecb\u3057\u3066\u4f7f\u7528\u53ef\u80fd\u306aSQL\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u5099\u3048\u3064\u3064\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068\u306e\u5bfe\u8a71\u306b\u4f7f\u7528\u3067\u304d\u308bNoSQL\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3082\u540c\u6642\u306b\u5099\u3048\u3066\u3044\u308b\u70b9\u3067\u3059\u3002<\/p>\n<p>GridDB NoSQL\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306f\u3001GridDB\u3092\u30e1\u30a4\u30f3\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u3068\u3057\u3066\u4f7f\u7528\u3059\u308b\u3053\u3068\u3092\u4e2d\u5fc3\u3068\u3057\u305f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u8fc5\u901f\u304b\u3064\u5bb9\u6613\u306b\u69cb\u7bc9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3064\u307e\u308a\u3001GridDB\u306e\u5927\u898f\u6a21\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u7d20\u65e9\u304f\u5206\u6790\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\uff08\u4f8b\uff1a<a href=\"https:\/\/griddb.net\/en\/blog\/geospatial-analysis-of-nyc-crime-data-with-griddb\/\">GridDB\u306b\u3088\u308b\u30cb\u30e5\u30fc\u30e8\u30fc\u30af\u306e\u72af\u7f6a\u30c7\u30fc\u30bf\u306e\u5730\u7406\u7a7a\u9593\u5206\u6790<\/a>\uff09\u3001Python\u30b3\u30fc\u30c9\u3092\u66f8\u304d\u3001Python\u30b9\u30af\u30ea\u30d7\u30c8\u5185\u304b\u3089\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306b\u76f4\u63a5\u554f\u3044\u5408\u308f\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u307e\u305f\u3001GridDB\u304c\u30b3\u30cd\u30af\u30bf\u3092\u6301\u3064\u4ed6\u306e\u591a\u304f\u306e\u8a00\u8a9e\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u306b\u3064\u3044\u3066\u3082\u540c\u69d8\u3067\u3059\uff08<a href=\"https:\/\/github.com\/griddb\">Github\u30da\u30fc\u30b8<\/a>\u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\uff09\u3002<\/p>\n<h3>RDB\u3068GridDB\u306e\u30b9\u30ad\u30fc\u30de\u306e\u9055\u3044\u306b\u3064\u3044\u3066<\/h3>\n<p>\u30b9\u30ad\u30fc\u30de\u306e\u9055\u3044\u306b\u5165\u308b\u524d\u306b\u7c21\u5358\u306b\u66f8\u3044\u3066\u304a\u304f\u3068\u3001\u3053\u308c\u306f\u3059\u3079\u3066\u306e\u72b6\u6cc1\u306b\u9069\u7528\u3067\u304d\u308b\u308f\u3051\u3067\u306f\u306a\u304f\u3001\u7279\u5b9a\u306e\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u6574\u7406\u3059\u308b\u306e\u306b\u6700\u9069\u306a\u65b9\u6cd5\u3067\u3042\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002\u30b9\u30ad\u30fc\u30de\u306e\u9055\u3044\u306b\u3064\u3044\u3066\u306f\u3001<a href=\"https:\/\/docs.griddb.net\/tutorial\/wide-narrow\/#overview\">\u5e83\u3044\u30c7\u30fc\u30bf\u30c6\u30fc\u30d6\u30eb\u3068\u72ed\u3044\u30c7\u30fc\u30bf\u30c6\u30fc\u30d6\u30eb<\/a>\u3067\u8a73\u3057\u304f\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>PostgreSQL\u306e\u30c6\u30fc\u30d6\u30eb\u3067\u306f\u3001\u901a\u5e38\u306eRDB\u30b9\u30ad\u30fc\u30de\u3068\u547c\u3070\u308c\u308b\u3082\u306e\u3092\u4f7f\u7528\u3057\u307e\u3057\u305f\u3002\u3064\u307e\u308a\u3001\u3059\u3079\u3066\u306e\u30c7\u30fc\u30bf\u304c1\u3064\u306e\u5927\u304d\u306a\u30c6\u30fc\u30d6\u30eb\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u30b9\u30ad\u30fc\u30de\u3067\u306f\u3001\u3059\u3079\u3066\u306e\u30bb\u30f3\u30b5\u30fc\u306e\u30c7\u30fc\u30bf\u304c\u540c\u3058\u30c6\u30fc\u30d6\u30eb\u3092\u5171\u6709\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u5404\u884c\u306b\u306f\u30bb\u30f3\u30b5\u30fc\u540d\u3092\u793a\u3059\u5217\u304c\u542b\u307e\u308c\u3066\u3044\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002\u3053\u306e\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306b\u306f3\u3064\u306e\u7570\u306a\u308b\u30bb\u30f3\u30b5\u30fc\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u3059\u3079\u3066\u306e\u30bb\u30f3\u30b5\u30fc\u306b\u5bfe\u3057\u30661\u3064\u306e\u30c6\u30fc\u30d6\u30eb\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>GridDB\u306b\u79fb\u884c\u3059\u308b\u969b\u306b\u306f\u3001\u3088\u308a\u300cIoT\u306b\u9069\u3057\u305f\u300d\u30b9\u30ad\u30fc\u30de\u3068\u306a\u308b\u3082\u306e\u306b\u5207\u308a\u66ff\u3048\u308b\u3053\u3068\u304c\u5fc5\u9808\u3068\u306a\u308a\u307e\u3059\u3002\u305d\u3053\u3067\u3001\u5177\u4f53\u7684\u306a\u8a71\u306b\u5165\u308b\u524d\u306b\u3001\u30b9\u30ad\u30fc\u30de\u306e\u5909\u66f4\u5185\u5bb9\u304c\u3069\u3046\u306a\u308b\u306e\u304b\u3001\u306a\u305c\u305d\u308c\u304cIoT\u306e\u4e16\u754c\u3067\u3088\u308a\u6709\u7528\u306a\u306e\u304b\u306b\u3064\u3044\u3066\u304a\u8a71\u3057\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u30ea\u30ec\u30fc\u30b7\u30e7\u30ca\u30eb\u30c6\u30fc\u30d6\u30eb\u3067\u306f\u3001Kaggle\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f<code>.csv<\/code>\u30d5\u30a1\u30a4\u30eb\u3068\u540c\u3058\u3088\u3046\u306b\u3001\u3059\u3079\u3066\u306e\u30bb\u30f3\u30b5\u30fc\u304c\u540c\u3058\u30c6\u30fc\u30d6\u30eb\u3092\u5171\u6709\u3059\u308b\u53ef\u80fd\u6027\u304c\u9ad8\u3044\u3067\u3059\u3002\u3053\u308c\u306f\u3001SQL\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068\u30b9\u30ad\u30fc\u30de\u69cb\u7bc9\u306f\u5927\u90e8\u5206\u304c\u30ec\u30ac\u30b7\u30fc\u3067\u3042\u308a\u3001\u73fe\u4ee3\u3067\u751f\u6210\u3055\u308c\u308b\u30c7\u30fc\u30bf\u91cf\u3092\u5fc5\u305a\u3057\u3082\u8003\u616e\u3057\u3066\u3044\u306a\u3044\u305f\u3081\u306b\u884c\u308f\u308c\u308b\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>\u4e00\u65b9\u3001GridDB\u306f\u30d3\u30c3\u30b0\u30c7\u30fc\u30bf\u3068IoT\u3092\u5ff5\u982d\u306b\u7f6e\u3044\u3066\u958b\u767a\u3055\u308c\u305f\u3082\u306e\u306a\u306e\u3067\u3001\u691c\u8a0e\u306e\u4f59\u5730\u304c\u3042\u308a\u307e\u3059\u3002\u5927\u898f\u6a21\u306aIoT\u74b0\u5883\u5411\u3051\u306b\u30b9\u30ad\u30fc\u30de\u3084\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u69cb\u7bc9\u3059\u308b\u5834\u5408\u3001\u30c7\u30fc\u30bf\u3092\u5206\u5272\u3059\u308b\u8ad6\u7406\u7684\u306a\u65b9\u6cd5\u3068\u3057\u3066\u3001\u3059\u3079\u3066\u306e\u30bb\u30f3\u30b5\u30fc\u3092\u540c\u3058\u30c6\u30fc\u30d6\u30eb\u306b\u307e\u3068\u3081\u308b\u3053\u3068\u3092\u8003\u3048\u76f4\u3059\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u554f\u984c\u306f\u3001\u30c7\u30fc\u30bf\u304c\u9577\u304f\u84c4\u7a4d\u3055\u308c\u308b\u3068\u3001RDB\u30c6\u30fc\u30d6\u30eb\u304c\u6271\u3044\u306b\u304f\u304f\u306a\u308a\u3001\u4f7f\u3044\u52dd\u624b\u304c\u60aa\u304f\u306a\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067\u3001GridDB\u306b\u79fb\u884c\u3059\u308b\u3053\u3068\u306b\u306a\u3063\u305f\u5834\u5408\u3001\u30bb\u30f3\u30b5\u30fc\u304c\u540c\u3058\u30c6\u30fc\u30d6\u30eb\u3092\u5171\u6709\u3059\u308b\u306e\u3067\u306f\u306a\u304f\u3001\u6b21\u306e\u3088\u3046\u306b\u30bb\u30f3\u30b5\u30fc\u3054\u3068\u306b\u30c6\u30fc\u30d6\u30eb\u3092\u5206\u5272\u3057\u3066\u5229\u7528\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/griddb.net\/wp-content\/uploads\/2023\/01\/Schema.png\"><img fetchpriority=\"high\" decoding=\"async\" src=\"https:\/\/griddb.net\/wp-content\/uploads\/2023\/01\/Schema.png\" alt=\"\" width=\"1290\" height=\"642\" class=\"aligncenter size-full wp-image-29066\" srcset=\"\/wp-content\/uploads\/2023\/01\/Schema.png 1290w, \/wp-content\/uploads\/2023\/01\/Schema-300x149.png 300w, \/wp-content\/uploads\/2023\/01\/Schema-1024x510.png 1024w, \/wp-content\/uploads\/2023\/01\/Schema-768x382.png 768w, \/wp-content\/uploads\/2023\/01\/Schema-600x299.png 600w\" sizes=\"(max-width: 1290px) 100vw, 1290px\" \/><\/a><\/p>\n<p>\u3064\u307e\u308a\u3001\u5404\u30c6\u30fc\u30d6\u30eb\u306f\u6642\u9593\u3068\u3068\u3082\u306b\u5927\u304d\u304f\u306a\u308b\u3053\u3068\u306f\u3042\u3063\u3066\u3082\u3001\u5e38\u306b\u4ee3\u66ff\u6848\u3088\u308a\u306f\u308b\u304b\u306b\u5c0f\u3055\u304f\u306a\u308b\u306e\u3067\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001GridDB\u306fN\u30af\u30e9\u30b9\u30bf\u306e\u5927\u304d\u3055\u306b\u5bfe\u5fdc\u3067\u304d\u308b\u30b9\u30b1\u30fc\u30e9\u30d6\u30eb\u306a\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306a\u306e\u3067\u3001\u3053\u306e\u3088\u3046\u306a\u30b9\u30ad\u30fc\u30de\u304c\u3042\u308c\u3070\u3001\u30af\u30e9\u30b9\u30bf\u306e\u7570\u306a\u308b\u30ce\u30fc\u30c9\u306b\u7570\u306a\u308b\u30b3\u30f3\u30c6\u30ca\u3092\u53ce\u5bb9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u3001\u4e26\u5217\u5316\u304c\u5bb9\u6613\u306b\u306a\u308a\u3001\u5168\u4f53\u3068\u3057\u3066\u52b9\u7387\u306e\u826f\u3044\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3082\u3046\u3072\u3068\u3064\u306f\u3001\u6642\u7cfb\u5217\u30c7\u30fc\u30bf\u3092\u6271\u3063\u3066\u3044\u308b\u305f\u3081\u3001\u30c7\u30fc\u30bf\u306e\u4fdd\u6301\u30dd\u30ea\u30b7\u30fc\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u30c6\u30fc\u30d6\u30eb\u306e\u5bb9\u91cf\u304c\u5927\u304d\u304f\u306a\u308a\u3059\u304e\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3053\u3068\u3067\u3059\u3002\u3064\u307e\u308a\u3001\u30bb\u30f3\u30b5\u30fc\u304c1\u79d2\u3054\u3068\u306b\u30c7\u30fc\u30bf\u3092\u767a\u4fe1\u3057\u3001\u5927\u304d\u306a\u30b3\u30f3\u30c6\u30ca\u306b\u84c4\u7a4d\u3055\u308c\u3066\u3082\u3001\u3044\u305a\u308c\u306f\u53e4\u304f\u306a\u308a\u3001\u30c6\u30fc\u30d6\u30eb\u3092\u5c0f\u3055\u304f\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u30c6\u30af\u30cb\u30ab\u30eb\u30bb\u30af\u30b7\u30e7\u30f3 \uff1aGridDB\u516c\u5f0f\u30a4\u30f3\u30dd\u30fc\u30c8\u30fb\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u30c4\u30fc\u30eb\u306e\u5229\u7528\u306b\u3064\u3044\u3066<\/h2>\n<p>\u6b21\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001\u3053\u308c\u304b\u3089\u3001\u3042\u308b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304b\u3089\u4ed6\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3078\u30c7\u30fc\u30bf\u3092\u79fb\u884c\u3059\u308b\u30d7\u30ed\u30bb\u30b9\u3092\u958b\u59cb\u3057\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u3001GridDB\u304c<a href=\"https:\/\/docs.griddb.net\/gettingstarted\/using-apt\/\">apt\u3092\u4f7f\u3063\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a>\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u524d\u63d0\u3068\u3057\u307e\u3059\u3002\u305d\u3057\u3066\u3082\u3061\u308d\u3093PostgreSQL\u30b5\u30fc\u30d0\u30fc\u304c\u7a3c\u50cd\u3057\u3066\u3044\u308b\u3082\u306e\u3068\u3057\u307e\u3059\u3002<\/p>\n<h3>PostgreSQL\u30c6\u30fc\u30d6\u30eb\u3092CSV\u306b\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u3059\u308b<\/h3>\n<p>\u3053\u306ePostgreSQL\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001\u3059\u3067\u306b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u5185\u306b\u79fb\u884c\u3057\u305f\u3044\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u304c\u3042\u308b\u3053\u3068\u3092\u60f3\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002\u4eca\u56de\u306e\u30c7\u30e2\u3067\u306f\u3001Kaggle\u306e\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u30a4\u30f3\u30b8\u30a7\u30b9\u30c8\u3057\u3001\u305d\u308c\u3092\u4f7f\u3063\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<p>PostgreSQL\u304b\u3089GridDB\u306b\u30c7\u30fc\u30bf\u3092\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u3059\u308b\u306b\u306f\u3001PostgreSQL\u306e\u30b3\u30d4\u30fc\u6a5f\u80fd\u3092\u4f7f\u3063\u3066\u30011\u30c6\u30fc\u30d6\u30eb\u305a\u3064CSV\u30d5\u30a1\u30a4\u30eb\u306b\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u3059\u308b\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u65b9\u6cd5\u3067\u306f\u3001\u4e00\u5ea6\u306b1\u3064\u306e\u30c6\u30fc\u30d6\u30eb\u3057\u304b\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u3067\u304d\u307e\u305b\u3093\u304c\u3001\u30c7\u30fc\u30bf\u306e\u6b63\u78ba\u3055\u3068GridDB\u3078\u306e\u30a4\u30f3\u30dd\u30fc\u30c8\u3092\u5bb9\u6613\u306b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001\u5f8c\u3067GridDB\u3067\u4f7f\u3046\u305f\u3081\u306b\u3001\u30c7\u30fc\u30bf\u3092csv\u30d5\u30a1\u30a4\u30eb\u306b\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u3059\u308b\u306e\u306b\u4f7f\u3063\u305f\u3082\u306e\u3067\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-sh\">COPY device15 TO '\/tmp\/devices_db.csv' DELIMITER ',' CSV HEADER;<\/code><\/pre>\n<\/div>\n<p>\u30b3\u30de\u30f3\u30c9\u304c\u7d42\u4e86\u3059\u308b\u3068\u3001\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u3057\u305f\u3044\u30c6\u30fc\u30d6\u30eb\u306e.csv\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u5834\u5408\u3001<code>device15<\/code>\u30c6\u30fc\u30d6\u30eb\u306f\u3001\u3053\u306e<a href=\"https:\/\/www.kaggle.com\/datasets\/garystafford\/environmental-sensor-data-132k\">Kaggle IoT dataset<\/a>\u3092\u76f4\u63a5\u8868\u73fe\u3057\u305f\u3082\u306e\u3067\u3059\u3002<\/p>\n<h3>GridDB\u3067\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b<\/h3>\n<p>GridDB\u3092\u4f7f\u3063\u3066\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b\u306b\u306f\u3001\u516c\u5f0f\u306e\u30a4\u30f3\u30dd\u30fc\u30c8\u30fb\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u30c4\u30fc\u30eb\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4eca\u56de\u306f\u3001\u3082\u3061\u308d\u3093\u30a4\u30f3\u30dd\u30fc\u30c8\u30c4\u30fc\u30eb\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u3053\u306e\u30c4\u30fc\u30eb\u306f\u3001<a href=\"https:\/\/github.com\/griddb\/expimp\">GridDB Export Import<\/a>\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30c4\u30fc\u30eb\u3092\u4f7f\u3046\u306b\u306f\u3001csv\u30d5\u30a1\u30a4\u30eb\u3092\u5c11\u3057\u5909\u66f4\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u5148\u982d\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre><code>ts,device,co,humidity,light,lpg,motion,smoke,temp\n2020-07-12 00:01:34.385974,b8:27:eb:bf:9d:51,0.0049559386483912,51,f,0.0076508222705571,f,0.0204112701224129,22.7\n2020-07-12 00:01:34.735567,00:0f:00:70:91:0a,0.0028400886071015,76,f,0.005114383400977,f,0.0132748367048515,19.700000762939453\n2020-07-12 00:01:38.073572,b8:27:eb:bf:9d:51,0.0049760123404216,50.9,f,0.007673227406398,f,0.0204751255761782,22.6\n2020-07-12 00:01:39.589145,1c:bf:ce:15:ec:4d,0.0044030268296996,76.80000305175781,t,0.0070233371458773,f,0.0186282253770188,27\n2020-07-12 00:01:41.761234,b8:27:eb:bf:9d:51,0.0049673636419089,50.9,f,0.0076635772823724,f,0.0204476208102336,22.6\n2020-07-12 00:01:44.46841,1c:bf:ce:15:ec:4d,0.0043910039545833,77.9000015258789,t,0.0070094585431387,f,0.0185889075400507,27\n2020-07-12 00:01:45.448863,b8:27:eb:bf:9d:51,0.0049760251182241,50.9,f,0.0076732416602977,f,0.0204751662043622,22.6\n2020-07-12 00:01:46.869075,00:0f:00:70:91:0a,0.0029381156266604,76,f,0.0052414818417311,f,0.0136275211320191,19.700000762939453\n2020-07-12 00:01:48.275381,1c:bf:ce:15:ec:4d,0.0043454713595732,77.9000015258789,t,0.0069568023772355,f,0.0184397819021168,27\n<\/code><\/pre>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001\u30d5\u30a1\u30a4\u30eb\u306e\u5148\u982d\u304b\u3089\u76f4\u63a5\u51fa\u3066\u304d\u307e\u3059\u3002\u3067\u306f\u3001\u307e\u305a\u30c4\u30fc\u30eb\u3092\u7528\u610f\u3057\u3066\u3001\u30c7\u30fc\u30bf\u3092\u7528\u610f\u3057\u3066\u30a4\u30f3\u30dd\u30fc\u30c8\u3092\u5b9f\u884c\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h4>\u30c4\u30fc\u30eb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/h4>\n<p>\u307e\u305a\u306f\u3001\u30a4\u30f3\u30dd\u30fc\u30c8\u30fb\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u306e\u30ec\u30dd\u3092\u30af\u30ed\u30fc\u30f3\u3057\u3066\u3001\u30d5\u30a1\u30a4\u30eb\u3092\u30d3\u30eb\u30c9\u3057\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-sh\">$ git clone https:\/\/github.com\/griddb\/expimp.git<\/code><\/pre>\n<\/div>\n<p>\u6b21\u306b\u3001\u30d3\u30eb\u30c9\u3057\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-sh\">$ cd expimp-ce\n$ .\/gradlew shadowJar<\/code><\/pre>\n<\/div>\n<p>\u30d3\u30eb\u30c9\u304c\u5b8c\u4e86\u3057\u3001.jar\u30d5\u30a1\u30a4\u30eb\u306e\u6e96\u5099\u304c\u3067\u304d\u305f\u3089\u3001<code>.properties<\/code>\u30d5\u30a1\u30a4\u30eb\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-sh\">$ cd ..\n$ vim bin\/gs_expimp.properties<\/code><\/pre>\n<\/div>\n<p>\u307e\u305f\u3001\u7b46\u8005\u306e\u3088\u3046\u306bFIXED_LIST\u30e2\u30fc\u30c9\u3067GridDB\u30b5\u30fc\u30d0\u3092\u904b\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a2d\u5b9a\u3092\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-sh\">######################################################################\n# gs_import\/gs_export Properties\n#\n#\n######################################################################\nclusterName=myCluster\nmode=FIXED_LIST\n#hostAddress=239.0.0.1\n#hostPort=31999\n\n#jdbcAddress=239.0.0.1\n#jdbcPort=41999\n#notificationProvider.url=\nnotificationMember=127.0.0.1:10001\njdbcNotificationMember=127.0.0.1:20001\n\nlogPath=log\ngetCount=1000\ncommitCount=1000\ntransactionTimeout=2147483647\nfailoverTimeout=10\njdbcLoginTimeout=10\n\nstoreBlockSize=64KB\nmaxJobBufferSize=512\n\n# for debug\nrestAddress=127.0.0.1\nrestPort=1004<\/code><\/pre>\n<\/div>\n<p>\u3053\u3053\u3067\u306f\u3001\u30b3\u30f3\u30d5\u30a3\u30b0\u306e\u30de\u30eb\u30c1\u30ad\u30e3\u30b9\u30c8\u90e8\u5206\uff08\u30db\u30b9\u30c8\u30a2\u30c9\u30ec\u30b9\u3001\u30db\u30b9\u30c8\u30dd\u30fc\u30c8\uff09\u3092\u524a\u9664\u3057\u3001FIXED_LIST\u30e2\u30fc\u30c9\u3092\u30ab\u30d7\u30bb\u30eb\u5316\u3057\u305f\u901a\u77e5\u5148\u30e1\u30f3\u30d0\u30fc\u306b\u7f6e\u304d\u63db\u3048\u305f\u3082\u306e\u3067\u3059\u3002\u3069\u3061\u3089\u3092\u5b9f\u884c\u3057\u3066\u3044\u308b\u304b\u308f\u304b\u3089\u306a\u3044\u5834\u5408\u306f\u3001<code>gs_stat<\/code>\u3067\u7c21\u5358\u306b\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-sh\">$ sudo su gsadm\n$ gs_stat -u admin\/admin<\/code><\/pre>\n<\/div>\n<p>GridDB\u3092\u30b5\u30fc\u30d3\u30b9\u3068\u3057\u3066\u5b9f\u884c\u3057\u3066\u3044\u308b\u5834\u5408\u3001FIXED_LIST\u30e2\u30fc\u30c9\u3067\u5b9f\u884c\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u81ea\u5206\u306e\u30de\u30b7\u30f3\u3067\u4e0a\u8a18\u306e\u8a2d\u5b9a\u3092\u5b89\u5168\u306b\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h4>\u30a4\u30f3\u30dd\u30fc\u30c8\u30c4\u30fc\u30eb\u306e\u30c7\u30fc\u30bf\u3092\u79fb\u884c\u3059\u308b<\/h4>\n<p>\u6b21\u306b\u3001CSV \u30d5\u30a1\u30a4\u30eb\u3092\u76f4\u63a5\u7de8\u96c6\u3057\u3066\u3001GridDB \u30a4\u30f3\u30dd\u30fc\u30c8\u30c4\u30fc\u30eb\u306b\u5bfe\u5fdc\u3059\u308b\u30b9\u30ad\u30fc\u30de\u306b\u5909\u66f4\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u306b\u306f\u3001Python \u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f5c\u6210\u3057\u3001CSV \u30d5\u30a1\u30a4\u30eb\u3092\u5206\u5272\u3057\u3066\u4f5c\u6210\u3059\u308b\u3053\u3068\u3067\u3001\u3088\u308a\u52b9\u7387\u7684\u306a GridDB \u30c7\u30fc\u30bf\u30e2\u30c7\u30eb\u3067\u3042\u308b\u5404\u30bb\u30f3\u30b5\u30fc\u3092\u72ec\u81ea\u306e\u30b3\u30f3\u30c6\u30ca\u30fb\u30c6\u30fc\u30d6\u30eb\u3068\u3057\u3066\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3067\u306f\u3001python\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-python\">import pandas as pd\nimport numpy as np\nimport csv\nfrom datetime import datetime as dt\n\ndf = pd.read_csv ('devices_db.csv')\ndf.head()\n\n#Check data types\nprint(df.dtypes)\n\n# convert ts in unix to ISO 8601 timestamp format\ndf['ts'] = pd.to_datetime(df['ts'], unit = 's').dt.strftime('%Y-%m-%dT%H:%M:%S.%f+0000')\ndf.head(5)\n\n# split data by device as recommended by GridDB schema (1 time series container per device)\ndfs = dict(tuple(df.groupby('device')))\n\n# Separate device1 data and remove device column as it will be stored in collection container\ndevice1 = dfs['b8:27:eb:bf:9d:51']\ndevice1 = device1.drop('device', axis=1)\ndevice1.head()\n\n# Separate device2 data and remove device column as it will be stored in collection container\ndevice2 = dfs['00:0f:00:70:91:0a']\ndevice2 = device2.drop('device', axis=1)\ndevice2.head()\n\n# Separate device3 data and remove device column as it will be stored in collection container\ndevice3 = dfs['1c:bf:ce:15:ec:4d']\ndevice3 = device3.drop('device', axis=1)\ndevice3.head()\n\ndevice1.to_csv('device1.csv', encoding='utf-8', quotechar='\"', index=False, quoting=csv.QUOTE_ALL)\ndevice2.to_csv('device2.csv', encoding='utf-8', quotechar='\"', index=False, quoting=csv.QUOTE_ALL)\ndevice3.to_csv('device3.csv', encoding='utf-8', quotechar='\"', index=False, quoting=csv.QUOTE_ALL)<\/code><\/pre>\n<\/div>\n<p>\u3053\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u6bd4\u8f03\u7684\u7c21\u5358\u3067\u3001PostgreSQL\u306e\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u304b\u3089CSV\u30d5\u30a1\u30a4\u30eb\u3092\u53d7\u3051\u53d6\u308a\u3001pandas\u306e\u30c7\u30fc\u30bf\u30d5\u30ec\u30fc\u30e0\u306b\u5168\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u8fbc\u3093\u3067\u3044\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u30c7\u30fc\u30bf\u69cb\u9020\u306f\u3001\u5404\u30ab\u30e9\u30e0\u3092\u7de8\u96c6\u3057\u3066CSV\u306b\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u3057\u76f4\u3059\u3053\u3068\u304c\u3067\u304d\u308b\u306e\u3067\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u3053\u306e\u6a5f\u4f1a\u306b\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\uff08ts\uff09\u30ab\u30e9\u30e0\u3092GridDB\u30a4\u30f3\u30dd\u30fc\u30c8\u30c4\u30fc\u30eb\u304c\u597d\u3080\u5f62\u5f0f\u306b\u5909\u63db\u3057\u3066\u3044\u307e\u3059\u3002PostgreSQL\u304cdatetime\u5f62\u5f0f\u306e\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306b\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u3057\u305f\u6570\u5024\u304b\u3089\u3001\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u5834\u5408\u3001\u305d\u308c\u305e\u308c\u306e\u30bb\u30f3\u30b5\u30fc\u306b deviceX \u3068\u3044\u3046\u540d\u524d\u3092\u3064\u3051\u3066\u3001\u305d\u3053\u304b\u3089\u5225\u3005\u306e CSV \u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b\u3002\u305d\u3053\u304b\u3089\u65b0\u3057\u3044\u30d5\u30a1\u30a4\u30eb\u3092\u6301\u3063\u3066\u3001GridDB\u30a4\u30f3\u30dd\u30fc\u30c8\u30c4\u30fc\u30eb\u3092\u4f7f\u3063\u3066\u30013\u3064\u306e\u65b0\u3057\u3044GridDB TimeSeries\u30b3\u30f3\u30c6\u30ca\u3092\u4f5c\u3063\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067\u3001python\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3059\u308b\u3068\u30013\u3064\u306e\u65b0\u3057\u3044deviceX.csv\u30d5\u30a1\u30a4\u30eb\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u30a4\u30f3\u30dd\u30fc\u30c8\u30c4\u30fc\u30eb\u306e\u6761\u4ef6\u4ed8\u304d\u3067\u65b0\u898f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3059\u308b<\/h3>\n<p>\u3053\u306e\u30c4\u30fc\u30eb\u3092\u4f7f\u3063\u3066\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b\u306b\u306f\u3001<code>import<\/code>\u3068\u3044\u3046\u65b0\u3057\u3044\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3057\u3001\u30b9\u30e0\u30fc\u30ba\u306a\u30a4\u30f3\u30dd\u30fc\u30c8\u306b\u5fc5\u8981\u306a\u3059\u3079\u3066\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u683c\u7d0d\u3057\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u3001GridDB\u30c4\u30fc\u30eb\u3067\u5404\u30ab\u30e9\u30e0\u306e\u578b\u3092\u8a8d\u8b58\u3059\u308b\u305f\u3081\u306b\u3001\u76ee\u7684\u306e\u30b9\u30ad\u30fc\u30de\u306e\u30e1\u30bf\u30c7\u30fc\u30bf\u3092\u542b\u3081\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u3053\u3067\u3001<code>public.device1_properties.json<\/code>\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u6700\u521d\u306e\u5358\u8a9e\u306fDB\u540d\u3067\u3001\u3053\u3053\u3067\u306fpublic\u3068\u3044\u3046GridDB\u306e\u30e6\u30cb\u30d0\u30fc\u30b5\u30eb\u30fb\u30c7\u30d5\u30a9\u30eb\u30c8DB\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u6b8b\u308a\u306e\u30d5\u30a1\u30a4\u30eb\u306f\u3001\u30b3\u30f3\u30c6\u30ca\u306e\u6b8b\u308a\u306e\u30c7\u30fc\u30bf\u3092\u8a18\u5165\u3057\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-sh\">{\n    \"version\":\"5.0.0\",\n    \"database\":\"public\",\n    \"container\":\"device1\",\n    \"containerType\":\"TIME_SERIES\",\n    \"containerFileType\":\"csv\",\n    \"containerFile\":\"public.device1.csv\",\n    \"columnSet\":[\n        {\n            \"columnName\":\"ts\",\n            \"type\":\"timestamp\",\n            \"notNull\":true\n        },\n        {\n            \"columnName\":\"co\",\n            \"type\":\"double\",\n            \"notNull\":false\n        },\n        {\n            \"columnName\":\"humidity\",\n            \"type\":\"double\",\n            \"notNull\":false\n        },\n        {\n            \"columnName\":\"light\",\n            \"type\":\"bool\",\n            \"notNull\":false\n        },\n        {\n            \"columnName\":\"lpg\",\n            \"type\":\"double\",\n            \"notNull\":false\n        },\n        {\n            \"columnName\":\"motion\",\n            \"type\":\"bool\",\n            \"notNull\":false\n        },\n        {\n            \"columnName\":\"smoke\",\n            \"type\":\"double\",\n            \"notNull\":false\n        },\n        {\n            \"columnName\":\"temperature\",\n            \"type\":\"double\",\n            \"notNull\":false\n        }\n    ],\n    \"rowKeySet\":[\n        \"ts\"\n    ],\n    \"timeSeriesProperties\":{\n        \"compressionMethod\":\"NO\",\n        \"compressionWindowSize\":-1,\n        \"compressionWindowSizeUnit\":\"null\",\n        \"expirationDivisionCount\":-1,\n        \"rowExpirationElapsedTime\":-1,\n        \"rowExpirationTimeUnit\":\"null\"\n    },\n    \"compressionInfoSet\":[\n    ]\n}<\/code><\/pre>\n<\/div>\n<p>\u3053\u306e\u30e1\u30bf\u30c7\u30fc\u30bf\u306f\u5206\u304b\u308a\u3084\u3059\u3044\u306e\u3067\u3001\u6b21\u306e\u8aac\u660e\u306b\u9032\u307f\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306b\u3001\u5148\u307b\u3069\u306ecsv\u30d5\u30a1\u30a4\u30eb\u3092\u3053\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u53d6\u308a\u8fbc\u307f\u307e\u3059\u304c\u3001\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u5909\u66f4\u3057\u307e\u3059\u3002device1.csv \u304c public.device1.csv \u306b\u306a\u308b\u3088\u3046\u306b\u3001\u30d5\u30a1\u30a4\u30eb\u540d\u306e\u524d\u306b DB \u540d\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002\u307e\u305f\u3001GridDB\u30c4\u30fc\u30eb\u306b\u3069\u306e\u30e1\u30bf\u30c7\u30fc\u30bf\u30d5\u30a1\u30a4\u30eb\u3092\u4f7f\u7528\u3059\u308b\u304b\u3001\u30b5\u30fc\u30d0\u306eDB\u540d\u3068\u30b3\u30f3\u30c6\u30ca\u540d\u3092\u77e5\u3089\u305b\u308b\u305f\u3081\u306b\u3001CSV\u30d5\u30a1\u30a4\u30eb\u306e\u5148\u982d\u306b\u5c11\u91cf\u306e\u30e1\u30bf\u30c7\u30fc\u30bf\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-sh\">\"%\",\"public.device1_properties.json\"\n\"$\",\"public.device1\"\n\"2020-07-12T00:01:34.385974+0000\",\"0.0049559386483912\",\"51.0\",\"False\",\"0.0076508222705571\",\"False\",\"0.0204112701224129\",\"22.7\"\n\"2020-07-12T00:01:38.073572+0000\",\"0.0049760123404216\",\"50.9\",\"False\",\"0.007673227406398\",\"False\",\"0.0204751255761782\",\"22.6\"<\/code><\/pre>\n<\/div>\n<p>\u305d\u3057\u3066\u6700\u5f8c\u306b\u3001\u30ab\u30e9\u30e0\u540d\u30fb\u30d8\u30c3\u30c0\u30fc\u884c\u3092\u524a\u9664\u3057\u307e\u3059\u3002\u30a4\u30f3\u30dd\u30fc\u30c8\u30c4\u30fc\u30eb\u306f\u3059\u3067\u306bjson\u30d5\u30a1\u30a4\u30eb\u306b\u3053\u306e\u30c7\u30fc\u30bf\u306e\u8a73\u7d30\u3092\u660e\u793a\u7684\u306b\u6301\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u5197\u9577\u306b\u306a\u308b\u305f\u3081\u3067\u3059\u3002<\/p>\n<p>\u3064\u307e\u308a\u3001GridDB \u306b\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u30e1\u30bf\u30c7\u30fc\u30bf\u306e json \u30d5\u30a1\u30a4\u30eb\u3068 csv \u30d5\u30a1\u30a4\u30eb\u3092\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306b\u542b\u3081\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002csv\u30d5\u30a1\u30a4\u30eb\u306e\u5148\u982d\u306b\u306f\u3001\u30e1\u30bf\u30c7\u30fc\u30bf\u30d5\u30a1\u30a4\u30eb\u3092\u793a\u3059&#8221;%&#8221;\u3068\u3001CSV\u30d5\u30a1\u30a4\u30eb\u306e\u4fdd\u5b58\u5148\u3068\u306a\u308bdb.container\u540d\u306e\u7d44\u307f\u5408\u308f\u305b\u3092\u793a\u3059&#8221;$&#8221;\u306e2\u884c\u304c\u5fc5\u8981\u3067\u3059\u3002\u305d\u3057\u3066\u3001\u30d8\u30c3\u30c0\u30fc\u30fb\u5217\u540d\u306e\u884c\u3092CSV\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u524a\u9664\u3057\u307e\u3059\u3002\u3053\u306e\u4f5c\u696d\u30923\u3064\u306ecsv\u30d5\u30a1\u30a4\u30eb\uff08device1, device2, device3\uff09\u3059\u3079\u3066\u306b\u5bfe\u3057\u3066\u884c\u3044\u3001\u540c\u3058<code>import<\/code>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306b\u7f6e\u304d\u307e\u3059\u3002<\/p>\n<p>\u30c4\u30fc\u30eb\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b\u524d\u306b\u5fc5\u8981\u306a\u6700\u5f8c\u306e1\u3064\u306f\u3001<code>gs_export.json<\/code>\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u3067\u3059\u3002\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u3088\u3063\u3066\u3001\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306e\u3059\u3079\u3066\u306e\u3082\u306e\u3092\u53d6\u308a\u8fbc\u3080\u305f\u3081\u306e\u30c4\u30fc\u30eb\u3092\u7c21\u5358\u306b\u547c\u3073\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u3001\u3053\u306ejson\u30d5\u30a1\u30a4\u30eb\u304c\u3055\u3089\u306b\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3092\u8a98\u5c0e\u3057\u3066\u304f\u308c\u308b\u304b\u3089\u3067\u3059\u3002\u4ee5\u4e0b\u306f\u3001\u3053\u306ejson\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u3067\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-sh\">{\n    \"version\":\"5.0.0\",\n    \"address\":\"127.0.0.1:10001\",\n    \"user\":\"admin\",\n    \"containerCount\":3,\n    \"rowFileType\":\"csv\",\n    \"parallel\":1,\n    \"container\":[\n        {\n            \"database\":\"public\",\n            \"name\":\"device1\",\n            \"metafile\":\"public.device1_properties.json\"\n        },\n        {\n            \"database\":\"public\",\n            \"name\":\"device2\",\n            \"metafile\":\"public.device2_properties.json\"\n        },\n        {\n            \"database\":\"public\",\n            \"name\":\"device3\",\n            \"metafile\":\"public.device3_properties.json\"\n        }\n    ]\n}<\/code><\/pre>\n<\/div>\n<p>\u3053\u308c\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u30a4\u30f3\u30dd\u30fc\u30c8\u30c4\u30fc\u30eb\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-sh\">$ cd expimp\/bin\n$  .\/gs_import -u admin\/admin -d \/home\/israel\/development\/import\/ --all<\/code><\/pre>\n<\/div>\n<p>\u30b3\u30de\u30f3\u30c9\u81ea\u4f53\u306f\u7c21\u5358\u3067\u3001excutable\u3092\u547c\u3073\u51fa\u3057\u3001GridDB\u306e\u30e6\u30fc\u30b6\u30fc\u540d\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3057\u3001\u305d\u306e\u5f8c\u306b\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u305f\u3044\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092<code>--all<\/code>\u30d5\u30e9\u30b0\u4ed8\u304d\u3067\u5165\u529b\u3057\u307e\u3059\u3002\u3046\u307e\u304f\u3044\u3051\u3070\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u51fa\u529b\u304c\u5f97\u3089\u308c\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<pre><code>Import Start.\nNumber of target containers : 3\n\npublic.device1 : 187451\npublic.device2 : 111815\npublic.device3 : 105918\n\nNumber of target containers:3 ( Success:3  Failure:0 )\nImport Completed.\n<\/code><\/pre>\n<p><a href=\"https:\/\/github.com\/griddb\/cli\">GridDB CLI<\/a>\u3067\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-sh\">$ sudo su gsadm\n$ gs_sh\ngs> select * from device2;<\/code><\/pre>\n<\/div>\n<pre><code>gs[public]&gt; select * from device2;\n111,815 results. (131 ms)\ngs[public]&gt; get 10\nts,co,humidity,light,lpg,motion,smoke,temp\n2020-07-12T00:01:34.735Z,0.0028400886071015706,76.0,false,0.005114383400977071,false,0.013274836704851536,19.700000762939453\n2020-07-12T00:01:46.869Z,0.0029381156266604295,76.0,false,0.005241481841731117,false,0.013627521132019194,19.700000762939453\n2020-07-12T00:02:02.785Z,0.0029050147565559603,75.80000305175781,false,0.005198697479294309,false,0.013508733329556249,19.700000762939453\n2020-07-12T00:02:11.476Z,0.0029381156266604295,75.80000305175781,false,0.005241481841731117,false,0.013627521132019194,19.700000762939453\n2020-07-12T00:02:15.289Z,0.0028400886071015706,76.0,false,0.005114383400977071,false,0.013274836704851536,19.700000762939453\n2020-07-12T00:02:19.641Z,0.0028400886071015706,76.0,false,0.005114383400977071,false,0.013274836704851536,19.799999237060547\n2020-07-12T00:02:28.818Z,0.0029050147565559603,75.9000015258789,false,0.005198697479294309,false,0.013508733329556249,19.700000762939453\n2020-07-12T00:02:33.172Z,0.0028400886071015706,76.0,false,0.005114383400977071,false,0.013274836704851536,19.799999237060547\n2020-07-12T00:02:39.145Z,0.002872341154862943,76.0,false,0.005156332935627952,false,0.013391176782176004,19.799999237060547\n2020-07-12T00:02:47.256Z,0.0029050147565559603,75.9000015258789,false,0.005198697479294309,false,0.013508733329556249,19.700000762939453\n<\/code><\/pre>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u3053\u308c\u3067\u3001PostgreSQL\u304b\u3089GridDB\u306b\u76f4\u63a5\u30c7\u30fc\u30bf\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u3001\u3055\u3089\u306b\u65b0\u3057\u3044\u30b9\u30ad\u30fc\u30de\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3057\u305f\u3002\u305c\u3072\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u306e\u30d6\u30ed\u30b0\u3067\u306f\u3001PostgreSQL\u304b\u3089GridDB\u3078\u306e\u79fb\u884c\u3092\u7c21\u5358\u306b\u884c\u3046\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\u30ea\u30ec\u30fc\u30b7\u30e7\u30ca\u30eb\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u3042\u307e\u308a\u8a73\u3057\u304f\u306a\u3044\u65b9\u306e\u305f\u3081\u306b\u8aac\u660e\u3059\u308b\u3068\u3001PostgreSQL\u306f\u300c\u4e16\u754c\u3067\u6700\u3082\u5148\u9032\u7684\u306a\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u30ea\u30ec\u30fc [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":50346,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1005],"tags":[],"class_list":["post-50842","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-1005"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>GridDB\u30a4\u30f3\u30dd\u30fc\u30c8\u30fb\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u30c4\u30fc\u30eb\u3092\u4f7f\u3063\u3066PostgreSQL\u304b\u3089GridDB\u3078\u79fb\u884c\u3059\u308b | GridDB: Open Source Time Series Database for IoT<\/title>\n<meta name=\"description\" content=\"\u3053\u306e\u30d6\u30ed\u30b0\u3067\u306f\u3001PostgreSQL\u304b\u3089GridDB\u3078\u306e\u79fb\u884c\u3092\u7c21\u5358\u306b\u884c\u3046\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\u30ea\u30ec\u30fc\u30b7\u30e7\u30ca\u30eb\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u3042\u307e\u308a\u8a73\u3057\u304f\u306a\u3044\u65b9\u306e\u305f\u3081\u306b\u8aac\u660e\u3059\u308b\u3068\u3001P\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/griddb.net\/ja\/\u672a\u5206\u985e\/using-the-griddb-import-export-tools-to-migrate-from-postgresql-to-griddb\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"GridDB\u30a4\u30f3\u30dd\u30fc\u30c8\u30fb\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u30c4\u30fc\u30eb\u3092\u4f7f\u3063\u3066PostgreSQL\u304b\u3089GridDB\u3078\u79fb\u884c\u3059\u308b | GridDB: Open Source Time Series Database for IoT\" \/>\n<meta property=\"og:description\" content=\"\u3053\u306e\u30d6\u30ed\u30b0\u3067\u306f\u3001PostgreSQL\u304b\u3089GridDB\u3078\u306e\u79fb\u884c\u3092\u7c21\u5358\u306b\u884c\u3046\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\u30ea\u30ec\u30fc\u30b7\u30e7\u30ca\u30eb\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u3042\u307e\u308a\u8a73\u3057\u304f\u306a\u3044\u65b9\u306e\u305f\u3081\u306b\u8aac\u660e\u3059\u308b\u3068\u3001P\" \/>\n<meta property=\"og:url\" content=\"https:\/\/griddb.net\/ja\/\u672a\u5206\u985e\/using-the-griddb-import-export-tools-to-migrate-from-postgresql-to-griddb\/\" \/>\n<meta property=\"og:site_name\" content=\"GridDB: Open Source Time Series Database for IoT\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/griddbcommunity\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-01-14T08:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-11-14T15:55:57+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/griddb.net\/wp-content\/uploads\/2023\/03\/blog_title_241.png\" \/>\n\t<meta property=\"og:image:width\" content=\"870\" \/>\n\t<meta property=\"og:image:height\" content=\"490\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Israel\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@GridDBCommunity\" \/>\n<meta name=\"twitter:site\" content=\"@GridDBCommunity\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"Israel\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"4\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/using-the-griddb-import-export-tools-to-migrate-from-postgresql-to-griddb\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/using-the-griddb-import-export-tools-to-migrate-from-postgresql-to-griddb\/\"},\"author\":{\"name\":\"Israel\",\"@id\":\"https:\/\/griddb.net\/en\/#\/schema\/person\/c8a430e7156a9e10af73b1fbb46c2740\"},\"headline\":\"GridDB\u30a4\u30f3\u30dd\u30fc\u30c8\u30fb\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u30c4\u30fc\u30eb\u3092\u4f7f\u3063\u3066PostgreSQL\u304b\u3089GridDB\u3078\u79fb\u884c\u3059\u308b\",\"datePublished\":\"2023-01-14T08:00:00+00:00\",\"dateModified\":\"2025-11-14T15:55:57+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/using-the-griddb-import-export-tools-to-migrate-from-postgresql-to-griddb\/\"},\"wordCount\":163,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/griddb.net\/en\/#organization\"},\"image\":{\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/using-the-griddb-import-export-tools-to-migrate-from-postgresql-to-griddb\/#primaryimage\"},\"thumbnailUrl\":\"\/wp-content\/uploads\/2023\/03\/blog_title_241.png\",\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/using-the-griddb-import-export-tools-to-migrate-from-postgresql-to-griddb\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/using-the-griddb-import-export-tools-to-migrate-from-postgresql-to-griddb\/\",\"url\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/using-the-griddb-import-export-tools-to-migrate-from-postgresql-to-griddb\/\",\"name\":\"GridDB\u30a4\u30f3\u30dd\u30fc\u30c8\u30fb\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u30c4\u30fc\u30eb\u3092\u4f7f\u3063\u3066PostgreSQL\u304b\u3089GridDB\u3078\u79fb\u884c\u3059\u308b | GridDB: Open Source Time Series Database for IoT\",\"isPartOf\":{\"@id\":\"https:\/\/griddb.net\/en\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/using-the-griddb-import-export-tools-to-migrate-from-postgresql-to-griddb\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/using-the-griddb-import-export-tools-to-migrate-from-postgresql-to-griddb\/#primaryimage\"},\"thumbnailUrl\":\"\/wp-content\/uploads\/2023\/03\/blog_title_241.png\",\"datePublished\":\"2023-01-14T08:00:00+00:00\",\"dateModified\":\"2025-11-14T15:55:57+00:00\",\"description\":\"\u3053\u306e\u30d6\u30ed\u30b0\u3067\u306f\u3001PostgreSQL\u304b\u3089GridDB\u3078\u306e\u79fb\u884c\u3092\u7c21\u5358\u306b\u884c\u3046\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\u30ea\u30ec\u30fc\u30b7\u30e7\u30ca\u30eb\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u3042\u307e\u308a\u8a73\u3057\u304f\u306a\u3044\u65b9\u306e\u305f\u3081\u306b\u8aac\u660e\u3059\u308b\u3068\u3001P\",\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/using-the-griddb-import-export-tools-to-migrate-from-postgresql-to-griddb\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/using-the-griddb-import-export-tools-to-migrate-from-postgresql-to-griddb\/#primaryimage\",\"url\":\"\/wp-content\/uploads\/2023\/03\/blog_title_241.png\",\"contentUrl\":\"\/wp-content\/uploads\/2023\/03\/blog_title_241.png\",\"width\":870,\"height\":490},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/griddb.net\/en\/#website\",\"url\":\"https:\/\/griddb.net\/en\/\",\"name\":\"GridDB: Open Source Time Series Database for IoT\",\"description\":\"GridDB is an open source time-series database with the performance of NoSQL and convenience of SQL\",\"publisher\":{\"@id\":\"https:\/\/griddb.net\/en\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/griddb.net\/en\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/griddb.net\/en\/#organization\",\"name\":\"Fixstars\",\"url\":\"https:\/\/griddb.net\/en\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/griddb.net\/en\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png\",\"contentUrl\":\"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png\",\"width\":200,\"height\":83,\"caption\":\"Fixstars\"},\"image\":{\"@id\":\"https:\/\/griddb.net\/en\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/griddbcommunity\/\",\"https:\/\/x.com\/GridDBCommunity\",\"https:\/\/www.linkedin.com\/company\/griddb-by-toshiba\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/griddb.net\/en\/#\/schema\/person\/c8a430e7156a9e10af73b1fbb46c2740\",\"name\":\"Israel\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/griddb.net\/en\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/4df8cfc155402a2928d11f80b0220037b8bd26c4f1b19c4598d826e0306e6307?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/4df8cfc155402a2928d11f80b0220037b8bd26c4f1b19c4598d826e0306e6307?s=96&d=mm&r=g\",\"caption\":\"Israel\"},\"url\":\"https:\/\/griddb.net\/ja\/author\/israel\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"GridDB\u30a4\u30f3\u30dd\u30fc\u30c8\u30fb\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u30c4\u30fc\u30eb\u3092\u4f7f\u3063\u3066PostgreSQL\u304b\u3089GridDB\u3078\u79fb\u884c\u3059\u308b | GridDB: Open Source Time Series Database for IoT","description":"\u3053\u306e\u30d6\u30ed\u30b0\u3067\u306f\u3001PostgreSQL\u304b\u3089GridDB\u3078\u306e\u79fb\u884c\u3092\u7c21\u5358\u306b\u884c\u3046\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\u30ea\u30ec\u30fc\u30b7\u30e7\u30ca\u30eb\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u3042\u307e\u308a\u8a73\u3057\u304f\u306a\u3044\u65b9\u306e\u305f\u3081\u306b\u8aac\u660e\u3059\u308b\u3068\u3001P","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/griddb.net\/ja\/\u672a\u5206\u985e\/using-the-griddb-import-export-tools-to-migrate-from-postgresql-to-griddb\/","og_locale":"ja_JP","og_type":"article","og_title":"GridDB\u30a4\u30f3\u30dd\u30fc\u30c8\u30fb\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u30c4\u30fc\u30eb\u3092\u4f7f\u3063\u3066PostgreSQL\u304b\u3089GridDB\u3078\u79fb\u884c\u3059\u308b | GridDB: Open Source Time Series Database for IoT","og_description":"\u3053\u306e\u30d6\u30ed\u30b0\u3067\u306f\u3001PostgreSQL\u304b\u3089GridDB\u3078\u306e\u79fb\u884c\u3092\u7c21\u5358\u306b\u884c\u3046\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\u30ea\u30ec\u30fc\u30b7\u30e7\u30ca\u30eb\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u3042\u307e\u308a\u8a73\u3057\u304f\u306a\u3044\u65b9\u306e\u305f\u3081\u306b\u8aac\u660e\u3059\u308b\u3068\u3001P","og_url":"https:\/\/griddb.net\/ja\/\u672a\u5206\u985e\/using-the-griddb-import-export-tools-to-migrate-from-postgresql-to-griddb\/","og_site_name":"GridDB: Open Source Time Series Database for IoT","article_publisher":"https:\/\/www.facebook.com\/griddbcommunity\/","article_published_time":"2023-01-14T08:00:00+00:00","article_modified_time":"2025-11-14T15:55:57+00:00","og_image":[{"width":870,"height":490,"url":"https:\/\/griddb.net\/wp-content\/uploads\/2023\/03\/blog_title_241.png","type":"image\/png"}],"author":"Israel","twitter_card":"summary_large_image","twitter_creator":"@GridDBCommunity","twitter_site":"@GridDBCommunity","twitter_misc":{"\u57f7\u7b46\u8005":"Israel","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"4\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/using-the-griddb-import-export-tools-to-migrate-from-postgresql-to-griddb\/#article","isPartOf":{"@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/using-the-griddb-import-export-tools-to-migrate-from-postgresql-to-griddb\/"},"author":{"name":"Israel","@id":"https:\/\/griddb.net\/en\/#\/schema\/person\/c8a430e7156a9e10af73b1fbb46c2740"},"headline":"GridDB\u30a4\u30f3\u30dd\u30fc\u30c8\u30fb\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u30c4\u30fc\u30eb\u3092\u4f7f\u3063\u3066PostgreSQL\u304b\u3089GridDB\u3078\u79fb\u884c\u3059\u308b","datePublished":"2023-01-14T08:00:00+00:00","dateModified":"2025-11-14T15:55:57+00:00","mainEntityOfPage":{"@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/using-the-griddb-import-export-tools-to-migrate-from-postgresql-to-griddb\/"},"wordCount":163,"commentCount":0,"publisher":{"@id":"https:\/\/griddb.net\/en\/#organization"},"image":{"@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/using-the-griddb-import-export-tools-to-migrate-from-postgresql-to-griddb\/#primaryimage"},"thumbnailUrl":"\/wp-content\/uploads\/2023\/03\/blog_title_241.png","inLanguage":"ja","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/using-the-griddb-import-export-tools-to-migrate-from-postgresql-to-griddb\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/using-the-griddb-import-export-tools-to-migrate-from-postgresql-to-griddb\/","url":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/using-the-griddb-import-export-tools-to-migrate-from-postgresql-to-griddb\/","name":"GridDB\u30a4\u30f3\u30dd\u30fc\u30c8\u30fb\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u30c4\u30fc\u30eb\u3092\u4f7f\u3063\u3066PostgreSQL\u304b\u3089GridDB\u3078\u79fb\u884c\u3059\u308b | GridDB: Open Source Time Series Database for IoT","isPartOf":{"@id":"https:\/\/griddb.net\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/using-the-griddb-import-export-tools-to-migrate-from-postgresql-to-griddb\/#primaryimage"},"image":{"@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/using-the-griddb-import-export-tools-to-migrate-from-postgresql-to-griddb\/#primaryimage"},"thumbnailUrl":"\/wp-content\/uploads\/2023\/03\/blog_title_241.png","datePublished":"2023-01-14T08:00:00+00:00","dateModified":"2025-11-14T15:55:57+00:00","description":"\u3053\u306e\u30d6\u30ed\u30b0\u3067\u306f\u3001PostgreSQL\u304b\u3089GridDB\u3078\u306e\u79fb\u884c\u3092\u7c21\u5358\u306b\u884c\u3046\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\u30ea\u30ec\u30fc\u30b7\u30e7\u30ca\u30eb\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u3042\u307e\u308a\u8a73\u3057\u304f\u306a\u3044\u65b9\u306e\u305f\u3081\u306b\u8aac\u660e\u3059\u308b\u3068\u3001P","inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/using-the-griddb-import-export-tools-to-migrate-from-postgresql-to-griddb\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/using-the-griddb-import-export-tools-to-migrate-from-postgresql-to-griddb\/#primaryimage","url":"\/wp-content\/uploads\/2023\/03\/blog_title_241.png","contentUrl":"\/wp-content\/uploads\/2023\/03\/blog_title_241.png","width":870,"height":490},{"@type":"WebSite","@id":"https:\/\/griddb.net\/en\/#website","url":"https:\/\/griddb.net\/en\/","name":"GridDB: Open Source Time Series Database for IoT","description":"GridDB is an open source time-series database with the performance of NoSQL and convenience of SQL","publisher":{"@id":"https:\/\/griddb.net\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/griddb.net\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/griddb.net\/en\/#organization","name":"Fixstars","url":"https:\/\/griddb.net\/en\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/griddb.net\/en\/#\/schema\/logo\/image\/","url":"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png","contentUrl":"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png","width":200,"height":83,"caption":"Fixstars"},"image":{"@id":"https:\/\/griddb.net\/en\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/griddbcommunity\/","https:\/\/x.com\/GridDBCommunity","https:\/\/www.linkedin.com\/company\/griddb-by-toshiba"]},{"@type":"Person","@id":"https:\/\/griddb.net\/en\/#\/schema\/person\/c8a430e7156a9e10af73b1fbb46c2740","name":"Israel","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/griddb.net\/en\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/4df8cfc155402a2928d11f80b0220037b8bd26c4f1b19c4598d826e0306e6307?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4df8cfc155402a2928d11f80b0220037b8bd26c4f1b19c4598d826e0306e6307?s=96&d=mm&r=g","caption":"Israel"},"url":"https:\/\/griddb.net\/ja\/author\/israel\/"}]}},"_links":{"self":[{"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/posts\/50842","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/comments?post=50842"}],"version-history":[{"count":1,"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/posts\/50842\/revisions"}],"predecessor-version":[{"id":51669,"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/posts\/50842\/revisions\/51669"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/media\/50346"}],"wp:attachment":[{"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/media?parent=50842"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/categories?post=50842"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/tags?post=50842"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}