pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: hubert depesz lubaczewski <depesz@depesz.com>
To: Nelson Gonzaga <ngonzaga@yahoo.com>
Cc: pgsql-admin@lists.postgresql.org <pgsql-admin@lists.postgresql.org>
Subject: Re: Hide function source
Date: Mon, 11 Oct 2021 09:40:15 +0200
Message-ID: <20211011074015.GA31728@depesz.com> (raw)
In-Reply-To: <1331401808.1491628.1633855833151@mail.yahoo.com>
References: <1331401808.1491628.1633855833151.ref@mail.yahoo.com>
	<1331401808.1491628.1633855833151@mail.yahoo.com>

On Sun, Oct 10, 2021 at 08:50:33AM +0000, Nelson Gonzaga wrote:
> Dear,How do I hide a function source code from all users except
> superuser, but all can execute it?Thanks,NelsonĀ 

Write it in something else than sql or plpgsql, and use external file.

But, if your function source is security vulnerability, then don't write
it that way.

Best regards,

depesz






view thread (4+ messages)

Message-ID: <20211011074015.GA31728@depesz.com>
Permalink:  ../20211011074015.GA31728@depesz.com/
Also on:    postgresql.org/message-id/20211011074015.GA31728@depesz.com

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: depesz@depesz.com, ngonzaga@yahoo.com, pgsql-admin@lists.postgresql.org
  Subject: Re: Hide function source
  In-Reply-To: <20211011074015.GA31728@depesz.com>

* 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