下載吧 - 綠色安全的游戲和軟件下載中心

軟件下載吧

當(dāng)前位置:軟件下載吧 > 技術(shù)開發(fā) > 數(shù)據(jù)庫 > PostgreSQL中Slony-I同步復(fù)制部署教程

PostgreSQL中Slony-I同步復(fù)制部署教程

時間:2024-03-08 08:50作者:下載吧人氣:25

前言

本文主要介紹了關(guān)于PostgreSQL中Slony-I同步復(fù)制部署的相關(guān)內(nèi)容,分享出來供大家參考學(xué)習(xí),下面話不多說了,來一起看看詳細(xì)的介紹吧

本次測試環(huán)境

IP 10.189.102.118 10.189.100.195 10.189.100.226
PGHOME /usr/local/pgsql /usr/local/pgsql /usr/local/pgsql
Role Origin,Providers Subscribers,Providers Subscribers
Database region_il  region_il  region_il 
Table

il_longlive.entity

il_longlive.entity_result

il_longlive.result

il_longlive.result_logbook

il_longlive.entity

il_longlive.entity_result

il_longlive.result

il_longlive.result_logbook

il_longlive.entity

il_longlive.entity_result

il_longlive.result

il_longlive.result_logbook

Sequences

il_longlive.entity_entity_id_seq

il_longlive.entity_result_id_seq

il_longlive.result_id_seq

il_longlive.result_logbook_record_id_seq

il_longlive.entity_entity_id_seq

il_longlive.entity_result_id_seq

il_longlive.result_id_seq

il_longlive.result_logbook_record_id_seq

 

il_longlive.entity_entity_id_seq

il_longlive.entity_result_id_seq

il_longlive.result_id_seq

il_longlive.result_logbook_record_id_seq

Slony-I一般要求表有主鍵,或者唯一鍵,Slony-I會自動識別主鍵,如果表沒有主鍵,需要手工指定唯一鍵,如果沒有指定唯一鍵,則不能復(fù)制,下圖為Slony-I架構(gòu)圖.

PostgreSQL中Slony-I同步復(fù)制部署教程

1. 查看主庫表信息

region_il=# d
List of relations
Schema | Name | Type | Owner
————-+——————————+———-+———-
il_longlive | entity | table | postgres
il_longlive | entity_entity_id_seq | sequence | postgres
il_longlive | entity_result | table | postgres
il_longlive | entity_result_id_seq | sequence | postgres
il_longlive | result | table | postgres
il_longlive | result_id_seq | sequence | postgres
il_longlive | result_logbook | table | postgres
il_longlive | result_logbook_record_id_seq | sequence | postgres
il_longlive | result_vendor_schema | table | postgres
il_longlive | result_vendor_schema_id_seq | sequence | postgres
il_longlive | snapshot | table | postgres
il_longlive | snapshot_id_seq | sequence | postgres
(12 rows)

region_il=# d entity
Table “il_longlive.entity”
Column | Type | Modifiers
————–+————————+————————————————————
entity_id | integer | not null default nextval(‘entity_entity_id_seq’::regclass)
country_code | character varying(3) |
state_code | character varying(50) |
name | character varying(128) |
islive | boolean |
Indexes:
“entity_pkey” PRIMARY KEY, btree (entity_id)

region_il=# select count(*) from entity;
count
———
(1 row)

標(biāo)簽[db:關(guān)鍵字]

相關(guān)下載

查看所有評論+

網(wǎng)友評論

網(wǎng)友
您的評論需要經(jīng)過審核才能顯示

熱門閱覽

最新排行

公眾號

主站蜘蛛池模板: 肉柳高嫁03集在线播放| 中文字幕在线国产| 亚洲激情视频图片| 欧美亚洲第一页| 国产精品免费精品自在线观看| 亚洲电影在线免费观看| 亚洲精品国产高清在线观看| xxxx性视频| 狠狠色综合网站久久久久久久高清| 好男人看片在线视频观看免费观看 | 青青青国产免费线在| 日韩免费视频播播| 国产免费人人看大香伊| 久久久久亚洲精品中文字幕 | 欧美高清性色生活片免费观看 | 真实乱l仑全部视频| 好吊色青青青国产在线观看| 免费又黄又硬又爽大片| aaa一级最新毛片| 羞羞视频免费网站在线看| 成人永久免费福利视频网站| 全球中文成人在线| ASS日本少妇高潮PICS| 欧美高清video| 国产真实乱偷人视频| 久久精品国产四虎| 被农民工玩酥了的张小婷| 欧美中文字幕在线看| 国产性夜夜春夜夜爽三级| 久久久久久久人妻无码中文字幕爆| 羞羞答答www网址进入在线观看| 小屁孩cao大人免费网站| 亚洲精品tv久久久久久久久久| 337p日本人体| 日韩欧美卡一卡二卡新区| 四虎最新紧急更新地址| jizz在线看片| 欧美午夜理伦三级理论三级| 国产韩国精品一区二区三区 | 国产成人精品久久综合| 亚洲av日韩av无码av|