It’s worth noting that most of the commands in the above tutorial
assume you are running as the database superuser, this is required to
run the setup script but then you can grant permission for an ordinary
user for the search tables (in the public schema names starting pg_ts_)
When developing Drupal one often needs to pull recent copies of the live database into the dev environment.
Loading a dump into the dev database will update any existing tables, add any new ones - but it won't remove tables from the dev environment that re not in live.
This causes problems with Drupal as module install and update hooks may need to create tables which don't yet exist on live.
My solution which assumes you have .my.cnf set up to provide login locally is below.
