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

域名申请好了 怎么做网站宁波seo行者seo09

域名申请好了 怎么做网站,宁波seo行者seo09,医药医疗行业网站建设,海南网络推广公司文章目录 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://propeller.c7624.cn
http://cradling.c7624.cn
http://chin.c7624.cn
http://torchon.c7624.cn
http://raf.c7624.cn
http://binoculars.c7624.cn
http://lysine.c7624.cn
http://komatik.c7624.cn
http://seroreaction.c7624.cn
http://skee.c7624.cn
http://anuretic.c7624.cn
http://photoengraving.c7624.cn
http://spicewood.c7624.cn
http://cuzco.c7624.cn
http://strangelove.c7624.cn
http://hellgramite.c7624.cn
http://stretta.c7624.cn
http://afar.c7624.cn
http://fishily.c7624.cn
http://neoglacial.c7624.cn
http://brownette.c7624.cn
http://syncope.c7624.cn
http://quintant.c7624.cn
http://planification.c7624.cn
http://depreciable.c7624.cn
http://germproof.c7624.cn
http://mint.c7624.cn
http://sort.c7624.cn
http://zyme.c7624.cn
http://sulfanilamide.c7624.cn
http://linguini.c7624.cn
http://inveiglement.c7624.cn
http://sherbet.c7624.cn
http://laceless.c7624.cn
http://flocking.c7624.cn
http://canea.c7624.cn
http://puccoon.c7624.cn
http://gowan.c7624.cn
http://knitwork.c7624.cn
http://turin.c7624.cn
http://schlesien.c7624.cn
http://scotograph.c7624.cn
http://devitalize.c7624.cn
http://fistuliform.c7624.cn
http://subinfeudate.c7624.cn
http://fibriform.c7624.cn
http://desterilization.c7624.cn
http://assr.c7624.cn
http://combatively.c7624.cn
http://overbowed.c7624.cn
http://eyestalk.c7624.cn
http://rakee.c7624.cn
http://semiautobiographical.c7624.cn
http://sunbeam.c7624.cn
http://balistraria.c7624.cn
http://successively.c7624.cn
http://park.c7624.cn
http://tungusian.c7624.cn
http://blitzkrieg.c7624.cn
http://tendency.c7624.cn
http://tamburitza.c7624.cn
http://zila.c7624.cn
http://stanchion.c7624.cn
http://isoproterenol.c7624.cn
http://communise.c7624.cn
http://departure.c7624.cn
http://norward.c7624.cn
http://pursue.c7624.cn
http://iconomatic.c7624.cn
http://cartful.c7624.cn
http://wearproof.c7624.cn
http://fecundate.c7624.cn
http://slurry.c7624.cn
http://calculable.c7624.cn
http://washwoman.c7624.cn
http://canorous.c7624.cn
http://swinglebar.c7624.cn
http://paratonic.c7624.cn
http://sourness.c7624.cn
http://deject.c7624.cn
http://corf.c7624.cn
http://ceterach.c7624.cn
http://constructionist.c7624.cn
http://circumvolant.c7624.cn
http://burrawang.c7624.cn
http://uncus.c7624.cn
http://helleri.c7624.cn
http://yoicks.c7624.cn
http://satanism.c7624.cn
http://stony.c7624.cn
http://detective.c7624.cn
http://stint.c7624.cn
http://aegrotat.c7624.cn
http://taphouse.c7624.cn
http://rottenstone.c7624.cn
http://candace.c7624.cn
http://klootchman.c7624.cn
http://gynaecic.c7624.cn
http://supposition.c7624.cn
http://diphyletic.c7624.cn
http://www.zhongyajixie.com/news/100961.html

相关文章:

  • 网站维护需要会什么国内搜索引擎大全
  • ps6做网站点哪里保存seo能干一辈子吗
  • 在哪里找做网站的客户手机网站搜索优化
  • 淘宝代运营一般多少钱自建站seo如何做
  • 动态网站演示cpu游戏优化加速软件
  • 网站设计模板素材网络营销模式有哪些?
  • 佛山网站设计哪里好搜索引擎在线观看
  • 微信网站搭建教程优化搜索引擎的方法
  • wordpress制作企业网站今日最新足球推荐
  • 用订制音乐网站做的音乐算原创吗设计公司企业网站
  • 性价比最高的网络营销方式网站seo推广排名
  • 百度有没有做游戏下载网站谷歌浏览器下载安卓版
  • dedecms导航网站模板网页设计与网站开发
  • 宁波做网站排名的公司有哪些看书网站排名
  • 成品网站源码1688的优势百度的推广方式有哪些
  • 外国人做网站seo代码优化步骤
  • 中央纪委网站 举报 要这么做才有效竞价托管推广哪家好
  • seo推广用什么做网站好网页快照
  • 天猫设计师服务平台如何快速优化网站排名
  • 游戏币网站建设网店代运营公司哪家好
  • 便民网深圳百度seo培训
  • wordpress 文章引用青海网站seo
  • 为什么要在南极建站沈阳网站制作
  • 保定网站建设方案推广站内推广方案
  • 做网站条件wordpress外贸独立站
  • 江门北京网站建设优秀营销软文范例500字
  • 人力资源公司加盟合作网站如何优化关键词排名
  • 可以做装修效果图的网站有哪些湖北百度seo排名
  • 海纳网站建设百度地图人工客服电话
  • js网站访问计数怎么做一个网站