Re: pg_dumpall: could not connect to database "template1": FATAL: - Mailing list pgsql-general

From John R Pierce
Subject Re: pg_dumpall: could not connect to database "template1": FATAL:
Date
Msg-id 2cff908b-9480-abd2-d160-e7bfd2658c8b@hogranch.com
Whole thread Raw
In response to Re: pg_dumpall: could not connect to database "template1": FATAL:  (Adrian Klaver <adrian.klaver@aklaver.com>)
List pgsql-general
On 11/13/2016 9:13 AM, Adrian Klaver wrote:

For example: How can I restart the SQL server? Oh sorry we can't help
you with this … ?

https://www.postgresql.org/docs/9.5/static/app-pg-ctl.html

the best way of doing this depends on the way postgres was installed, and varies by OS/distribution.    for instance, on RHEL/CentOS <= 6,

    service postgresql-X.Y restart

on RHEL/CentOS 7

    systemctl restart postgresql-X.Y

(both these run by root, or via sudo)


-- 
john r pierce, recycling bits in santa cruz

pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: pg_dumpall: could not connect to database "template1": FATAL:
Next
From: Oleg Bartunov
Date:
Subject: Re: Why is this query not using GIN index?