unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Mauger <michael@mauger.com>
To: "Simen Heggestøyl" <simenheg@gmail.com>,
	"sunshavi@fastmail.fm" <sunshavi@fastmail.fm>
Cc: "25236@debbugs.gnu.org" <25236@debbugs.gnu.org>
Subject: bug#25236: 26.0.50; sql-postgres not working on master
Date: Wed, 4 Jan 2017 03:16:00 +0000 (UTC)	[thread overview]
Message-ID: <1397003198.5767161.1483499760212@mail.yahoo.com> (raw)
In-Reply-To: <1483121873.22754.0@smtp.gmail.com>

On Friday, December 30, 2016 1:17 PM, Simen Heggestøyl <simenheg@gmail.com> wrote:
>
>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
>


Just got back after the holiday. Makes sense that could be a problem. I'm getting ready to push a change related to completing-read so let me take a look.

Thanks for staying on top of this...

-- 
MICHAEL MAUGER // FSF Member // GNU Emacs sql-mode maintainer // GNU Linux, GNU Emacs





  reply	other threads:[~2017-01-04  3:16 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-20  3:30 bug#25236: 26.0.50; sql-postgres not working on master sunshavi
2016-12-30 18:17 ` Simen Heggestøyl
2017-01-04  3:16   ` Michael Mauger [this message]
2017-02-18 17:01     ` Simen Heggestøyl
2017-05-04 19:57       ` erreina
2017-07-29 16:26     ` Simen Heggestøyl
2017-07-29 17:15       ` bug#25236: new mail address (was: bug#25236: 26.0.50; sql-postgres not working on master) andrés ramírez
2017-08-07  1:01       ` bug#25236: 26.0.50; sql-postgres not working on master Michael Mauger
     [not found]         ` <a5m7xFNQkeRpgX_47Xz0JyMFjnO9mnKQXGyJcUcNrsv4THBUs3MB-WRw95G3uMKydbmO6iqKmCjp Nw-fgmo4vg==@protonmail.com>
2017-08-10 21:26           ` Simen Heggestøyl
2017-09-02 13:09             ` Eli Zaretskii
2017-09-05  0:18               ` Michael Mauger
     [not found]                 ` <Q9cdamlTWxEGS1Mjo7CPiTh35FxxlG4lWUukF0rR8xem_cIYrZKxQNoZtk0gBkPL393mVJg0kbSA 1hMZFvOoTQ==@protonmail.com>
2017-09-05 18:36                   ` Simen Heggestøyl

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1397003198.5767161.1483499760212@mail.yahoo.com \
    --to=michael@mauger.com \
    --cc=25236@debbugs.gnu.org \
    --cc=simenheg@gmail.com \
    --cc=sunshavi@fastmail.fm \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).