Check out example codes for "update database collation in postgresql". It will help you in understanding the concepts better.

Code Example 1

update pg_database set datcollate='POSIX.UTF-8', datctype='POSIX.UTF-8' where datname='databasename';

Learn ReactJs, React Native from akashmittal.com