title: How to rename a database from psql in metabase
body: <p>We have a metabase server that is linked to a psql server. When we perform qa testing or development testing we rename its database name from prod to qa or dev. </p>
  
  <p>For other applications we just alter the name of the database via psql, but it does not have  [Database name:] among the parameters in table </p>
  
  <p>Is it possible to set the new database-name over psql? 
  <a href="https://i.stack.imgur.com/Sh82M.png" rel="nofollow noreferrer">metabase screenshot</a></p>
  
  <pre><code>select * from metabase_database;
  </code></pre>
  
  <p>-[ RECORD 1 ]---------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</p>
  
  <pre><code>id                          | 2
  created_at                  | 2019-05-19 08:25:49.063+00
  updated_at                  | 2019-05-19 08:25:49.177+00
  name                        | PROD
  description                 |
  details                     | **********************************
  engine                      | postgres
  is_sample                   | f
  is_full_sync                | t
  points_of_interest          |
  caveats                     |
  metadata_sync_schedule      | 0 50 * * * ? *
  cache_field_values_schedule | 0 50 0 * * ? *
  timezone                    | UTC
  is_on_demand                | f
  options                     |
  
  </code></pre>