GreenPlum
文章平均质量分 59
Greenplum
大数据开发工程师-宋权
攻城狮,嗷!!!!
展开
-
java插入postgresql问题(时间格式问题)
java插入postgresql问题:ERROR: column is of type timestamp without time zone but expression is of type character varying建议:You will need to rewrite or cast the expression.解决:jdbc:postgresql://127.0.0.1:5432/testdb?stringtype=unspecified后面添加stringtype=unsp转载 2022-04-19 18:35:16 · 1262 阅读 · 0 评论 -
使用GreenPlum/postgres的copy命令导出/导入数据
# 使用select命令COPY (select * from bb_test capture_time > '2018-08-16 00:00:00' and capture_time < '2018-08-17 00:00:00') TO '/tmp/data/test_20180816.csv' with csv;转载 2021-12-16 15:40:04 · 256 阅读 · 0 评论 -
pg数据库主备搭建
注意(创建postgres用户后,要从root进入postges,进行后边的操作,注意用户,主要使用的是和数据库有关的用户)环境:OS:CentOs 7Postgres-11.6 源码编译1.2 主库安装1.2.1 安装介质准备下载地址: https://www.postgresql.org/ftp/source/我这里下载的是11.6版本,介质如下:postgresql-11.6.tar.gz这里下载的源码,所以下面的步骤是源码安装1.2.2 安装依赖包yum insta.转载 2021-11-23 14:34:59 · 1481 阅读 · 0 评论 -
gp数据库分月查询
with mon as( select mon::date mon from generate_series(date_trunc('year', now())::date, date_trunc('year', now())::date + '+1y -1d'::interval,'1mon'::interval) mon ) select * from mon(sql实例)SELECT...原创 2021-10-21 17:18:56 · 1163 阅读 · 0 评论 -
ntp时间同步
内网环境不能访问互联网时间,所以需要建立一个ntp服务器用于局域网内时间的同步。以雪亮局域网环境为例子介绍局域网ntp时间同步服务器端:centos7操作系统搭建ntp服务器客户端:centos7和windows操作系统主机服务器端安装ntp服务yum install ntp启动ntp服务systemctl start ntpd加入开机自启动systemctl enable ntpd修改配置vi /etc/ntp.conf重启ntp服务原创 2021-05-11 14:22:09 · 87 阅读 · 0 评论 -
Greenplum设置资源组及数据库初始化
我们采用资源组的形式管理数据库集群的内存、cpu等信息,现示例资源组的安装部署过程非特殊说明,需要再集群每台机器执行安装cgroup工具yum install libcgroup-tools配置gpdb使用硬件信息vi /etc/cgconfig.d/gpdb.confgroup gpdb {perm {task {uid = gpadmin;gid = gpadmin;...原创 2021-05-11 14:14:57 · 994 阅读 · 0 评论 -
GreenPlum安装
前提局域网已配置ip、ntp时间同步、yum源环境 IP 主机名 作用 管理IP 62.65.168.42 node42 master 62.65.168.25 62.65.168.43 node43 standby 62.65.168.26原创 2021-05-11 14:10:14 · 413 阅读 · 0 评论