Re: [MASSMAIL]Re: pg_dumpall: could not connect to database: FATAL

From: gilberto(dot)castillo(at)etecsa(dot)cu
To: Pepe TD Vo <pepevo(at)yahoo(dot)com>
Cc: Steve Crawford <scrawford(at)pinpointresearch(dot)com>, Shreeyansh Dba <shreeyansh2014(at)gmail(dot)com>, Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: [MASSMAIL]Re: pg_dumpall: could not connect to database: FATAL
Date: 2019-02-26 21:14:55
Message-ID: c789b7501916d7d42a8d49687459c59e@etecsa.cu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin


Is possible that postgres it is running for other port? Check!!

El 2019-02-26 16:09, Pepe TD Vo escribió:
> I typo PORT without =
>
> yes, I did reload postgres after make a configuration change.
>
> v/r,
>
> Bach-Nga
>
> No one in this world is pure and perfect. If you avoid people for
> their mistakes you will be alone. So judge less, love and forgive
> more.
> To call him a dog hardly seems to do him justice though in as much as
> he had four legs, a tail, and barked, I admit he was, to all outward
> appearances. But to those who knew him well, he was a perfect
> gentleman (Hermione Gingold)
> **Live simply **Love generously **Care deeply **Speak kindly.
> *** Genuinely rich *** Faithful talent *** Sharing success
>
> On Tuesday, February 26, 2019 3:55 PM, Steve Crawford
> <scrawford(at)pinpointresearch(dot)com> wrote:
>
> Some random observations that may or may not be of use.
>
> Are you making sure to reload PostgreSQL whenever you make a config
> change?
>
>> I also found pg_hba.conf on both folders
>> /var/lib/pgsql/11/data/pg_hba.conf &
>> /var/lib/pgsql/data/pg_hba.conf). I modified it as above and the
>> script is not working even run from the command prompt.
>
> To find out which pg_hba.conf file your running database is using run:
>
> show all;
>
> Then search for hba_file or view directly by:
>
> select setting from pg_settings where name = 'hba_file';
>
> You can verify your pg_hba.conf settings with (as user postgres):
>
> select * from pg_hba_file_rules ;
>
>> # export HOSTNAME=hostname
>>
>> # export USERNAME=postgres
>> # export DATABASE=postgres
>> # export PORT 5432
>> # pg_dump -v -p $PORT -U $USERNAME -d $DATABASE -f
>> /tmp/postgresbakup.sql
>
> Looks like you are missing the "=" between PORT and 5432
>
> Cheers,
> Steve

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message David G. Johnston 2019-02-26 21:27:31 Re: [MASSMAIL]Re: pg_dumpall: could not connect to database: FATAL
Previous Message Pepe TD Vo 2019-02-26 21:09:49 Re: [MASSMAIL]Re: pg_dumpall: could not connect to database: FATAL