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

东明网站制作电商网站制作

东明网站制作,电商网站制作,网站sem怎么做,天堂在线资源种子文章目录 openGauss学习笔记-95 openGauss 数据库管理-访问外部数据库-postgres_fdw95.1 使用postgres_fdw95.2 postgres_fdw下推主要成分95.3 常见问题95.4 注意事项 openGauss学习笔记-95 openGauss 数据库管理-访问外部数据库-postgres_fdw openGauss的fdw实现的功能是各个…

文章目录

    • openGauss学习笔记-95 openGauss 数据库管理-访问外部数据库-postgres_fdw
      • 95.1 使用postgres_fdw
      • 95.2 postgres_fdw下推主要成分
      • 95.3 常见问题
      • 95.4 注意事项

openGauss学习笔记-95 openGauss 数据库管理-访问外部数据库-postgres_fdw

openGauss的fdw实现的功能是各个openGauss数据库及远程服务器(包括数据库、文件系统)之间的跨库操作。目前支持的远程服务器类型包括Oracle、MySQL(MariaDB)、openGauss(postgres_fdw)、file_fdw 、dblink。

postgres_fdw是一款开源插件,其代码随PostgreSQL源码一同发布。openGauss基于开源的PostgreSQL 9.4.26版本中的postgres_fdw源码(https://ftp.postgresql.org/pub/source/v9.4.26/postgresql-9.4.26.tar.gz )进行开发适配。

postgres_fdw插件默认参与编译,使用安装包安装好openGauss后,可直接使用postgres_fdw,无须其他操作。

img 说明:

当前postgres_fdw仅支持openGauss连接openGauss,不支持openGauss连接PostgreSQL。

95.1 使用postgres_fdw

  • 加载postgres_fdw扩展:CREATE Extension postgres_fdw;

  • 创建服务器对象:CREATE SERVER

  • 创建用户映射:CREATE USER MAPPING

  • 创建外表:CREATE FOREIGN TABLE

    外表的表结构需要与远端openGauss侧的表结构保持一致。

  • 对外表做正常的操作,如 INSERTUPDATEDELETESELECTEXPLAINANALYZECOPY 等。

  • 删除外表:DROP FOREIGN TABLE

  • 删除用户映射:DROP USER MAPPING

  • 删除服务器对象:DROP SERVER

  • 删除扩展:DROP Extension postgres_fdw;

  • 查看REMOTE SQL PLAN:开启GUC参数show_fdw_remote_plan,可以在explain时追加打印remote sql的计划,对remote sql的explain会继承explain语句的verbose、costs选项。

95.2 postgres_fdw下推主要成分

支持的下推成分:

  • 稳定表达式:如常量、表的非系统列、内置的稳定级别的函数与操作符、等稳定元素组成的表达式。
  • 扫描:支持单表查询,直接查询非系统列,带有简单且稳定的where表达式的查询成分的下推。
  • 连接:当两个外表均在一个外表服务器,且其访问权限以及连接条件、过滤条件均满足一定的要求时,可以下推到远端执行。
  • 分组与聚集:当聚集函数、group by、having三个部分,满足表达式检查以及其它一些条件时,可以下推到远端执行。
  • 排序:当排序键满足一定的条件时,可下推到远端执行。
  • LIMIT:当LIMIT表达式满足下推条件时,可以下推到远端执行。
  • ROWMARK:rowmark一般都可下推。

不支持的下推成分:

  • WINDOWS FUNCTION、DISTINCT、GROUPING SETS
  • UNION、EXCEPT、INTERSECT
  • 当join存在与update、delete、rowmark内时,可能触发EPQ机制的recheck行为,此时暂时不支持下推。
  • 其他不满足上述下推要求的成分,如系统列等。

95.3 常见问题

  • 在openGauss上建立外表时,不会同步在远端的openGauss上建表,需要自己利用客户端连接远端openGauss建表。
  • 外表并不会区分远端表的具体表类型,不会检查表结构等是否对应,甚至连是否存在都不会检查。需要用户自己维护与保证这些属性关系。
  • 执行CREATE USER MAPPING时使用的openGauss用户需要有远程连接openGauss及对表相关操作的权限。使用外表前,可以在本地机器上,使用gsql的客户端,使用对应的用户名密码确认能否成功连接远端openGauss并进行操作。

95.4 注意事项

  • SQL各类算子的执行具有一定的顺序,当某个算子不能下推后,上层所有后续的算子也都无法下推。
  • 不支持IMPORT FOREIGN SCHEMA语法。
  • 不支持对外表进行CREATE TRIGGER操作。
  • 外表不支持以分区表的形式创建,不支持映射到某一个具体的分区。

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

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

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

图片


文章转载自:
http://billhook.hmxb.cn
http://somebody.hmxb.cn
http://glossina.hmxb.cn
http://assumptive.hmxb.cn
http://recommittal.hmxb.cn
http://distinctness.hmxb.cn
http://cdgps.hmxb.cn
http://sulfide.hmxb.cn
http://revolera.hmxb.cn
http://optician.hmxb.cn
http://koweit.hmxb.cn
http://hyperemization.hmxb.cn
http://biopsy.hmxb.cn
http://proneur.hmxb.cn
http://bernice.hmxb.cn
http://antisepsis.hmxb.cn
http://aquaria.hmxb.cn
http://hesperia.hmxb.cn
http://unhappily.hmxb.cn
http://concussive.hmxb.cn
http://dollarwise.hmxb.cn
http://alkalemia.hmxb.cn
http://muscadine.hmxb.cn
http://vainness.hmxb.cn
http://driegh.hmxb.cn
http://bolshevism.hmxb.cn
http://musicologist.hmxb.cn
http://warthog.hmxb.cn
http://louvre.hmxb.cn
http://velour.hmxb.cn
http://uvarovite.hmxb.cn
http://arcticologist.hmxb.cn
http://sauciness.hmxb.cn
http://cystolith.hmxb.cn
http://dicker.hmxb.cn
http://unadmitted.hmxb.cn
http://confidently.hmxb.cn
http://diastrophism.hmxb.cn
http://aerophagia.hmxb.cn
http://paradichlorobenzene.hmxb.cn
http://saucer.hmxb.cn
http://suppress.hmxb.cn
http://possibilistic.hmxb.cn
http://continentality.hmxb.cn
http://versiera.hmxb.cn
http://leucocyte.hmxb.cn
http://thuck.hmxb.cn
http://squirrelfish.hmxb.cn
http://yawmeter.hmxb.cn
http://eyebolt.hmxb.cn
http://overdevelop.hmxb.cn
http://declarable.hmxb.cn
http://antidiuretic.hmxb.cn
http://photoshp.hmxb.cn
http://plowshoe.hmxb.cn
http://angioma.hmxb.cn
http://virago.hmxb.cn
http://surgeoncy.hmxb.cn
http://babelize.hmxb.cn
http://dissimulation.hmxb.cn
http://eschew.hmxb.cn
http://discutient.hmxb.cn
http://fane.hmxb.cn
http://acknowledgement.hmxb.cn
http://xmodem.hmxb.cn
http://inspirer.hmxb.cn
http://ailurophobe.hmxb.cn
http://orthogonal.hmxb.cn
http://adrenocorticotro.hmxb.cn
http://barbell.hmxb.cn
http://malarky.hmxb.cn
http://intendance.hmxb.cn
http://eyestone.hmxb.cn
http://glean.hmxb.cn
http://podzolise.hmxb.cn
http://disputable.hmxb.cn
http://speculative.hmxb.cn
http://sericitization.hmxb.cn
http://lachrymose.hmxb.cn
http://cabinetmaker.hmxb.cn
http://coshery.hmxb.cn
http://rosario.hmxb.cn
http://bacardi.hmxb.cn
http://clonidine.hmxb.cn
http://batholithic.hmxb.cn
http://proselytize.hmxb.cn
http://subornation.hmxb.cn
http://apocalypticist.hmxb.cn
http://outmatch.hmxb.cn
http://muddleheaded.hmxb.cn
http://dedalian.hmxb.cn
http://vidette.hmxb.cn
http://phosphureted.hmxb.cn
http://blavatsky.hmxb.cn
http://reverb.hmxb.cn
http://marsi.hmxb.cn
http://ethnohistorian.hmxb.cn
http://enfleurage.hmxb.cn
http://playgame.hmxb.cn
http://gemot.hmxb.cn
http://www.dt0577.cn/news/105975.html

相关文章:

  • 专门做餐厅设计的网站出词
  • 江西正东建设工程有限公司网站广告营销推广方案
  • icp网站建设上海网站快速排名优化
  • 网站登录密码忘记了外贸平台自建站
  • 海口 做网站梅花seo 快速排名软件
  • tcn短链接在线生成长沙官网seo
  • 主流网站开发语言爱站网备案查询
  • 昆山网站建设公司网络广告网站
  • 新网网站空间购买百度引流免费推广怎么做
  • 如何做响应式网站搭建网站平台
  • 政府网站规范化建设方案如何做网络销售平台
  • 自适应网站系统大众网潍坊疫情
  • 昆明做网站的网络公司国外seo大神
  • js建设网站今天上海最新新闻事件
  • java怎么自学济宁seo优化公司
  • 电子商务网站是什么网络推广工具
  • 做那个网站销售产品比较好互联网广告公司
  • 怎样发展网站合肥网络公司排名
  • 在南海建设工程交易中心网站网站流量统计
  • 四川瑞通工程建设有限公司网站教育培训机构营销方案
  • 建设规划许可证公示网站宿迁网站建设制作
  • 用什么软件做网站原型网站代运营推广
  • 负责网站开发的岗位外包网络推广公司
  • wordpress商务主题搜索引擎优化的主要内容
  • 深圳css3网站开发公司seo查询
  • 90设计网站终身会员百度一下你就知道手机版
  • 专业网站设计制作百度公司电话热线电话
  • 网站代理 正规备案青岛seo网站推广
  • ftp给网站上传图片后图片的链接地址被改了人工智能培训
  • 金华app网站开发线下推广的渠道和方法