pg.ddx.io  pgsql-pkg-debian@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Markus Wanner <markus@bluegap.ch>
To: Magnus Hagander <magnus@hagander.net>
To: Josh Berkus <josh@agliodbs.com>
Cc: pgsql-pkg-debian@postgresql.org <pgsql-pkg-debian@postgresql.org>
Cc: Christoph Berg <myon@debian.org>
Subject: Re: Is this fixable?
Date: Mon, 20 Oct 2014 09:34:08 +0200
Message-ID: <5444BAF0.6020308@bluegap.ch> (raw)
In-Reply-To: <CABUevEyOVaZuc8uCDmqcZXOjnm7k3vnSG=NgiNV-QWm9EZ7fsA@mail.gmail.com>
References: <544049A8.8000308@agliodbs.com>
	<CABUevEyOVaZuc8uCDmqcZXOjnm7k3vnSG=NgiNV-QWm9EZ7fsA@mail.gmail.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-pkg-debian>

On 10/17/2014 10:43 AM, Magnus Hagander wrote:
> On Fri, Oct 17, 2014 at 12:41 AM, Josh Berkus <josh@agliodbs.com> wrote:
>> Is there any possible way to fix the command database
>> so that users don't get that error message?

Looking at the command-not-found sources, there doesn't seem to be any
kind of rule system or exceptions. It's just an index (not even a stupid
one, correcting spelling errors and such. But if you ask for pg_ctl,
that's a perfect match.)

Extending the search paths to include /usr/lib/postgresql/X.Y/bin in the
index wouldn't help, as these directories usually aren't in the PATH.
(And postgresql-X.Y is likely to be installed already, in that situation.)

What command-not-found could probably do instead is taking those
(installed) executables into account and propose to use them.

> That does indeed sound like a packaging issue with postgres-xc. It
> shouldn't expose a non-versioned pg_ctl, the same way that regular
> PostgreSQL doesn't.

That sounds like a good idea independent of this issue. Ideally, making
Postgres-XC (and Postgres-XL...) co-installable with vanilla Postgres
versions. Also seems like a substantial amount of work, though.

>> to date I've witnessed four postgres beginners then trying to
>> install postgres-xc and really messing up their servers.

Granted, the advice is unfortunate. However, given postgres-xc conflicts
with postgresql-common, the package manager would have to ask about
uninstalling postgresql-common and all dependent Postgres packages. That
would raise a couple of red flags for me. So I'm also a bit surprised
people manage to screw their systems that way... AKA: It ain't broken
*that* badly.

Another, simplistic idea: Given these packages currently conflict, could
(and should) postgresql-common provide a wrapper or dummy /usr/bin/pg_ctl?

Regards

Markus Wanner

Attachments:

  signature.asc (application/pgp-signature, 1.5K) download

view thread (10+ messages)  latest in thread

Message-ID: <5444BAF0.6020308@bluegap.ch>
Permalink:  ../5444BAF0.6020308@bluegap.ch/
Also on:    postgresql.org/message-id/5444BAF0.6020308@bluegap.ch

 · 

reply

Reply instructions:

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

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-pkg-debian@postgresql.org
  Cc: markus@bluegap.ch, magnus@hagander.net, josh@agliodbs.com, myon@debian.org
  Subject: Re: Is this fixable?
  In-Reply-To: <5444BAF0.6020308@bluegap.ch>
  References: <544049A8.8000308@agliodbs.com> <CABUevEyOVaZuc8uCDmqcZXOjnm7k3vnSG=NgiNV-QWm9EZ7fsA@mail.gmail.com> <5444BAF0.6020308@bluegap.ch>

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

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox