Hi, Whenever you restart pgadmin, it will ask you for a master password if local os storage is not available. There you will get the option to Reset Master password. Note - On resetting master password all saved passwords will be deleted.
Thanks, Yogesh Mahajan EnterpriseDB