-- 设置时区为北京时间
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');