temp
This commit is contained in:
13
scripts/set_timezone.sql
Normal file
13
scripts/set_timezone.sql
Normal file
@@ -0,0 +1,13 @@
|
||||
-- 设置时区为北京时间
|
||||
ALTER SYSTEM SET timezone = 'Asia/Shanghai';
|
||||
|
||||
ALTER SYSTEM SET log_timezone = 'Asia/Shanghai';
|
||||
|
||||
-- 重新加载配置
|
||||
SELECT pg_reload_conf ();
|
||||
|
||||
-- 验证时区设置
|
||||
SELECT name, setting
|
||||
FROM pg_settings
|
||||
WHERE
|
||||
name IN ('timezone', 'log_timezone');
|
||||
Reference in New Issue
Block a user