Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k2u4p-0006pk-Qr for pgsql-general@arkaria.postgresql.org; Tue, 04 Aug 2020 10:21:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1k2u4o-0007rk-QT for pgsql-general@arkaria.postgresql.org; Tue, 04 Aug 2020 10:21:46 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k2u4o-0007rd-Fb for pgsql-general@lists.postgresql.org; Tue, 04 Aug 2020 10:21:46 +0000 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1k2u4k-00060w-8e for pgsql-general@lists.postgresql.org; Tue, 04 Aug 2020 10:21:46 +0000 Received: by mail-wm1-x341.google.com with SMTP id k8so2363357wma.2 for ; Tue, 04 Aug 2020 03:21:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=yAqAzuOeXMzUs3uUyxZVxzwXWS5Debs9iLptyeG8OcQ=; b=DmSPKrOWa5KZZJxia4RGmkPnyyf1kRyUFK/IZOaXJxHU1l5BdVTDK4ACJUMXzmA3gw 5mYMS8EvPb5c2PZy74YRzMA9T6re+bzhh1sCDQ73sujFBQcuCbcMhT/sJn4NNrLComcK kikUImbyUfHP4A2GuO2V0FiT+oawTtFY4ZWrKhhBiT4E3J6ZaDFYkJdRVn1subA4lp/j cNff06lhWHYyg7Q9K7WBuS6SlZXKKOkKO7E2/tlP7g1NVyySYNk9YrFBr/HOxX7zk0Zw KnuQY450mdXGcYqnvKTTbAD3m7BHemFFWOYhbiYaor8Pc1iSvX1bhvbv+tfe8ilW1B8d 4jfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=yAqAzuOeXMzUs3uUyxZVxzwXWS5Debs9iLptyeG8OcQ=; b=eMOApFO/G3jDJrImLpE5HxOpi5kHIlW6IKLEle+eAuphmq0cD9HfTDMlx+/0vws4RJ A3ge5/2aS98BQgr9oUVFjDujcdg6KazUHyNUNhlsEJnRUu+OWfxe3BzD6MhBt4E1Ncm7 jB0xAtjjTDLbbrVtNJXva3Bs/VjDm2H1fREPph+EvPEWKCn0efBAgFRJQruzI9VKJIJj CHUAd0wRj9ZY9d6+KO+ylR7BJOLipz3wIMrcQNWJeJb8O7K3MWvfEudA4edJNYKZXZFh UEuTweKMJs+5vUqSu76nAs549UDKjeYR4c7EDcRnRj9ybGFAbweCfRuz6r9bG/SxJFYP Q+3g== X-Gm-Message-State: AOAM531JRZpCGSm3/vAAA7B9XKXejoYuEFcMOZtmy8J0Uq1MXY7bsaI9 dQow+S9Fvcfb47Qd5kNvEvw= X-Google-Smtp-Source: ABdhPJxddX229IriH60dyKqaczZy/J2wRu2zzPUr1/5ZUhhLIIo84TU+0L3yrVk3w5PoayK9jJ/IWw== X-Received: by 2002:a1c:a54e:: with SMTP id o75mr3507368wme.181.1596536500288; Tue, 04 Aug 2020 03:21:40 -0700 (PDT) Received: from imac-user.ics.forth.gr ([139.91.190.53]) by smtp.gmail.com with ESMTPSA id q5sm28480613wrp.60.2020.08.04.03.21.39 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Aug 2020 03:21:39 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: Keeping state in a foreign data wrapper From: Stelios Sfakianakis In-Reply-To: Date: Tue, 4 Aug 2020 13:21:36 +0300 Cc: pgsql-general@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <113D4B17-B9EA-425A-896C-0095C73FDF8C@gmail.com> References: <483E8B68-D9DB-4533-BA82-206F41E53626@gmail.com> To: Ian Lawrence Barwick X-Mailer: Apple Mail (2.3445.9.1) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Thank you again, I have another question in order to make sure I have a = clear understanding: > On 4 Aug 2020, at 11:24, Ian Lawrence Barwick = wrote: >=20 > The hash table is specific to each running backend so will only be > accessed by that process. >=20 > Pre-loading a shared library just gives the library an opportunity to > set up shared memory etc. You can always try adding one of the FDW > libraries to "shared_preload_libraries" and see what happens > (theoretically nothing). >=20 My impression was that since each client (e.g. libpq) connection results = in the creation of a Postgres process in the backend = (https://www.postgresql.org/developer/backend/) then this (mysql) = "connection pool" hash table is not global per se and shared among the = different client / users sessions. But that defeats the purpose, no?=20 Thank you Best=20 Stelios