Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i3hGz-0007y2-LF for pgsql-general@arkaria.postgresql.org; Fri, 30 Aug 2019 13:49:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i3hGy-0000Q9-BT for pgsql-general@arkaria.postgresql.org; Fri, 30 Aug 2019 13:49:04 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i3hGx-0000Q1-VI for pgsql-general@lists.postgresql.org; Fri, 30 Aug 2019 13:49:04 +0000 Received: from mailbackend.panix.com ([166.84.1.89]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1i3hGv-0000Ra-L0 for pgsql-general@lists.postgresql.org; Fri, 30 Aug 2019 13:49:02 +0000 Received: from panix2.panix.com (panix2.panix.com [166.84.1.2]) by mailbackend.panix.com (Postfix) with ESMTP id 46Kgn845wWz1J9H for ; Fri, 30 Aug 2019 09:49:00 -0400 (EDT) Received: by panix2.panix.com (Postfix, from userid 17622) id 46Kgn811P5z1ZVM; Fri, 30 Aug 2019 09:49:00 -0400 (EDT) Date: Fri, 30 Aug 2019 09:48:59 -0400 From: stan To: pgsql-general@lists.postgresql.org Subject: SQL equivalint of #incude directive ? Message-ID: <20190830134859.GA24151@panix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable X-Editor: gVim User-Agent: Mutt/1.12.1 (2019-06-15) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk I thought this would be common. But a quick Google only revealed what look = to be workarounds. I am defining a bunch =7Fof functions, and I would prefer to store them in a separate file, which then gets "source" by the main DB init file. Is there a standard way to do this? --=20 "They that would give up essential liberty for temporary safety deserve neither liberty nor safety." -- Benjamin Franklin