摘要:postgres=# select * from pg_stat_user_tables where relname = 'test'; -[ RECORD 1 ] + relid | 23400 schemaname | public relname | test seq_scan | 12 se
阅读全文
随笔分类 - postgres
摘要:postgres=# select * from pg_stat_user_tables where relname = 'test'; -[ RECORD 1 ] + relid | 23400 schemaname | public relname | test seq_scan | 12 se
阅读全文
摘要:数据中往往会出现一些敏感字段,例如电话,邮箱等,这时候有需求进行加密保存 目前可以实现的方式有两种 方式一:这种方法,aes的加密方法不支持aes-192,不支持aes-256 #使用encrypt加解密 #加密保存 insert into test2(username,email) values(
阅读全文
摘要:远程登陆 psql -h 主机 -U 用户 -p端口 -W -d 数据库 #-W表示密码,例如:psql -h 192.168.137.3 -U postgres -p 5432 -W -d postgres 远程执行命令 psql -h 192.168.137.3 -p 5432 postgres
阅读全文
摘要:安装以及启动 yum install readline-devel tar xf postgresql-11.1.tar.gz cd postgresql-11.1 ./configure --prefix=/data/postgresqlmake && make install # useradd
阅读全文
|