如果调整临时文件限制temp_file_limit

简介:

temp_file_limit的缺省值为10GB(10000000,单位kB),如果因为创建索引、运行大查询,可能超过此限制:

  CREATE UNIQUE INDEX ix_gl_balance_1 ON t_gl_balance USING btree (corp_id, acct_year, acct_period, subject_id, curr_id);
ERROR:  temporary file size exceeds temp_file_limit (10000000kB)

可以临时修改。方法如下:

对于PPAS:

rds_set_conf_for_all_roles('temp_file_limit','100000000');

对于PG:

alter role all set temp_file_limit = 100000000

注意,作为临时操作后,需要把它再改回来,避免误用临时空间导致占满磁盘。

目录
相关文章
|
11月前
|
Linux
删除大量文件和目录时报错:Argument list too long
这个目录下的文件数量我惊呆了。40W+ 的文件目录数量,直接报错了。
76 1
|
Ubuntu JavaScript
ubuntu 文件监视数量 Error: ENOSPC: System limit for number of file watchers reached, watch‘所在文件路径‘
vue 运行执行 npm run dev | * Error: ENOSPC: System limit for number of file watchers reached, watch’所在文件路径’ 最简单的命令 沾走就能用
163 0
ubuntu 文件监视数量 Error: ENOSPC: System limit for number of file watchers reached, watch‘所在文件路径‘
Can‘t read file : End of file found 文件:txn_current、current svn无法正常读取文件
Can‘t read file : End of file found 文件:txn_current、current svn无法正常读取文件
Can‘t read file : End of file found 文件:txn_current、current svn无法正常读取文件