sql 转储导入的蟑螂数据库多租户导入错误

Cockroach DB multi-tenancy IMPORT error for sql dump import

我正在尝试将 sql 转储导入 cockroachdb 并收到以下错误:

 IMPORT is unsupported in multi-tenancy mode

我已经在 Google 云平台上创建了一个免费的 CockroachCloud 实例,并且已经从我的终端成功连接到它。我正在尝试按照教程 here 将空间数据 (geojson) 导入到我创建的名为 SpatialData.

的数据库中

在使用 ogr2ogr 将 geojson 文件转换为 sql 转储后,我将 sql 转储托管在 Google Cloud Bucket 上并使其成为 public。这是文件的 url:

https://storage.googleapis.com/poi_roi/tanks.sql 

然而,当我尝试 IMPORT 将数据作为 table 在我的数据库中时,我在执行以下任一操作时遇到上述错误:

IMPORT TABLE tanks FROM PGDUMP 'https://storage.googleapis.com/poi_roi/tanks.sql';

IMPORT PGDUMP('https://storage.googleapis.com/poi_roi/tanks.sql');

CockroachCloud Free 处于测试阶段,缺少一些功能(仍处于测试阶段的原因)。

您可以在 FAQ 中找到更多详细信息,其中在两个答案中提到了限制。两个答案都说明缺乏对 IMPORT 的支持(强调我的):

Limitations of CockroachCloud Free:

CockroachCloud Free is currently in beta and there are capabilities we are still working on enabling, such as the ability to enable backups, to import data, and no-downtime upgrades to a paid tier. If you want to use any of these capabilities, try a 30-day trial of CockroachCloud.

Why is CockroachCLoud Free in Beta:

CockroachCloud Free is in beta while we work on adding core features like import and backups.

您需要找到另一种加载数据的方法,例如自己创建资源和插入数据。