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

Code Example 1

ALTER TABLE ONLY users ALTER COLUMN lang SET DEFAULT 'en_GB';

Learn ReactJs, React Native from akashmittal.com