Fix the FATAL error of autovacuum on template0 (#10920)
The autovacuum worker for template0 would FATAL because Gp_session_role is still the dispatcher role with below message. 2020-09-29 21:20:02.686827 CST,,,p19902,th-881792832,,,,0,,,seg2,,,,sx1,"FATAL","57P03"," connections to primary segments are not allowed","This database instance is running as a primary segment in a Greenplum cluster and does not permit direct connections."," To force a connection anyway (dangerous!), use utility mode.",,,,,0,,"postinit.c",1151, Fixing this by setting Gp_session_role as the utility role.
Showing
想要评论请 注册 或 登录