postgresql10 一些常用的查询
查询索引的有效性select d.tablename,a.relname,(case c.indisvalid when true then '有效' else '无效' end) isvalid ,c.indkey from pg_class a ,pg_namespace b ,pg_index c ,pg_indexes d where
postgresql10.3 检查点调整
文章中的函数与使用的pg10.3有差别,如下pg_xlog_location_diff pg_wal_lsn_diff pg_current_xlog_location pg_current_wal_lsn pg_current_xlog_insert_lo
postgresql 检查点调整 checkpoint 转
postgresql10.3内的函数与该文章的有差别,如下pg_xlog_location_diff pg_wal_lsn_diff pg_current_xlog_location pg_current_wal_lsn pg_current_xlog_in
rhel7 pgloader使用
官网下载 pgloader-3.4.1-2.rhel7.x86_64.rpm,python-psycopg2 安装这是shell 运行pgloader 出现 libssl.so被需要 ll | grep libssl.so.1.0. 查找 这个时候可能会出现两条查找结果,我的是libssl.so.1.0.1e 新建软链接 ln -s /lib64/ libssl....
postgresq入库工具 pgbulkloader
rpm -ivh pg_bulkload-3.1.14-1.pg96.rhel6.x86_64.rpmtest.ctl:INPUT=/home/hgs/wf_nodeuser_detail.bcpTABLE=wf_nodeuser_detailWRITER=DIRECTPARSE_ERRORS=-1DUPLICATE_ERRORS=-1LOGFILE=/home/hgs/log/wf_nodeuser_detail.logPARSE_BADFILE=/home/hgs/bad/wf_nodeuser_detail.error.dataDUPLICATE_BADFI...
pgloader2.3.2使用
挂载系统镜像 yum install pgloader-2.3.2-1.rhel6.x86_64.rpm配置文件 conf.conf[pgsql]host=192.168.245.132port=5432#databasebase=postgresuser=postgrespass=postgres#log_file=/home/hgs/test/t.loglog_min_messages=INFO#client_min_messages=loglc_messages= Cclient_encodin...