I’m not sure what these function exactly do in MSSQL but what in Postgres you probably can use “Advisory Locks” (https://www.postgresql.org/docs/9.4/explicit-locking.html <https://www.postgresql.org/docs/9.4/explicit-locking.html>) in order to achive this.
> On 13. Dec 2019, at 13:31, İlyas Derse <ilyasderse(at)gmail(dot)com> wrote:
>
> sp_getapplock