pg_dumpall: improve DB role setting order
Follow-up to 6beb8eb3. In addition to ordering by the role and database, order the settings themselves to minimize spurious diffs. As an example, a role with both search_path and statement_mem set could be dumped in two ways: ALTER ROLE role_setting_test_2 IN DATABASE regression SET search_path TO common_schema; ALTER ROLE role_setting_test_2 IN DATABASE regression SET statement_mem TO '150MB'; or ALTER ROLE role_setting_test_2 IN DATABASE regression SET statement_mem TO '150MB'; ALTER ROLE role_setting_test_2 IN DATABASE regression SET search_path TO common_schema; Now they are dumped in alphabetical order.
Showing
想要评论请 注册 或 登录