pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Johnston <polobo@yahoo.com>
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #9202: C Functions crash database too easily
Date: Thu, 13 Feb 2014 08:24:30 -0800 (PST)
Message-ID: <1392308670918-5791875.post@n5.nabble.com> (raw)
In-Reply-To: <20140212205302.2708.53160@wrigleys.postgresql.org>
References: <20140212205302.2708.53160@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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-tp5791841p579...
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



view thread (4+ messages)  latest in thread

Message-ID: <1392308670918-5791875.post@n5.nabble.com>
Permalink:  ../1392308670918-5791875.post@n5.nabble.com/
Also on:    postgresql.org/message-id/1392308670918-5791875.post@n5.nabble.com

 · 

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-bugs@postgresql.org
  Cc: polobo@yahoo.com
  Subject: Re: BUG #9202: C Functions crash database too easily
  In-Reply-To: <1392308670918-5791875.post@n5.nabble.com>
  References: <20140212205302.2708.53160@wrigleys.postgresql.org> <1392308670918-5791875.post@n5.nabble.com>

* 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