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

I can see how schemas can be used to keep related tables and other object together.  I may be missing something but I don't see how they can be used to emulate the "once-per-session" behavior of Oracle packages. Have I missed something?

>     On 11/16/2021 12:27 PM Pavel Stehule <pavel.stehule@gmail.com> wrote:
> 
> 
>     Hi
> 
>     Ășt 16. 11. 2021 v 18:23 odesĂ­latel DAVID ROTH <adaptron@comcast.net mailto:adaptron@comcast.net > napsal:
> 
>         > > 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?
> > 
> >     > 
>     you can use a schemas - you can see it in Orafce
> 
>     https://github.com/orafce/orafce
> 
>     Regards
> 
>     Pavel
> 
> 

view thread (5+ messages)  latest in thread

Message-ID: <578672982.410788.1637092296124@connect.xfinity.com>
Permalink:  ../578672982.410788.1637092296124@connect.xfinity.com/
Also on:    postgresql.org/message-id/578672982.410788.1637092296124@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, pavel.stehule@gmail.com
  Subject: Re: Postgres Equivalent of Oracle Package
  In-Reply-To: <578672982.410788.1637092296124@connect.xfinity.com>
  References: <CAMBRECD14zp50Ex3E8L2MtZPHGAsSVX3zDo57=e_ov7fM8ONSA@mail.gmail.com> <494df2a3-5201-33c6-d973-0e7baa09bb20@rodonnell.ie> <826773243.402693.1637083393436@connect.xfinity.com> <CAFj8pRARkrmQCJyhX7762EkvVxxBHFT0RT6typBaAHBHmyNh-g@mail.gmail.com> <578672982.410788.1637092296124@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