From: | DAVID ROTH <adaptron(at)comcast(dot)net> |
---|---|
To: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
Cc: | Postgres General <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Postgres Equivalent of Oracle Package |
Date: | 2021-11-16 19:51:36 |
Message-ID: | 578672982.410788.1637092296124@connect.xfinity.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
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(dot)stehule(at)gmail(dot)com> wrote:
>
>
> Hi
>
> út 16. 11. 2021 v 18:23 odesílatel DAVID ROTH <adaptron(at)comcast(dot)net mailto:adaptron(at)comcast(dot)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
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2021-11-16 20:04:06 | Re: pg_restore depending on user functions |
Previous Message | Pavel Stehule | 2021-11-16 17:27:02 | Re: Postgres Equivalent of Oracle Package |