Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tXlvn-00E06U-3Z for pgsql-general@arkaria.postgresql.org; Tue, 14 Jan 2025 18:46:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tXlvl-0033SO-R1 for pgsql-general@arkaria.postgresql.org; Tue, 14 Jan 2025 18:46:26 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tXlvl-0033SC-G5 for pgsql-general@lists.postgresql.org; Tue, 14 Jan 2025 18:46:25 +0000 Received: from fout-b5-smtp.messagingengine.com ([202.12.124.148]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tXlvk-000Ou9-1g for pgsql-general@lists.postgresql.org; Tue, 14 Jan 2025 18:46:24 +0000 Received: from phl-compute-09.internal (phl-compute-09.phl.internal [10.202.2.49]) by mailfout.stl.internal (Postfix) with ESMTP id 4C66A11400D4; Tue, 14 Jan 2025 13:46:23 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-09.internal (MEProxy); Tue, 14 Jan 2025 13:46:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1736880383; x=1736966783; bh=g/06u3lS7KXwwFOLsn3kDmqGK9SFzhg7Jj92WUJKZJI=; b= nAVoIBWiy9wLLYyhhRDDq3i/42VnunkDv0YmQj3qkdEGl/G5JdsqWA6PCy6a1DDW 4sHNaJZ1Gzr1gk/1aDo6TUkmqSMP+t8180i5pyHguXc8xRhMZMV2U2zKqI5u1xtw HiHEpwRV7NNsdpt/6KDB+Yp4cqBs6gCAmI3TQdgpikI6Go+tC/sHgSkljpXa8/Zy ka6xA/73QEG7e343taV1QgX5+ovalSpe2zFwUfQG1EvBbiy05vd5lpSzPQidgR+r 8A04G39vuqyxT++BYC3HpPYT/o6k44qjAdf106TwcOFU2N8EDPE5Df1VzkL5s0F6 /lA2Dt94bHjg+a5TYx++9w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; t=1736880383; x=1736966783; bh=g /06u3lS7KXwwFOLsn3kDmqGK9SFzhg7Jj92WUJKZJI=; b=J+k24OPV/LvkSHS4d b1xe/DoqTrTlZOiVk03jkBAn+KM+N0SR4pAU4JuGMvd2YkxSFiVbqDg1o66Fnkxy 8yPEcXHlnA82p/g/uaaAAf0gBdZP4ncLhs6Cyp9PksOgbO6ogxEYpe5uzRvKJJAd k58AGJ9l4mnXmuREfGEYoWWjPQ1SL3G3WlzY8j69rCyDVETuxitv1gy4+a/e6cA7 Q6UwhmWLEemcy7C0YbXCpb1zAoHkP8/E6I6jcVnT/E8yCqIx3hi951QX1Z/9KYA+ cma+LA6hr0J8Iv/INeGllfroocj7iXloQE2l7Xb/uFN/IMXCitAACenzGl2cmqFv IYmCQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudehiedgudduiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtkeertddtvdej necuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrh esrghklhgrvhgvrhdrtghomheqnecuggftrfgrthhtvghrnhepleegveekkeekueeigfdt veeileeuhfefudefteekjeffkeejueejheegheegkedtnecuffhomhgrihhnpehpohhsth hgrhgvshhqlhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgr ihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmpdhnsg gprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehikhhorhho thdtudesghhmrghilhdrtghomhdprhgtphhtthhopehpghhsqhhlqdhgvghnvghrrghlse hlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 14 Jan 2025 13:46:21 -0500 (EST) Message-ID: Date: Tue, 14 Jan 2025 10:46:19 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Fwd: Lock in postgreSQL To: Igor Korot , "pgsql-generallists.postgresql.org" References: Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 1/14/25 10:42 AM, Igor Korot wrote: > Hi, ALL, > > This concern both libpq and DBC API. > > Hopefully I can get answers on both. Read: https://www.postgresql.org/docs/current/explicit-locking.html#ADVISORY-LOCKS > > Than yu. > > > ---------- Forwarded message --------- > From: Igor Korot > Date: Tue, Jan 14, 2025 at 12:50 AM > Subject: Lock in postgreSQL > To: pgsql-generallists.postgresql.org > , PostgreSQL ODBC list > > > > 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. > > -- Adrian Klaver adrian.klaver@aklaver.com