Re: Pragma autonomous transactions in Postgres/ Certification based authentication in DB Links - Mailing list pgsql-sql

From Jonathan Katz
Subject Re: Pragma autonomous transactions in Postgres/ Certification based authentication in DB Links
Date
Msg-id A0E82030-D418-4596-A6E5-87016B0CCCE7@excoventures.com
Whole thread Raw
In response to Pragma autonomous transactions in Postgres/ Certification based authentication in DB Links  (aditya desai <admad123@gmail.com>)
Responses Re: Pragma autonomous transactions in Postgres/ Certification based authentication in DB Links  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-sql


On Dec 17, 2021, at 10:43 AM, aditya desai <admad123@gmail.com> wrote:

Hi,
Is there any way to achieve autonomous transactions in Postgres? There is a way to do it by using DB Link. However DB Link involves user name and password which is a bit of a security threat.

How to use certificate based authentication in DB Links instead of hardcoding user name and password in it?

dblink lets you pass in a PostgreSQL connection string[1].
From there you can reference parameters to use certificates[2].

Jonathan

pgsql-sql by date:

Previous
From: aditya desai
Date:
Subject: Pragma autonomous transactions in Postgres/ Certification based authentication in DB Links
Next
From: Tom Lane
Date:
Subject: Re: Pragma autonomous transactions in Postgres/ Certification based authentication in DB Links