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 1tXlsz-00DzMJ-2g for pgsql-general@arkaria.postgresql.org; Tue, 14 Jan 2025 18:43:33 +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 1tXlsw-002zio-R4 for pgsql-general@arkaria.postgresql.org; Tue, 14 Jan 2025 18:43:31 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tXlsw-002zig-EK for pgsql-general@lists.postgresql.org; Tue, 14 Jan 2025 18:43:30 +0000 Received: from mail-yb1-xb34.google.com ([2607:f8b0:4864:20::b34]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tXlsu-000P3O-13 for pgsql-general@lists.postgresql.org; Tue, 14 Jan 2025 18:43:30 +0000 Received: by mail-yb1-xb34.google.com with SMTP id 3f1490d57ef6-e399e904940so9131080276.2 for ; Tue, 14 Jan 2025 10:43:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736880206; x=1737485006; darn=lists.postgresql.org; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=BcAi4e2KV+8/GbBD390vRqktPLyjPuswihKB4wBsTHU=; b=bBfTiZUD9zJyN0K9gmSi28LhPWgbmwU6nVFskSTrwFndXh/+Fm/XUgEWWbW166/Uas 1bwcnioU8JHODWpHMi5nxcv+yKAUXW4/Z92OoL7kLUAYuErxuG+TJBYN+nGjP0T0MerL IAw1IdXpbnCT+1jI6LNsXg+iBimhX2OWxt1F+LIYu4DBBiqPjrEDsseiLgVLp5JKBtRk +qD7q/O2p7+JZqccJR+WlfLTJKtx0Z229LsphCcfjIsBUWtdSCPrGlzCXbpMbq8uuyLZ C6lnYDNfJeO+XMaCL7C6JVPXav0hC5gG3pJVnZk1A8V0x8nrYTONGUUBayHcCd/EIINQ amZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736880206; x=1737485006; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BcAi4e2KV+8/GbBD390vRqktPLyjPuswihKB4wBsTHU=; b=u8CCntgsGUICa7zc+voS0/SluEL04L1jyxgWzdzVwTgHnW0ubwFZ2fg9Zotl5N6io4 nDNab0+WlGJGi3AuCirvwzBlT5c2IkCkQgnN4tPYunTHMvi7o/EJepP8/JM6aKMOebcc SIEA6xtAQLcqyV0/j+uGF6O1/k506hssS10QEFUegDlpkq06PAtlnxzKSIq4bJ2VkaSp UWmJS2i1a1c6cdoV33XA8r1brmKiaOh+wTKhH06DIbfUcvZNw5VVNZyhvENYo4aK8Asp XqqM8dAKgJw9SeKCzyyMqE8Rv3Pz4d0i+Qu55548wYMBA8JoEJbzWqH963xz0G+Eqw3V XdUg== X-Gm-Message-State: AOJu0YwrYl+pCBqAAIjV57+lsbits0MiLK5aeBcrPryiLi5DbuBEFsm6 hZft8S+9/5sbaJvuoq7NC34sAsIIS7CpsRiEKfN//Qt/pmUcmzlC5EEYtSkBV984x7mKHfDqPtG gS5hPVeEytaQkMDhJYzLSVF6txlCELw== X-Gm-Gg: ASbGncv+vTms11MQ6ay2OREyWBVFghsOZPsn2AnpVXDxriPLVzcOpgT1pDsLSYhVCZD +V8Sdl7VOHYMAMnIZNY1ans5W8wxyAdg9xSXTAndqv24SBKlIsukG9KvKpogt5YbXjDG9+4M= X-Google-Smtp-Source: AGHT+IES81XazCEzNf+HhUBrViPnjyauPd5ukmm3G3QIDThjjaAsUpdKa4EyrAasPYTWEcCEv/SkPr/tUZ38BIlBbXo= X-Received: by 2002:a05:6902:907:b0:e49:803b:2296 with SMTP id 3f1490d57ef6-e54edf2d5e0mr20818365276.11.1736880206109; Tue, 14 Jan 2025 10:43:26 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Igor Korot Date: Tue, 14 Jan 2025 12:42:41 -0600 X-Gm-Features: AbW1kvY_iDyEyC3UF0a45QsI2XYtrvYUJcRuVB-f2JMEFOeJLLrxBMBrJltNpFc Message-ID: Subject: Fwd: Lock in postgreSQL To: "pgsql-generallists.postgresql.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, ALL, This concern both libpq and DBC API. Hopefully I can get answers on both. Than yu. ---------- Forwarded message --------- From: Igor Korot Date: Tue, Jan 14, 2025 at 12:50=E2=80=AFAM Subject: Lock in postgreSQL To: pgsql-generallists.postgresql.org , PostgreSQL ODBC list Hi, ALL, https://www.postgresql.org/docs/current/functions-admin.html#FUNCTIONS-ADVI= SORY-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.