From: | Nicolas Boretos <nicolasb(at)maich(dot)gr> |
---|---|
To: | Patrick Nelson <pnelson(at)neatech(dot)com> |
Cc: | "PostgreSQL List (E-mail)" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: pgtcl way of specifying a user |
Date: | 2003-02-14 07:36:53 |
Message-ID: | 3E4C9C95.2000906@maich.gr |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Patrick Nelson wrote:
> I have cron and init scripts that call my PostgreSQL db for their data.
> This worked fine until I moved the sql server off the system. Then I had to
> specify the actual host and user in the case of pg_dumpall called from a tcl
> script. Cron wasn't grabbing the proper variables of PGHOST PGUSER I guess.
> No problem, just added them to the command of pg_dumpall and the script
> works fine
>
> I have another script that uses libpgtcl and this script runs as part of
> init level 3 or level 5. It also don't connect to the database by utilizing
> any variables in a .bash_profile config file. I can not figure out how to
> make the connection. I used:
>
> pg_connect $PGDBName -host $PGHostName
Try pg_connect $PGDBName -host $PGHostName -username Bob -password Secret
regards,
nicolas boretos
>
> and this works, but I don't know what user it will use as part of init and I
> can not figure out how to define a user. Can anyone shad some light on my
> problems. IWAI
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>
> .
>
From | Date | Subject | |
---|---|---|---|
Next Message | jose antonio leo | 2003-02-14 08:51:58 | uppercase = lowercase |
Previous Message | Tom Lane | 2003-02-14 04:45:29 | Re: index scan with index cond on first column doesn't recognize sort order of second column |