Settings

Just use 0.0.0.0/0:

hostallall0.0.0.0/0            md5

Make sure the listen_addresses in postgresql.conf allows all incoming connections as well:

listen_addresses='*'

After the changes you have to reload the configuration (as a superuser):

SELECT pg_reload_conf();

Tables

PostgreSQL show tables using psql

If you are using psql, you can use the following command to show tables in the current database.

\\dt

For example, you can connect to the dvdrental database and show all tables as follows:

Server [localhost]:
Database [postgres]: dvdrental
Port [5432]:
Username [postgres]:
psql (9.4.2)
 
dvdrental=# \\dt
             List of relations
 Schema |     Name      | Type  |  Owner
--------+---------------+-------+----------
 public | actor         | table | postgres
 public | address       | table | postgres
 public | category      | table | postgres
 public | city          | table | postgres
 public | country       | table | postgres
 public | customer      | table | postgres
 public | film          | table | postgres
 public | film_actor    | table | postgres
 public | film_category | table | postgres
 public | inventory     | table | postgres
 public | language      | table | postgres
 public | payment       | table | postgres
 public | persons       | table | postgres
 public | rental        | table | postgres
 public | staff         | table | postgres
 public | store         | table | postgres
(16 rows)
 

PostgreSQL show tables using pg_catalog schema

Another way to show tables in PostgreSQL is to use SELECT statement to query data from the PostgreSQL catalog as follows:

SELECT
 *
FROM
 pg_catalog.pg_tables
WHERE
 schemaname != 'pg_catalog'
AND schemaname != 'information_schema';