| From: | joseph speigle <joe(dot)speigle(at)jklh(dot)us> |
|---|---|
| To: | pgsql-novice(at)postgresql(dot)org |
| Subject: | Re: Psql syntax run within java code |
| Date: | 2004-05-07 01:03:12 |
| Message-ID: | 20040507010312.GA21334@www.sirfsup.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-novice |
I don't know how old this message is, but looks like it needs a username to connect as? Just try
psql -d car -U username -c 'select id from pegs1';
There was also a post yesterday about being able to put the pass in a .pgpass file, if it would fail for lack of a password
> strQueryForExportDump = "psql -d car -c 'select id from pegs1' ";
> This is the output I see from the log:
>
> dump str is psql -d car -c 'select id from pegs1;'
> cmd out1 is
> err stream is psql: warning: extra command-line argument "from" ignored
> psql: warning: extra command-line argument "pegs1;'" ignored
> psql: FATAL: user "id" does not exist
>
> Please help.
>
> Peggy
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
--
joe speigle
www.sirfsup.com
| From | Date | Subject | |
|---|---|---|---|
| Next Message | David Cruz | 2004-05-07 04:56:37 | Hi! (and a question) |
| Previous Message | Oliver Fromme | 2004-05-06 13:22:22 | Re: Hey Mr. PG! End my transaction, BUT KEEP MY CURSORS OPEN!! |