Re: Diff/Patch integration -> SQL cvs clone

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Diff/Patch integration -> SQL cvs clone
Дата
Msg-id 200111220344.fAM3ic811924@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: Diff/Patch integration -> SQL cvs clone  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы ALTER OR REPLACE feature  (Jean-Michel POURE <jm.poure@freesurf.fr>)
Список pgsql-hackers
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > Peter, should plsh be added to our supplied server-side programming
> > languages?  Seems like a major feature to me and to others as well.
> 
> While plsh is surely a cool hack, I've got considerable unease about
> making it into an officially supported feature.  The only reasons I can
> see for wanting to use it (over plpgsql, pltcl, plperl, etc) are
> inherently violations of transaction semantics.  Who's going to roll
> back your sendmail call when the calling transaction later aborts?
> What's going to ensure that the order of external effects has something
> to do with the serialization order that the database assigns to several
> concurrent transactions?
> 
> IMHO plsh is a great tool for shooting yourself in the foot (with a
> large-gauge firearm, in fact).  People who know what they're doing are
> welcome to use it ... but those sorts of people can find and install
> it for themselves.
> 
> Of course the same worries apply to the untrusted variants of pltcl,
> plperl, etc.  Perhaps we need to document the risks they carry.  But
> plsh hasn't even got the possibility of a trusted variant :-(

Yes, I see your point, but if you need to do something in the operating
system, like send mail, you are stuck with leaving transactions
semantics and security anyway.  If they have to leave those anyway, why
not give them simple shell scripts?

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Marc G. Fournier"
Дата:
Сообщение: Re: beta3
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: beta3