1.首先用该工具来看我们的日志变化,需要先将test_decoding插件编译并安装(进入contrib,编译安装即可) 创建一个slot: SELECT * FROM pg_create_logical_replication_slot('regression_slot', 'test_decoding’); 获取slot记录的变更日志: postgres=# insert into test values(1, 'test', now()); INSERT 0 1 postgres=# in
查看服务器时间及所在时区 [root@localhost ~]# date -R Fri, 07 Dec 2018 04:38:28 -0500 修改时区 先使用 tzselect 根据提示选择所在地区,最终生成时区 You can make this change permanent for yourself by appending the line TZ='Asia/Shanghai'; export TZ to the file '.profile' in your home direc
linux 系统没有北京时间,同步的是上海时间 linux 系统有两个时钟:一个是硬件时钟,即BIOS时间:另一个是系统时钟,是linux系统Kernel(内核)时间. 系统开启时,系统会读取硬件时间,设置系统时间.因此,设置了系统时间,重启时会失效. 要想永久更改时间,可以先同步系统时间(基于网络时间,准确性较高),再同步系统时间 第一种情况 :有网 以网络时间为准校验 (1)查看时区 date -- 查看系统时间[root@develop Asia]# date -RFri, 22 Mar
首先还是推荐大家使用Internet时间来同步自己计算机的时间,这样做主要是方便,就是设置一个ntp服务器,我推荐下面的三个ntp服务器地址. time.asia.apple.com //亲测有效 asia.pool.ntp.org //亲测有效 ntp.nict.jp //亲测有效 如果上面的方法不可用,或者只有局域网,无法连接到互联网,可使用下面的方法: cmd命令 net time的使用,可输入 net time /help 查看帮助,不同的计算机可能会有一些区别. C:\>net tim