Re: How to stop script executions - Mailing list pgsql-general

From David G. Johnston
Subject Re: How to stop script executions
Date
Msg-id CAKFQuwYb_s3f-WTVbjrMrjhH_YQ0e=cB7HCGnaxF4J4LDegGVw@mail.gmail.com
Whole thread Raw
In response to How to stop script executions  (Dev Kumkar <devdas.kumkar@gmail.com>)
Responses Re: How to stop script executions  (Alex Ignatov <a.ignatov@postgrespro.ru>)
Re: How to stop script executions  (Dev Kumkar <devdas.kumkar@gmail.com>)
List pgsql-general
On Tue, Jul 26, 2016 at 8:53 AM, Dev Kumkar <devdas.kumkar@gmail.com> wrote:
Hello Experts,

I want to have my postgreSQL database to only execute SQLs and avoid execution of perl and python script executions.

Can you please suggest ways to achieve this?


The way to go about prohibiting their usage altogether is specific to your installation method.  But by default those languages are not installed into newly created databases and only a superuser can "CREATE EXTENSION" so without superuser intervention uses in the database will be unable to create functions in those languages.  If that is an insufficient level of prevention you would have to somehow get your installation of PostgreSQL to not include those core extensions.  I'm pretty sure that during compilation you ​can do this.  For packaged distributions I do not know what all is involved (i.e., what you have to choose to not install).


David J.

pgsql-general by date:

Previous
From: Sameer Kumar
Date:
Subject: Re: How to stop script executions
Next
From: Alex Ignatov
Date:
Subject: Re: How to stop script executions