Re: .pgpass does not work for createlang - Mailing list pgsql-bugs

From Michael Fuhr
Subject Re: .pgpass does not work for createlang
Date
Msg-id 20051011180257.GA94029@winnie.fuhr.org
Whole thread Raw
In response to .pgpass does not work for createlang  ("John Shin" <jshin@multifamilytechsolutions.com>)
List pgsql-bugs
On Mon, Oct 10, 2005 at 06:25:59PM -0700, John Shin wrote:
> It seems that for v8.0.4 the createlang will not take .pgpass inputs and
> always prompts for password.  Is this broken for the new version?  Well,
> now I have to type in the password for my database script.
>
> -bash-3.00$ createdb test -h localhost -U postgres
> CREATE DATABASE

Is that the exact command you ran?  As shown it should fail with a
syntax error because the options are in the wrong place:

% createdb test -h localhost -U postgres
createdb: too many command-line arguments (first is "localhost")
Try "createdb --help" for more information.

> -bash-3.00$ createlang plpgsql test -h localhost -U postgres
> Password:

Likewise:

% createlang plpgsql test -h localhost -U postgres
createlang: too many command-line arguments (first is "-h")
Try "createlang --help" for more information.

Use the --help option or consult the createlang documentation to see
the correct order of options and arguments.  It works fine here with
.pgpass if the syntax is correct; have you run "createlang --version"
to verify that you're running the 8.0.4 version?

--
Michael Fuhr

pgsql-bugs by date:

Previous
From: Richard Huxton
Date:
Subject: Re: BUG #1954: Bug in to_date('09-10-2005', 'dd-mm-yyyy')
Next
From: Martin Pitt
Date:
Subject: My investigations of the postmaster Bus error