Re: Shell Script for Vacuum

From: Craig James <cjames(at)emolecules(dot)com>
To: rajivmehta0201 <rajivmehta0201(at)gmail(dot)com>
Cc: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Shell Script for Vacuum
Date: 2014-11-22 17:51:11
Message-ID: CAFwQ8revD9W1nzpma7DwUh_7iPUADRJoLcMFXZpFdxLfx9X5UQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Fri, Nov 21, 2014 at 5:23 AM, rajivmehta0201 <rajivmehta0201(at)gmail(dot)com>
wrote:

> Hi,
>
> I am running this script but it giving error.
>
> vacuumdb: could not connect to database postgres: could not connect to
> server: No such file or directory
> Is the server running locally and accepting
> connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
>
> Can you please help me on this?
>
>
Try using the server's name rather than "localhost" or the default, for
example:

psql -U postgres -h myservername

If that works, it means your pg_hba.conf isn't configured correctly for
"localhost".

Craig

>
>
>
> --
> View this message in context:
> http://postgresql.nabble.com/Shell-Script-for-Vacuum-tp5765414p5827854.html
> Sent from the PostgreSQL - admin mailing list archive at Nabble.com.
>
>
> --
> Sent via pgsql-admin mailing list (pgsql-admin(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-admin
>

--
---------------------------------
Craig A. James
Chief Technology Officer
eMolecules, Inc.
---------------------------------

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message fahad basheer 2014-11-26 07:43:18 Postgresql connection Error
Previous Message Raghavendra 2014-11-22 11:49:25 Re: Shell Script for Vacuum