From: Rob Sargent <robjsargent@gmail.com>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: schema agnostic functions in language sql
Date: Sat, 16 May 2020 10:03:21 -0600
Message-ID: <61E71DBD-E0C5-4594-8114-4172C29B8046@gmail.com> (raw)
In-Reply-To: <CAKFQuwY2FBJSrNkb2tvS2F2Pg_b5=_0PXDD9AN-mav9CiaH1jw@mail.gmail.com>
References: <CAKFQuwY2FBJSrNkb2tvS2F2Pg_b5=_0PXDD9AN-mav9CiaH1jw@mail.gmail.com>
> On May 16, 2020, at 9:13 AM, David G. Johnston <david.g.johnston@gmail.com> wrote:
>
>
>> On Sat, May 16, 2020 at 5:15 AM Rob Sargent <robjsargent@gmail.com> wrote:
>> check_function_body=off may be what I want during the site install as the definitions should be correct in all aspects.
>
> You should probably just have one "test" schema and compile your functions with the non-client test schema in the search_path.
>
> David J.
In fact there is just such a thing in the database from which get the DDL to generate new ‘client’ dbs. (This is not commercial in any way). So far I have not needed to bring that template into client space. Do you see a problem with using check_ function_body=off, given that the functions will be developed and tested elsewhere?
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: robjsargent@gmail.com, david.g.johnston@gmail.com, tgl@sss.pgh.pa.us, adrian.klaver@aklaver.com
Subject: Re: schema agnostic functions in language sql
In-Reply-To: <61E71DBD-E0C5-4594-8114-4172C29B8046@gmail.com>
References: <CAKFQuwY2FBJSrNkb2tvS2F2Pg_b5=_0PXDD9AN-mav9CiaH1jw@mail.gmail.com> <61E71DBD-E0C5-4594-8114-4172C29B8046@gmail.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