List of databases
                  
                  
                     Name    | Owner | Encoding |  Collate   |   Ctype    | Access privileges 
                  
                  
                  -----------+-------+----------+------------+------------+-------------------
                  
                  
                   template0 | user  | UTF8     | en_US.utf8 | en_US.utf8 | =c/user          +
                  
                  
                             |       |          |            |            | user=CTc/user
                  
                  
                   template1 | user  | UTF8     | en_US.utf8 | en_US.utf8 | =c/user          +
                  
                  
                             |       |          |            |            | user=CTc/user
                  
                  
                   user      | user  | UTF8     | en_US.utf8 | en_US.utf8 | 
                  
                  
                  
                  
                  
                  Теперь есть template0,template1 и user. Как восстановить postgres? Не могу в инете найти ответа
                  
                  
                
Базу Вы удалили, а не таблицу. CREATE DATABASE postgres WITH TEMPLATE = template0; Под superuser (postgres), конечно.
Обсуждают сегодня