Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WDz5Z-0001pA-Jt for pgsql-bugs@arkaria.postgresql.org; Thu, 13 Feb 2014 16:24:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WDz5Y-0005uq-Vg for pgsql-bugs@arkaria.postgresql.org; Thu, 13 Feb 2014 16:24:37 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WDz5Y-0005uj-1s for pgsql-bugs@postgresql.org; Thu, 13 Feb 2014 16:24:36 +0000 Received: from sam.nabble.com ([216.139.236.26]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WDz5U-0004Tc-RI for pgsql-bugs@postgresql.org; Thu, 13 Feb 2014 16:24:35 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1WDz5S-00055x-U4 for pgsql-bugs@postgresql.org; Thu, 13 Feb 2014 08:24:31 -0800 Date: Thu, 13 Feb 2014 08:24:30 -0800 (PST) From: David Johnston To: pgsql-bugs@postgresql.org Message-ID: <1392308670918-5791875.post@n5.nabble.com> In-Reply-To: <20140212205302.2708.53160@wrigleys.postgresql.org> References: <20140212205302.2708.53160@wrigleys.postgresql.org> Subject: Re: BUG #9202: C Functions crash database too easily MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 1.8 (+) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org rotten wrote > While setting up a third party (commerical) provided C library functions > I've observed PostgreSQL 9.3.2 to be very sensitive to simple typos. > > 1) If you create the function with a different number of arguments than > the > C function expects, the create works just fine. However, every time you > do > a select, the database chokes: I would hope that the only typos you would be encountering in this use-case are file-name typos which would correctly generate "file not found" errors. Complain to the third-party that they are not making your installation easy enough because they have not provided fully tested scripts for you to run to setup their library - or ideally the capability to issue "CREATE EXTENSION". As Tom said, sometimes the solutions are procedural/human in nature and not something easily solved via technology; especially when portability is a concern as it is in this project. Not being a C programmer I cannot comment on how to improve usability in these situations but the fact remains that as a developer you should be testing these things in a controlled development environment; and as a user you should expect it to work (and be provided tests to verify that) and also to be able to install via file/extension name specification only. David J. -- View this message in context: http://postgresql.1045698.n5.nabble.com/BUG-9202-C-Functions-crash-database-too-easily-tp5791841p5791875.html Sent from the PostgreSQL - bugs mailing list archive at Nabble.com. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs