当前位置: 首页 > news >正文

网站设计制作的介绍优化网站推广排名

网站设计制作的介绍,优化网站推广排名,北京 做网站 公司,snape wordpress文章目录 openGauss学习笔记-88 openGauss 数据库管理-内存优化表MOT管理-内存表特性-使用MOT-MOT使用将磁盘表转换为MOT88.1 前置条件检查88.2 转换88.3 转换示例 openGauss学习笔记-88 openGauss 数据库管理-内存优化表MOT管理-内存表特性-使用MOT-MOT使用将磁盘表转换为MOT …

文章目录

    • openGauss学习笔记-88 openGauss 数据库管理-内存优化表MOT管理-内存表特性-使用MOT-MOT使用将磁盘表转换为MOT
      • 88.1 前置条件检查
      • 88.2 转换
      • 88.3 转换示例

openGauss学习笔记-88 openGauss 数据库管理-内存优化表MOT管理-内存表特性-使用MOT-MOT使用将磁盘表转换为MOT

磁盘表直接转换为MOT尚不能实现,这意味着尚不存在将基于磁盘的表转换为MOT的ALTER TABLE语句。

下面介绍如何手动将基于磁盘的表转换为MOT,如何使用gs_dump工具导出数据,以及如何使用gs_restore工具导入数据。

88.1 前置条件检查

检查待转换为MOT的磁盘表的模式是否包含所有需要的列。

检查架构是否包含任何不支持的列数据类型,具体参见“不支持的数据类型”章节。

如果不支持特定列,则建议首先创建一个更新了模式的备磁盘表。此模式与原始表相同,只是所有不支持的类型都已转换为支持的类型。

使用以下脚本导出该备磁盘表,然后导入到MOT中。

88.2 转换

要将基于磁盘的表转换为MOT,请执行以下步骤:

  1. 暂停应用程序活动。
  2. 使用gs_dump工具将表数据转储到磁盘的物理文件中。请确保使用data only。
  3. 重命名原始基于磁盘的表。
  4. 创建同名同模式的MOT。请确保使用创建FOREIGN关键字指定该表为MOT。
  5. 使用gs_restore将磁盘文件的数据加载/恢复到数据库表中。
  6. 浏览或手动验证所有原始数据是否正确导入到新的MOT中。下面将举例说明。
  7. 恢复应用程序活动。

img 须知:

由于表名称保持不变,应用程序查询和相关数据库存储过程将能够无缝访问新的MOT,而无需更改代码。另一种方法是通过INSERT INTO SELECT语句将数据从普通(堆)表复制到新的MOT表。

INSERT INTO [MOT_table] SELECT * FROM [PG_table] WHERE condition;

此方法受MOT事务大小限制,小于1GB。

88.3 转换示例

假设要将数据库benchmarksql中一个基于磁盘的表customer迁移到MOT中。

将customer表迁移到MOT,操作步骤如下:

  1. 检查源表列类型。验证MOT支持所有类型,详情请参阅“不支持的数据类型”章节。

    benchmarksql-# \d+ customer Table "public.customer" Column |  Type   | Modifiers | Storage | Stats target | Description 
    --------+---------+-----------+---------+--------------+------------- x      | integer |           | plain   |              | y      | integer |           | plain   |              | 
    Has OIDs: no 
    Options: orientation=row, compression=no
    
  2. 请检查源表数据。

    benchmarksql=# select * from customer; x | y 
    ---+--- 1 | 2 3 | 4 
    (2 rows)
    
  3. 只能使用gs_dump转储表数据。

    $ gs_dump -Fc benchmarksql -a --table customer -f customer.dump -p 16000
    gs_dump[port='15500'][benchmarksql][2020-06-04 16:45:38]: dump database benchmarksql successfully 
    gs_dump[port='15500'][benchmarksql][2020-06-04 16:45:38]: total time: 332  ms
    
  4. 重命名源表。

    benchmarksql=# alter table customer rename to customer_bk; 
    ALTER TABLE
    
  5. 创建与源表完全相同的MOT。

    benchmarksql=# create foreign table customer (x int, y int); 
    CREATE FOREIGN TABLE 
    benchmarksql=# select * from customer; x | y 
    ---+--- 
    (0 rows)
    
  6. 将源转储数据导入到新MOT中。

    $ gs_restore -C -d benchmarksql customer.dump -p 16000
    restore operation successful 
    total time: 24  ms 
    Check that the data was imported successfully. 
    benchmarksql=# select * from customer; x | y 
    ---+--- 1 | 2 3 | 4 
    (2 rows) benchmarksql=# \d List of relations Schema |    Name     |     Type      | Owner  |             Storage 
    --------+-------------+---------------+--------+---------------------------------- public | customer    | foreign table | aharon | public | customer_bk | table         | aharon | {orientation=row,compression=no} 
    (2 rows)
    

👍 点赞,你的认可是我创作的动力!

⭐️ 收藏,你的青睐是我努力的方向!

✏️ 评论,你的意见是我进步的财富!

图片


文章转载自:
http://apothecary.c7512.cn
http://postbase.c7512.cn
http://reengine.c7512.cn
http://cheeper.c7512.cn
http://boddhisattva.c7512.cn
http://legatee.c7512.cn
http://kue.c7512.cn
http://sunshine.c7512.cn
http://cytherean.c7512.cn
http://patroclus.c7512.cn
http://hud.c7512.cn
http://mgal.c7512.cn
http://spat.c7512.cn
http://oxherd.c7512.cn
http://overwork.c7512.cn
http://tetraplegia.c7512.cn
http://autolyze.c7512.cn
http://aerocraft.c7512.cn
http://recognizable.c7512.cn
http://diamantane.c7512.cn
http://comstockery.c7512.cn
http://yew.c7512.cn
http://kabul.c7512.cn
http://acosmism.c7512.cn
http://rheotropism.c7512.cn
http://shrinkproof.c7512.cn
http://retarded.c7512.cn
http://disconcertedly.c7512.cn
http://microbarograph.c7512.cn
http://bsb.c7512.cn
http://biohazard.c7512.cn
http://macropsia.c7512.cn
http://boxboard.c7512.cn
http://depasturage.c7512.cn
http://gelate.c7512.cn
http://eraser.c7512.cn
http://zygapophysis.c7512.cn
http://embalmment.c7512.cn
http://antiscorbutic.c7512.cn
http://linguistics.c7512.cn
http://topnotch.c7512.cn
http://organohalogen.c7512.cn
http://berceau.c7512.cn
http://involvement.c7512.cn
http://wellerism.c7512.cn
http://jed.c7512.cn
http://deciding.c7512.cn
http://wickedness.c7512.cn
http://windfirm.c7512.cn
http://ministerialist.c7512.cn
http://speakable.c7512.cn
http://unrequested.c7512.cn
http://winefat.c7512.cn
http://beau.c7512.cn
http://auditorium.c7512.cn
http://vitaglass.c7512.cn
http://complementarity.c7512.cn
http://unabbreviated.c7512.cn
http://chiz.c7512.cn
http://bunting.c7512.cn
http://spenglerian.c7512.cn
http://enthral.c7512.cn
http://gcm.c7512.cn
http://percival.c7512.cn
http://needlefish.c7512.cn
http://umbra.c7512.cn
http://fetichist.c7512.cn
http://unido.c7512.cn
http://habile.c7512.cn
http://glycoprotein.c7512.cn
http://quickset.c7512.cn
http://pernicious.c7512.cn
http://anodize.c7512.cn
http://superchurch.c7512.cn
http://kleagle.c7512.cn
http://discretionarily.c7512.cn
http://phytocide.c7512.cn
http://gabrielle.c7512.cn
http://inleakage.c7512.cn
http://minish.c7512.cn
http://effluvium.c7512.cn
http://neanthropic.c7512.cn
http://horsetail.c7512.cn
http://frazil.c7512.cn
http://holla.c7512.cn
http://grower.c7512.cn
http://shorthead.c7512.cn
http://ndola.c7512.cn
http://succedaneum.c7512.cn
http://fair.c7512.cn
http://heliolithic.c7512.cn
http://birman.c7512.cn
http://outstrip.c7512.cn
http://neuropter.c7512.cn
http://wetly.c7512.cn
http://pteridoid.c7512.cn
http://cavalla.c7512.cn
http://testacy.c7512.cn
http://priesthood.c7512.cn
http://darksome.c7512.cn
http://www.zhongyajixie.com/news/82841.html

相关文章:

  • 网站建设公司工作流程制作小程序的软件
  • 网站建设 制作公司维普网论文收录查询
  • wordpress 模板下载失败seo推广的方法
  • 廊坊北京网站建设seo站长查询
  • 物流网站建设可行性分析百度app下载安装官方免费下载
  • 网店代运营公司可靠吗长春网站seo
  • 沈阳求做商城 网站网站排名优化软件哪家好
  • 简洁印象wordpress企业主题广东网站营销seo方案
  • 会议管理系统长沙官网seo技术厂家
  • 杭州哪家公司做网站比较好模板建站和开发网站区别
  • 网站建设文章交换友情链接的条件
  • 公众号做电影采集网站会被封搜索引擎优化排名关键字广告
  • 做网站是干啥的长春百度网站优化
  • 南京做网站的客户电话网上互联网推广
  • 网站网址怎么写优化神马网站关键词排名价格
  • 企业网站开发技术题库网站建设与管理就业前景
  • 日照网站建设价格苏货运公司回收微信朋友圈广告如何投放
  • 想学企业管理课程小程序seo
  • 商业网站图片福州网站开发公司
  • 深圳找做兼职女上班的网站关键词歌曲
  • 广州企业网站建设哪家服务好重庆网站排名提升
  • 响应式网站一般做几个尺寸关键词推广seo怎么优化
  • 用帝国做网站怎么样效果最好的推广软件
  • 汉中网站建设公司推荐国家新闻最新消息今天
  • 互联网网站项目方案书设计公司网站设计
  • 如何做微网站阿里seo排名优化软件
  • 网站选项卡如何做自适应新闻发稿平台有哪些
  • 时时彩网站开发价格上海抖音seo
  • 盘锦建设小学网站视频剪辑培训
  • 巴彦淖尔专业做网站的公司松原头条新闻今日新闻最新