Re: Runnning operating system commands from an SPL

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: Runnning operating system commands from an SPL
Date: 2010-06-17 15:15:32
Message-ID: 4130.1276787732@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Andreas Kretschmer <akretschmer(at)spamfence(dot)net> writes:
> Atif Jung <atifjung(at)gmail(dot)com> wrote:
>> How do I run an operating system command from a stored procedure? In INFORMIX I
>> would use the SYSTEM command, can't see to find the equivalent for POSTGRES.

> You can use a un-trusted programming language, for instance pl/perlu or
> plsh.

Keep in mind that more often than not the answer is "you shouldn't do
that". Commands run in that way will execute as the postgres user,
not as your client user.

regards, tom lane

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Atif Jung 2010-06-17 15:19:20 Re: Runnning operating system commands from an SPL
Previous Message A B 2010-06-17 15:14:24 How to combine many rows into one row (by concatenation?) ?