Re: Alternative to psql -c ?

From: James Le Cuirot <chewi(at)aura-online(dot)co(dot)uk>
To: hubert depesz lubaczewski <depesz(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Alternative to psql -c ?
Date: 2014-06-26 09:46:34
Message-ID: 20140626104634.32d2404b@red.yakaraplc.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, 25 Jun 2014 17:30:15 +0200
hubert depesz lubaczewski <depesz(at)gmail(dot)com> wrote:

> On Wed, Jun 25, 2014 at 5:18 PM, James Le Cuirot
> <chewi(at)aura-online(dot)co(dot)uk> wrote:
>
> > > Also - I have no idea what "peer authentication" has to do with Pg
> > > gem - care to elaborate? The gem is for client, and authentication
> > > happens in server, so ... ?
> > Right but peer authentication is all to do with the operating system
> > user that the client is connecting from. In the case of chef-client,
> >
>
> Any reason why you can't reconfigure Pg to allow root connections to
> postgres account?

I had considered this. In practise, the "end user" would also need to
be added. The postgresql cookbook currently doesn't generate the
pg_ident.conf file but it could.

However, this would still require the installation of build-essential
and Tom Lane has pointed out that using PQexec is flawed anyway so
maybe I could use stdin after all.

James

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Merlin Moncure 2014-06-26 12:23:02 Re: Alternative to psql -c ?
Previous Message James Le Cuirot 2014-06-26 09:42:57 Re: Alternative to psql -c ?