Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Xg7U0-0008JG-Ud for pgsql-pkg-debian@arkaria.postgresql.org; Mon, 20 Oct 2014 07:34:25 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Xg7U0-0006gY-E3 for pgsql-pkg-debian@arkaria.postgresql.org; Mon, 20 Oct 2014 07:34:24 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Xg7Tz-0006gR-HK for pgsql-pkg-debian@postgresql.org; Mon, 20 Oct 2014 07:34:23 +0000 Received: from molabun.bluegap.ch ([148.251.76.228] helo=klepario.bluegap.ch) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1Xg7Tw-0000wE-JC for pgsql-pkg-debian@postgresql.org; Mon, 20 Oct 2014 07:34:21 +0000 Received: from [IPv6:2001:1620:f70:16:d250:99ff:fe26:7bb9] ([2001:1620:f70:16:d250:99ff:fe26:7bb9]) (AUTH: LOGIN markus@bluegap.ch, SSL: TLSv1/SSLv3,128bits,AES128-SHA) by klepario.bluegap.ch with ESMTPSA; Mon, 20 Oct 2014 09:34:16 +0200 id 0000000002DB03C0.5444BAF8.00005416 Message-ID: <5444BAF0.6020308@bluegap.ch> Date: Mon, 20 Oct 2014 09:34:08 +0200 From: Markus Wanner User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.0 Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="=_klepario.bluegap.ch-21526-1413790456-0001-2" To: Magnus Hagander , Josh Berkus CC: "pgsql-pkg-debian@postgresql.org" , Christoph Berg Subject: Re: Is this fixable? References: <544049A8.8000308@agliodbs.com> In-Reply-To: X-Pg-Spam-Score: -3.3 (---) X-Mailing-List: pgsql-pkg-debian List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Precedence: bulk Sender: pgsql-pkg-debian-owner@postgresql.org This is a MIME-formatted message. If you see this text it means that your E-mail software does not support MIME-formatted messages. --=_klepario.bluegap.ch-21526-1413790456-0001-2 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 10/17/2014 10:43 AM, Magnus Hagander wrote: > On Fri, Oct 17, 2014 at 12:41 AM, Josh Berkus 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 --=_klepario.bluegap.ch-21526-1413790456-0001-2 Content-Type: application/pgp-signature; name="signature.asc" Content-Transfer-Encoding: 7bit Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 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4 XSyKksceOujg8vUoACSiNH0MxstcNEgoLLxEs/SV+TW6/w6C30s7B6CEUJ9e8oUp qN4b4BzshaL7TcNn10eaze2zoBIMrmLf2qidfTwolT2w/r4rTtSkpDLQhAjzLeFC oFbznytJTMwvhTIArg4H29HnGx/j+/ZfpKAhSxzaLLndxQvw1pmunBnrDjfGliN+ wrfUS7lbasNWfZTM6jXrEgh6SzXfM0hrBMoq+ucKuBpwY0HroPFLRfkNClympHcc hS1sV7MWC260TbhEri8V2uiU+2lVymYKBF2viJfLJuONdu9Gism7WaxjYnkqBcc= =K+C1 -----END PGP SIGNATURE----- --=_klepario.bluegap.ch-21526-1413790456-0001-2--