Check out example codes for "postgresql db owner change". It will help you in understanding the concepts better.

Code Example 1

ALTER DATABASE target_database OWNER TO new_onwer;

Learn ReactJs, React Native from akashmittal.com