Check out example codes for "postgresql get table names". It will help you in understanding the concepts better.

Code Example 1

SELECT table_name
  FROM information_schema.tables
 WHERE table_schema='public'
   AND table_type='BASE TABLE';

Learn ReactJs, React Native from akashmittal.com