Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jZzHh-00050s-Ve for pgsql-general@arkaria.postgresql.org; Sat, 16 May 2020 16:03:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jZzHg-00053n-Rf for pgsql-general@arkaria.postgresql.org; Sat, 16 May 2020 16:03:32 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jZzHg-00051H-Gs for pgsql-general@lists.postgresql.org; Sat, 16 May 2020 16:03:32 +0000 Received: from mail-il1-x141.google.com ([2607:f8b0:4864:20::141]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jZzHa-0002T9-7M for pgsql-general@lists.postgresql.org; Sat, 16 May 2020 16:03:32 +0000 Received: by mail-il1-x141.google.com with SMTP id 17so5601296ilj.3 for ; Sat, 16 May 2020 09:03:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=KulG7bRaeoTYEVZ2Ezk2mac2VIFndUhXNrg/EnvHn7Q=; b=eIWWBuOI08uE4jrcnI95Y7nJaITG58+2sKRv4XSU46HkYUdlMOhIVbB2V1k143weAa vw7sfYPgIB3gZxmJFP1dDflq7vPlIJIif/L9lic5VONpH1QsWDyvJJQ4OxmZ7vfRCsF9 mB5BX0ngRG6eO9jzOUPvvEys8576uhE/MWxLSSLXSF3hcznYZunAj5ok5gIxs07M73Hw O0Bs1a9fEowIf3LJNpxP0o0m8FX48fjg10gOZFYCTUSTUS7iJWubihrW5NvZJqosbo3x 3y2S7z0Ihnj7bsN829rQKMPb6Y4m5K6fKvbmwtNngOe3X5QA48Q1qSCiAeUryoL1d4OZ 1Rww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=KulG7bRaeoTYEVZ2Ezk2mac2VIFndUhXNrg/EnvHn7Q=; b=hB3H6NTvfRRyl3LTXiB4kPQvpnduyIb6GCH4Ku4laLWfpSQw6BT4kAcbsv0iq9oskl 9foZI+sPU+HH6kxn7rXa+oVRQJuNqmeGQ+CPyXqdWIjwybFcTOh4uSJ6JMIcIkgsd+zk GRpqsFy6ZOT9vnX0g+i4eDTczklLbS31llBsOVXU8Rhf3M8tJ/UrgtKtBiLYi7gGVlUL FECPVIPjHtopJ5li73DqlvHFQoCYzRKzqlsvVczwFnn6O4xklrPWqSVVvQ8ITYpGnoVz Jt54wK4du2NrDjaNFZKek0RxPPnedAec+QRWhgMXj5Zs+7SeknikC56sTenJQGYAtrgY qWIg== X-Gm-Message-State: AOAM532FXh+r/MB6xvwPwATKxU1Kk0cSJnxrJRV8bYXVDFihGPFYGgAN 8BVvSxY2P2lpPRHM+HrcoCU= X-Google-Smtp-Source: ABdhPJx7UXmyM9k1A1emr3tiZhLmwNkXf+KATbOuOCKd+GmVp5ejc2iLyLzthXE6bjJdH+DPrSNVpQ== X-Received: by 2002:a92:cd01:: with SMTP id z1mr8281164iln.182.1589645004051; Sat, 16 May 2020 09:03:24 -0700 (PDT) Received: from [192.168.1.144] (c-73-63-59-118.hsd1.ut.comcast.net. [73.63.59.118]) by smtp.gmail.com with ESMTPSA id c13sm2379910ilu.81.2020.05.16.09.03.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 16 May 2020 09:03:22 -0700 (PDT) Content-Type: multipart/alternative; boundary=Apple-Mail-975A64B6-1300-4FFE-88E2-33F95B944EB2 Content-Transfer-Encoding: 7bit From: Rob Sargent Mime-Version: 1.0 (1.0) 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> References: Cc: Tom Lane , Adrian Klaver , "pgsql-generallists.postgresql.org" In-Reply-To: To: "David G. Johnston" X-Mailer: iPhone Mail (17E262) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --Apple-Mail-975A64B6-1300-4FFE-88E2-33F95B944EB2 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable > On May 16, 2020, at 9:13 AM, David G. Johnston wrote: >=20 > =EF=BB=BF >> On Sat, May 16, 2020 at 5:15 AM Rob Sargent wrote= : >> check_function_body=3Doff may be what I want during the site install as t= he definitions should be correct in all aspects.=20 >=20 > You should probably just have one "test" schema and compile your functions= with the non-client test schema in the search_path. >=20 > David J. In fact there is just such a thing in the database from which get the DDL to= generate new =E2=80=98client=E2=80=99 dbs. (This is not commercial in any w= ay). So far I have not needed to bring that template into client space. Do y= ou see a problem with using check_ function_body=3Doff, given that the funct= ions will be developed and tested elsewhere? --Apple-Mail-975A64B6-1300-4FFE-88E2-33F95B944EB2 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable


On May 16, 2020, at 9:13 AM, David G. Johnsto= n <david.g.johnston@gmail.com> wrote:

=EF=BB=BF
On Sat, May 16,= 2020 at 5:15 AM Rob Sargent <ro= bjsargent@gmail.com> wrote:
check_function_body= =3Doff may be what I want during the site install as the definitions should b= e correct in all aspects.

You should proba= bly just have one "test" schema and compile your functions with the non-clie= nt test schema in the search_path.

David J.
<= /div>
In fact there is just such a thing in the database from w= hich get the DDL to generate new =E2=80=98client=E2=80=99 dbs. (This is not c= ommercial 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=3Do= ff, given that the functions will be developed and tested elsewhere?
= --Apple-Mail-975A64B6-1300-4FFE-88E2-33F95B944EB2--