Can you do the following:
1. Open up the buffer and attempt to run a query.
2. Run :DBGetOpton, then cut and paste the output provided.
3. Run :DBSetOption display_cmd_line=1, then re-run your query and
paste the full output.
That should get us started.
Dave
Hi Dave, thanks for your support.
As requested here is the full output of both commands:
http://vim.pastey.net/125871
http://vim.pastey.net/125872
I used a pastey to save everyone more than 200 lines of settings. In
case a solution can be found (I really hope so) I will add to this
thread the meaningful data for completeness.
Mariano.
...
> Hi Mikalai, thanks for your answer. Your tip was very useful to point
> me in a good direction.
> Turns out there is no easy way to pass a password as a command line
> parameter to psql. You can use -W switch to make psql ask for it but
> you will have to type it as a second step. I finally created a
> ~/.pgpass file as suggested here [1] and now dbext is not asking the
> pass anymore.
Correct. PGSQL does not allow passwords to be set from the command
line which is the reason dbext does not provide it.
> What's funny is that this started happening yesterday
> with a fresh pgsql database. I can recall at least three other pgsql
> databases I had queried with dbext and none of them prompted for the
> password. Don't know why.
Mariano, I can only image someone had already set those settings in
the database you were connecting to.
> [1] http://www.postgresql.org/docs/current/interactive/libpq-pgpass.html
As you have pointed out, that is the only way to control access to the database.
I am glad you are connecting and running again.
Dave
You can put the password in environment variable PGPASSWORD.
http://www.postgresql.org/docs/8.4/interactive/libpq-envars.html
--
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Gregory H. Margo
gmargo at yahoo/com, gmail/com, pacbell/net; greg at margofamily/org