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 1tTpwE-00B7CU-U5 for pgsql-general@arkaria.postgresql.org; Fri, 03 Jan 2025 22:14:39 +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 1tTpwD-005c1g-4r for pgsql-general@arkaria.postgresql.org; Fri, 03 Jan 2025 22:14:36 +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 1tTpwC-005c1Y-Ol for pgsql-general@lists.postgresql.org; Fri, 03 Jan 2025 22:14:36 +0000 Received: from mail-oi1-x22e.google.com ([2607:f8b0:4864:20::22e]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tTpwA-001xFL-1x for pgsql-general@lists.postgresql.org; Fri, 03 Jan 2025 22:14:35 +0000 Received: by mail-oi1-x22e.google.com with SMTP id 5614622812f47-3ebb2d8dac4so6974003b6e.0 for ; Fri, 03 Jan 2025 14:14:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735942474; x=1736547274; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=FVQPRWskXyKDdPN0UcQQSGTJ0dLzP6YtvtENVw8dgc8=; b=bAmJIBR0SC2L1+NKj0RHOOOCvETiBSX4Eda2SgWrUp8k3UtkzV11i1dmEV8gL89avW lVzlryZ+f8TcYUaLDCAoLWeHmWSN7WpoeIaK12+HJ04PBo595AWVFSSinlgRE5rLIMgw JXhGUjvNzsVoNUL0NkeGQNp21p2kQg081t/UBxfqTqRuJFybG7U2W+fYHZXk0fnDsfee aRRY5lU9PBWJm4UVOQNUxVflqgfUCHyGL8Ruuzmef5G163kS7lte+GUcacv0jOITT1V5 oUrHQ7oebf9qXZEH8QDifpxYa60sYnh+Ve/wjxBQQtE5lONKKSvoG5Ca3AS3gnDlQWUy l1oQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735942474; x=1736547274; h=cc: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=FVQPRWskXyKDdPN0UcQQSGTJ0dLzP6YtvtENVw8dgc8=; b=cs6Jl5Z71kTe1r+IwoDdUeMNQfgVODramcKBJqX+7AV05yTJgqhusA6vubJhjAli/J rWVNskugim/3rqML9DimXux+Y6JEVhjMqLYveNGoFHFr0OxsHJ7/Rh2XpTeTU3tyeyVo A02LAr+YY9f0YwKtMKiFtDHOoI5JWNiNxGjIFpoeLQxTn97x4/uzoJzhMuVV+mlhTAOt +bJJxovmhrIUj9VkiFGLP24GDP71RJPftH4+603sYNjQlmpUpCjRhcAPmlblDq7vAG3c UvOMM3FAdiHYDGrgs7ZPZKALwKn5RZZ0IMxAhCNBP7a8LAI6OH/EXCZ5ae9d0Ev1a6CY xXYA== X-Gm-Message-State: AOJu0YyDvAgE5qN4n+p/Wcmcu3yljfzuRvUqdqpCPMunETxZUHCHyEFZ Ihomnjyv6bxo4FHUtgpvb/13RMECpjWjvunSkg1S3NX0ePNVSNjFR4M0X9KwuLdfZJ79ZgtZjdS BMb711wvnflPcZ9BBEu91FweQMHj3EgdT X-Gm-Gg: ASbGncuoNL9ZtI/8W+G+roQCQikSJDVUmWlWin9D0Hnh45PDEqjpF3y7ntwCw14AD8L QVTe8oDSFT1A9ktXrECu1G7L4zA/WcdgBjOJNyA== X-Google-Smtp-Source: AGHT+IFp+qJ1G/KmKn7lsu0ptDbAtDiBOUDO408xfZ6A9eaO5T+OebD6Rw1pQC+Oe8BvvkpbFf62RhIYP6NwgxsaQys= X-Received: by 2002:a05:6808:1514:b0:3eb:6631:ec29 with SMTP id 5614622812f47-3ed88eced6fmr29134485b6e.6.1735942473814; Fri, 03 Jan 2025 14:14:33 -0800 (PST) MIME-Version: 1.0 References: <20241227205025.1d059f72c7c08d23c9648c26@magnetkern.de> <20241228004009.267f21b78394c934f27f9974@magnetkern.de> <20250103135332.7910a008714abaa04d32e5e2@magnetkern.de> <20250103174849.f071d9c6942f76a9b812157c@magnetkern.de> <20250103223312.dde69ae482776e4f1b0c2258@magnetkern.de> In-Reply-To: <20250103223312.dde69ae482776e4f1b0c2258@magnetkern.de> From: "David G. Johnston" Date: Fri, 3 Jan 2025 15:13:58 -0700 Message-ID: Subject: Re: search_path for PL/pgSQL functions partially cached? To: Jan Behrens Cc: "pgsql-general@lists.postgresql.org" Content-Type: multipart/alternative; boundary="000000000000809abf062ad49a94" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000809abf062ad49a94 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Jan 3, 2025 at 2:33=E2=80=AFPM Jan Behrens wrote: > I would prefer my current solution, but I would like to be sure that my > example (the one in my e-mail dated Fri, 3 Jan 2025 13:53:32 +0100) is > correct. I still am not sure about that. > > If it does what you want and it is only ever executed by application code over a client connection you should be fine. Your client connection will always have whatever search_path you arrange to have in place and the application developer will know whether their environment is correct or not when they test it, and have the ability to change their environment as needed. David J. --000000000000809abf062ad49a94 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Fri, Jan 3, 2025 at 2:33=E2=80=AFPM Jan Behrens <jbe-mlist@magnetkern.de> wro= te:
I would prefer my current sol= ution, but I would like to be sure that my
example (the one in my e-mail dated Fri, 3 Jan 2025 13:53:32 +0100) is
correct. I still am not sure about that.


If it does what you want and it is only ever executed by application co= de over a client connection you should be fine.=C2=A0 Your client connectio= n will always have whatever search_path you arrange to have in place and th= e application developer will know whether their environment is correct or n= ot when they test it, and have the ability to change their environment=C2= =A0as needed.

David J.

--000000000000809abf062ad49a94--