From: | "Viorel Dragomir" <bc(at)vio(dot)ro> |
---|---|
To: | <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: pg_dump "feature" |
Date: | 2003-07-16 14:43:54 |
Message-ID: | 00be01c34ba8$aec682e0$0600a8c0@fix.ro |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Thanks for the answer[s].
Interesting that when i launch the command from php through exec() it works
fine even on pg_dump 7.3.x
I guess this feature works only on [shell] command line.
This is the php code:
$tmp_fname = tempnam("/tmp", "file-");
$f = fopen($tmp_fname, "w");
fwrite($f, "$username\n".USER_DB_PASSWORD."\n");
fclose($f);
$cmd = "pg_dump $add_cmd $export $add_table < $tmp_fname";
$result = system($cmd);
unlink($tmp_fname);
----- Original Message -----
From: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Viorel Dragomir" <bc(at)vio(dot)ro>
Cc: <pgsql-sql(at)postgresql(dot)org>
Sent: Wednesday, July 16, 2003 5:29 PM
Subject: Re: [SQL] pg_dump "feature"
> "Viorel Dragomir" <bc(at)vio(dot)ro> writes:
> > In 7.3.x the pg_dump accepts the password only from stdin. The user must
en=
> > ter his password.
> > It's a feature or a bug, because i can't see any logic in this
behaviour.
>
> It's a feature ... or at least an intentional change.
>
> If you want to keep your password in a file, see the ~/.pgpass feature.
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: the planner will ignore your desire to choose an index scan if your
> joining column's datatypes do not match
From | Date | Subject | |
---|---|---|---|
Next Message | floyds | 2003-07-16 15:04:39 | Re: column doesn't get calculated - updated |
Previous Message | Gary Stainburn | 2003-07-16 14:39:14 | Re: numerical sort on mixed alpha/numeric data |