将普通表更改为外部“ cstore_fdw”表 [英] Change a normal table to a foreign "cstore_fdw" table

查看:96
本文介绍了将普通表更改为外部“ cstore_fdw”表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Postgresql中是否可以将普通表更改为外部表?

Is it possible to change a normal table to a foreign table in Postgresql?

至少,如果不可能,是否可以将普通表中的数据复制到外部表?

At least, if it's not possible, can I copy data from a normal table to a foreign table?

推荐答案

https://github.com/citusdata/cstore_fdw


将数据加载或追加到cstore表中,您有两个选择:

To load or append data into a cstore table, you have two options:


  • 您可以使用COPY命令从文件,程序或STDIN加载或追加数据。 / li>
  • 您可以使用INSERT INTO cstore_table SELECT ...语法从另一个表加载或追加数据。

,请按照示例
创建外部表并从本地表向其中插入数据。

so follow the example: create foreign table and insert data to it from your local table.

这篇关于将普通表更改为外部“ cstore_fdw”表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆