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 1mn2B3-0004LR-Iw for pgsql-general@arkaria.postgresql.org; Tue, 16 Nov 2021 17:23:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mn2B2-0005Yc-4j for pgsql-general@arkaria.postgresql.org; Tue, 16 Nov 2021 17:23:24 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mn2B1-0005Xn-Da for pgsql-general@lists.postgresql.org; Tue, 16 Nov 2021 17:23:23 +0000 Received: from resqmta-ch2-11v.sys.comcast.net ([2001:558:fe21:29:69:252:207:43]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mn2Au-0001iz-C0 for pgsql-general@postgresql.org; Tue, 16 Nov 2021 17:23:21 +0000 Received: from resomta-ch2-11v.sys.comcast.net ([69.252.207.107]) by resqmta-ch2-11v.sys.comcast.net with ESMTP id n1YDmDkImpGBEn2AsmptQV; Tue, 16 Nov 2021 17:23:14 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=20190202a; t=1637083394; bh=EU1lypPxh3qLi0C1o1W9zjF7SO139u0ggxKwfmW9ktE=; h=Received:Received:Date:From:To:Message-ID:Subject:MIME-Version: Content-Type; b=oOS+ZQhxr/8uQca4WTjrZhLgCFKBw92pNcl5gFYLCGU6WLwejnMPoM3h+K+fG/3Cj ZzKDx/TjxuxxXKU4GDjZby2Z//Gv4dFCDLChV99Bqg5N1q+jzWQy8XOjt7LxEB8U9n ViJCSKy3k9Q/jM0FD1y3/EsA9KW36aQjPxZdHodlvmuACjx7JbhLsYwb594f2QI0kn +b05vXrnto8GN5EndE38O3YwSOy0KCeStF/wrMAAATwmKy/7V/3gIYJZsvU0hLwTaa aLmCrTl14yWxIblPuIJ1EM3KsEQLF3LBGkaqvaiH+iwvjc9LCYhT8I1K2TqpC0CkZ+ TYM31llg8ArrQ== Received: from oxapp-asc-17o.email.comcast.net ([96.118.219.214]) by resomta-ch2-11v.sys.comcast.net with ESMTPS id n2ArmJYCkIsoyn2ArmUlKz; Tue, 16 Nov 2021 17:23:14 +0000 X-Xfinity-VAAS: gggruggvucftvghtrhhoucdtuddrgedvuddrfedvgdeljecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucevohhmtggrshhtqdftvghsihdpqfgfvfdppffquffrtefokffrnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpeffhffvkfgjfhfugggtgffrkgfoihesthejsgdtredtjeenucfhrhhomhepffetggfkffcutffqvffjuceorggurghpthhrohhnsegtohhmtggrshhtrdhnvghtqeenucggtffrrghtthgvrhhnpeegjeevledvhfdviefgjeektdekvdekieetieekveeukeeivdeghfdtveetlefhheenucfkphepleeirdduudekrddvudelrddvudegpddviedtudemudeludemkeegtddtmeguvdgrtdemuggufhgsmegttgehgeemrgeirgdtmeejtdehkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhephhgvlhhopehogigrphhpqdgrshgtqddujehordgvmhgrihhlrdgtohhmtggrshhtrdhnvghtpdhinhgvthepleeirdduudekrddvudelrddvudegpdhmrghilhhfrhhomheprggurghpthhrohhnsegtohhmtggrshhtrdhnvghtpdhrtghpthhtohepphhgshhqlhdqghgvnhgvrhgrlhesphhoshhtghhrvghsqhhlrdhorhhg X-Xfinity-VMeta: sc=-100.00;st=legit Date: Tue, 16 Nov 2021 12:23:13 -0500 (EST) From: DAVID ROTH To: Postgres General Message-ID: <826773243.402693.1637083393436@connect.xfinity.com> In-Reply-To: <494df2a3-5201-33c6-d973-0e7baa09bb20@rodonnell.ie> References: <494df2a3-5201-33c6-d973-0e7baa09bb20@rodonnell.ie> Subject: Postgres Equivalent of Oracle Package MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Normal X-Mailer: Open-Xchange Mailer v7.10.5-Rev21 X-Originating-IP: 2601:191:8400:d2a0:ddfb:cc54:a6a0:7058 X-Originating-Client: open-xchange-appsuite List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk One of the nice things about Oracle packages is that the code is loaded and global values are set and stored only once per session. This is very useful for values that are used repeatedly. What is the best way of emulating this behavior in Postgresql?