Fwd: Lock in postgreSQL - Mailing list pgsql-general

From Igor Korot
Subject Fwd: Lock in postgreSQL
Date
Msg-id CA+FnnTy9PNY07qa9DJ5yb+gb17MMHpYXVrZLbWcRrPf5Yk7E5w@mail.gmail.com
Whole thread Raw
Responses Re: Fwd: Lock in postgreSQL
List pgsql-general
Hi, ALL,

This concern both libpq and DBC API.

Hopefully I can get answers on both.

Than yu.


---------- Forwarded message ---------
From: Igor Korot <ikorot01@gmail.com>
Date: Tue, Jan 14, 2025 at 12:50 AM
Subject: Lock in postgreSQL
To: pgsql-generallists.postgresql.org
<pgsql-general@lists.postgresql.org>, PostgreSQL ODBC list
<pgsql-odbc@postgresql.org>


Hi, ALL,
https://www.postgresql.org/docs/current/functions-admin.html#FUNCTIONS-ADVISORY-LOCKS

There is an explanation about a promissory
lock functions().

I have 2 questions about that:
1. Is calling one of them a way to get the lock()?
2. If I work on ODBC-based connection - I should call SQLExectDirect()
with the function in question, correct?

Thank you.



pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: Intermittent errors when fetching cursor rows on PostgreSQL 16
Next
From: Adrian Klaver
Date:
Subject: Re: Fwd: Lock in postgreSQL