From: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-general@lists.postgresql.org
Subject: Re: Package-support plans?
Date: Tue, 20 Nov 2018 08:12:35 +0100
Message-ID: <3d05dc35-5d7b-7b03-35ec-a944404e593a@gmx.net> (raw)
In-Reply-To: <CAFzcPXGbKk8d9uSVYNJxJyoCt=9iwksxo3GdQjUtntoZ68XHVQ@mail.gmail.com>
References: <CAFzcPXGbKk8d9uSVYNJxJyoCt=9iwksxo3GdQjUtntoZ68XHVQ@mail.gmail.com>
Nicklas Karlsson schrieb am 20.11.2018 um 07:32:
> Are there any plans for including Oracle-style packages with
> namespace/visibility support at some point or is it just "use
> schemas"? I could even live without package-state but I find it
> frustrating with the namespace pollution when the application grows.
>
If you don't need package-level variables, you could use schemas put functions in different namespaces.
create schema package_one;
create function package_one.function_one() as ...;
create schema package_two;
create function package_two.function_two() as ...;
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: spam_eater@gmx.net
Subject: Re: Package-support plans?
In-Reply-To: <3d05dc35-5d7b-7b03-35ec-a944404e593a@gmx.net>
References: <CAFzcPXGbKk8d9uSVYNJxJyoCt=9iwksxo3GdQjUtntoZ68XHVQ@mail.gmail.com> <3d05dc35-5d7b-7b03-35ec-a944404e593a@gmx.net>
* 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