postgresql的日志管理比较灵活,可以设置多种格式log_destination=‘csvlog‘;调成csvlog后log_line_prefix无效;然后自己写个脚本就可以在数据库中方便的调用了,我这里用的是外部表方式,得装file_fdw扩展;如果不装就可以考虑直接copy到数据库里去;
分类:
数据库 时间:
2020-04-09 00:22:01
阅读次数:
114
KMP算法学习 KMP中用到的函数详解 1. prefix_table() 2. move_prefix_table() 3. kmp_search() ...
分类:
编程语言 时间:
2020-04-08 22:46:51
阅读次数:
76
[TOC] 1.MySQL安装前准备 1.1.安装依赖包 1.2.安装cmake 1.3.创建用户 2.MySQL下载安装 2.1.创建软件下载目录 2.2.下载并上传到/server/tools 2.3.解压 2.4.安装 3.配置并启动 3.1.创建软链接 3.2.拷贝配置文件到/etc 3.3 ...
分类:
数据库 时间:
2020-04-08 20:52:05
阅读次数:
102
2.6 Advanced Error Reporting Capability (Optional)The Advanced Error Reporting definitions below are based on the PCI Express 2.1 Base specification. ...
分类:
其他好文 时间:
2020-04-08 16:08:10
阅读次数:
88
今天 学习 android多线程 atomininteger内存模型 以及自己项目的 视频播放功能 目前 对于android一些知识点 大家可以 去看今日头条的 android进阶小刘 这个博主 讲得很好 atomininteger内存模型 是啥 https://blog.csdn.net/fanr ...
分类:
移动开发 时间:
2020-04-08 11:50:26
阅读次数:
92
地址:https://leetcode-cn.com/problems/longest-common-prefix/ <?php /** * 编写一个函数来查找字符串数组中的最长公共前缀。 * * 如果不存在公共前缀,返回空字符串 ""。 * * 示例 1: * * 输入: ["flower","f ...
分类:
其他好文 时间:
2020-04-07 22:23:03
阅读次数:
85
$Bitwise\ Xor$:给定一个长度为$n$的整数序列$a$和一个整数$k$,求$a$有多少子序列,两两异或值大于等于$k$。$n \leq 3e5,k<2^{60}$ 题解:发现两两异或值的最小值一定是排序后相邻的两个数,首先把$a$排序,设f[i]表示以i结尾的序列个数。用$trie$树优 ...
分类:
其他好文 时间:
2020-04-07 22:19:05
阅读次数:
82
把序列排序后 问题转化为子序列两两之间的异或和大于等于k 用户$Trie$树优化$dp$ 因为不满足单调性所以不能用二分来优化 $ans=\sum_{i=1}^{n}n%i$ $ans=\sum_{i=1}^{n}(n n/i i)$ $ans=n^2 \sum_{i=1}^{n}i (n/i)$ ...
分类:
其他好文 时间:
2020-04-07 18:37:19
阅读次数:
97
CentOS 7镜像下载 官网下载链接:http://isoredirect.centos.org/centos/7/isos/x86_64/ step1: 进入下载页,选择阿里云站点进行下载 Actual Country 国内资源 Nearby Countries 周边国家资源 阿里云站点:htt ...
分类:
其他好文 时间:
2020-04-07 15:44:59
阅读次数:
189
QEMU出现VNC server running on 127.0.0.1:5900 这是因为在安装QEMU过程中 ./configure --prefix=/usr/local/qemu 执行后出现了 SDL support no 解决方法 sudo apt install libsdl2-dev ...
分类:
其他好文 时间:
2020-04-07 00:06:16
阅读次数:
164