GNU bug report logs -
#25236
26.0.50; sql-postgres not working on master
Previous Next
Reported by: sunshavi <at> fastmail.fm
Date: Tue, 20 Dec 2016 03:32:01 UTC
Severity: normal
Found in version 26.0.50
Done: Simen Heggestøyl <simenheg <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
This bug seems to be caused by a change I made in
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=24646, making
`sql-postgres` able to complete the database name by looking at the
result of `psql -ltX`.
psql exits with status code 2 if the connection to the server went
bad, for instance if permissions are missing [1].
I think we can fix this by being more lax in
`sql-postgres-list-databases`, and just don't provide any completions
should the command fail. Then we'd also need to change the value of
the `REQUIRE-MATCH` parameter to `completing-read` on line 2966, since
requiring a match when there are no completions would make it
impossible to continue.
What do you think, Michael?
-- Simen
[1]
https://www.postgresql.org/docs/current/static/app-psql.html#AEN98634
This bug report was last modified 7 years and 254 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.