From: Olivier Boissard <olivier.boissard@cerene.fr>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: pgsql-admin@postgresql.org
Subject: Re: call an external script from pgsql
Date: Fri, 03 Mar 2006 16:05:50 +0100
Message-ID: <44085B4E.7090102@cerene.fr> (raw)
In-Reply-To: <200603021739.45397.peter_e@gmx.net>
References: <440714EA.7010506@cerene.fr>
<200603021739.45397.peter_e@gmx.net>
Peter Eisentraut wrote:
>Am Donnerstag, 2. März 2006 16:53 schrieb Olivier Boissard:
>
>
>>I would like to call an external "shell" script from a trigger.
>>I use actually pgplsh. It works fine but there is a lot of problem with
>>special characters.
>>
>>
>
>Details please.
>
>
>
>>In addition I can not compile this language any more..
>>
>>
>
>Details please.
>
>
>
>>Do you know others solutions to call an external script?
>>Is it possible with python ?
>>
>>
>
>plperlu and plpythonu also work.
>
>
>
I created a trigger on a table that contains different log information.
This trigger launched a plsh function that execute a shell script to
print le new record a the table (with CUPS)
It worked fine but when I upgrated postgresql 7.4 -> 8.1 I was unable to
recompile properly pgplsh. So I copied old libraries and sql files from
a backup.
It works .
When I make a dump (pg_dump and psql ) the restoration fails because of
specific characters used in pgplsh. And I realized that there is poor
documentation on the web.
That is the reason why I consider now to change this system.
Olivier
Attachments:olivier.boissard.vcf (text/x-vcard, 239B) download
begin:vcard
fn:Olivier Boissard
n:Boissard;Olivier
org:Cerene Services
adr:;;3 rue Archimede;La Chapelle Saint Luc;;10000;France
email;internet:olivier.boissard@cerene.fr
tel;work:03.25.74.11.78
tel;fax:03.25.78.39.67
version:2.1
end:vcard
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-admin@postgresql.org
Cc: olivier.boissard@cerene.fr, peter_e@gmx.net
Subject: Re: call an external script from pgsql
In-Reply-To: <44085B4E.7090102@cerene.fr>
References: <440714EA.7010506@cerene.fr> <200603021739.45397.peter_e@gmx.net> <44085B4E.7090102@cerene.fr>
* 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