From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Peter Eisentraut <peter_e(at)gmx(dot)net>, Friedrich Dodt <friedrich(dot)dodt(at)efonds24(dot)de>, pgsql-interfaces(at)postgresql(dot)org |
Subject: | Re: Where is PLbash ?? |
Date: | 2002-06-25 18:19:34 |
Message-ID: | 200206251819.g5PIJYP04567@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-interfaces |
Tom Lane wrote:
> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> >> Nonsense --- a quick system() call in plperlu or pltclu can do it
> >> just as well, or even launch a shell script if you insist on coding
> >> your mistakes in sh...
>
> > Well, if they are going to call system() from perl, why don't we just
> > give them PL/sh and they can do it directly.
>
> There's a difference between making a dangerous thing possible and
> encouraging people to do it. But I'll wait and see what Peter thinks.
I think Peter agrees with you. My point is that we can PL/sh and
document it's limitations. With perl, the ability is there but it isn't
obviouis why it is a problem. Also, there must be some things you can
do in PL/sh that aren't transaction problems.
In my view, there are lots of people who need shell access from
PostgreSQL, and they are naturally going to try to use PL/sh. When they
do, we can explain the limitations. I don't see how not giving them
PL/sh prevents them from doing transaction-unsafe things.
Usually, people using PL/sh want to do something that is
transaction-unsafe by nature.
Also, there is a wiz-bang aspect to being able to do shell scripts in
the backend that has a certain "marketing" value.
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From | Date | Subject | |
---|---|---|---|
Next Message | Steve Howe | 2002-06-25 18:47:54 | Re: Where is PLbash ?? |
Previous Message | alex | 2002-06-25 18:16:25 | Re: Where is PLbash ?? |