pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: DAVID ROTH <adaptron@comcast.net>
To: Postgres General <pgsql-general@postgresql.org>
Subject: Postgres Equivalent of Oracle Package
Date: Tue, 16 Nov 2021 12:23:13 -0500 (EST)
Message-ID: <826773243.402693.1637083393436@connect.xfinity.com> (raw)
In-Reply-To: <494df2a3-5201-33c6-d973-0e7baa09bb20@rodonnell.ie>
References: <CAMBRECD14zp50Ex3E8L2MtZPHGAsSVX3zDo57=e_ov7fM8ONSA@mail.gmail.com>
	<494df2a3-5201-33c6-d973-0e7baa09bb20@rodonnell.ie>

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?





view thread (5+ messages)  latest in thread

Message-ID: <826773243.402693.1637083393436@connect.xfinity.com>
Permalink:  ../826773243.402693.1637083393436@connect.xfinity.com/
Also on:    postgresql.org/message-id/826773243.402693.1637083393436@connect.xfinity.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adaptron@comcast.net
  Subject: Re: Postgres Equivalent of Oracle Package
  In-Reply-To: <826773243.402693.1637083393436@connect.xfinity.com>
  References: <CAMBRECD14zp50Ex3E8L2MtZPHGAsSVX3zDo57=e_ov7fM8ONSA@mail.gmail.com> <494df2a3-5201-33c6-d973-0e7baa09bb20@rodonnell.ie> <826773243.402693.1637083393436@connect.xfinity.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox