The .sql is a plain text SQL backup
that should be restored with psql.

It consists of the census and staging schemas.
These are built as part of exercises in the book so not necessary unless you wish to start 
in the middle of the book.  

To restore:
CREATE DATABASE postgresql_book;
\connect postgresql_book
\i postgresql_book.sql