Re: PG Encryption / pg_read_file

From: Shreeyansh Dba <shreeyansh2014(at)gmail(dot)com>
To: anjul(at)ibosstech-us(dot)com
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: PG Encryption / pg_read_file
Date: 2018-12-12 11:46:17
Message-ID: CAGDYbUOjq0bT3EZ1oVH7wm94SHHV1U-_Wx1TYnDDKA0EqTmjKA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi Anjul,

I think you can use additional contrib module file_fdw to access the files.

Go through this below link.

https://www.postgresql.org/docs/current/file-fdw.html

<http://www.shreeyansh.com>

On Tue, Dec 11, 2018 at 3:06 PM Anjul Tyagi <anjul(at)ibosstech-us(dot)com> wrote:

> Hi Admin,
>
> we are working on the PG Encryption using pgCrypto. We are planing to use
> the PGP public and private key for encryption. However to secure the key we
> are not using the keys directly in the SQL Query. We are planning to use
> the pg_read_file function, for that. However we have noticed only super
> user can call that function.
>
> Can you please suggest is there any alternative for pg_read_file function
> to call non super user or any other alternative to secure the key.
>
>
>
>
>
> Regards,
>
> Anjul *TYAGI*
>
>
>
> *ü* *Go Green*
>
>

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message soumitra bhandary 2018-12-13 11:20:18 Pg_restore failing due to data inconsistency in dump file
Previous Message Achilleas Mantzios 2018-12-11 15:04:21 Re: Pg logical replication