I’m not sure what these function exactly do in MSSQL but what in Postgres you probably can use “Advisory Locks” (https://stream.boxwatch.ru/docs/9.4/explicit-locking.html <https://stream.boxwatch.ru/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