Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gDJ9i-0006v3-Ax for pgsql-pkg-debian@arkaria.postgresql.org; Fri, 19 Oct 2018 01:00:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gDJ9g-0003qP-JP for pgsql-pkg-debian@arkaria.postgresql.org; Fri, 19 Oct 2018 01:00:44 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gDJ9g-0003qA-Eq for pgsql-pkg-debian@lists.postgresql.org; Fri, 19 Oct 2018 01:00:44 +0000 Received: from bay.acenet.us ([173.230.252.50]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gDJ9Z-0007JY-Nm for pgsql-pkg-debian@postgresql.org; Fri, 19 Oct 2018 01:00:43 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=anastigmatix.net; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:To:Subject:Sender: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=gjIoaPkL1EDxeaZUjZtNEnzyrrd9qZCB2slrR4BkcJo=; b=wFBKFMupalCX7nTyRmlOrXXLYk F7CxsGlTUjawHxcMWvWplYJqP3ejbvMsl0NnEU0e+72E4238nH9FY0N6eQhUAQxgTL5SPeJGGkbuZ EYkaXjHIlLJR7He/r12GjEBqIw6FY61irrzlGMiUVRW5Iif2J+t+ETS1yriV/mTfyXJyggysowWv1 BGiHgiLjwF2Tt+Saonn6z+rtaiIutF7dCw9FrDsaPHUuelegEVlYFe3YMoESnW6PZxAslYcwLoOIb FPydr2MCZkfIF0tg+pEUPLbXejqgWfk8pt/xCbn12NlVTYp2bU+0q9gWrDmUzEqefuPhzDNKzmZbP WSP6X38g==; Received: from [184.19.49.99] (port=57582) by bay.acenet.us with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from ) id 1gDJ9U-008pL6-RK; Thu, 18 Oct 2018 21:00:33 -0400 Subject: Re: PL/Java 1.5.1 To: Christoph Berg , pgsql-pkg-debian@postgresql.org References: <20181016113214.GA3027@msg.df7cb.de> <5BC5DE4D.3070502@anastigmatix.net> From: Chapman Flack X-Enigmail-Draft-Status: N1110 Message-ID: <5BC92CB0.2020007@anastigmatix.net> Date: Thu, 18 Oct 2018 21:00:32 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 MIME-Version: 1.0 In-Reply-To: <5BC5DE4D.3070502@anastigmatix.net> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-OutGoing-Spam-Status: No, score=-94.5 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bay.acenet.us X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - anastigmatix.net X-Get-Message-Sender-Via: bay.acenet.us: authenticated_id: chap+anastigmatix.net/only user confirmed/virtual account not confirmed X-Authenticated-Sender: bay.acenet.us: chap@anastigmatix.net X-Source: X-Source-Args: X-Source-Dir: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi Christoph, Was there some objection in principle (or maybe just download size) to building with -Psaxon-examples ? If it is not objectionable, my preference would be to build with that option (whenever the PG version >= 8.4 anyway). A lot of the examples are just toy learning aids or tests, but the Saxon examples are there for a useful, non-trivial purpose: to give real SQL:2006+ XML Query functionality, which core PG still lacks. So I would like to make it as easy as possible for the user to try out those examples. Even leaving the Saxon library as an optional download, so one extra thing would have to be downloaded before those examples work, that would still be less fuss than having to build the example code separately AND download the library. What do you think? Thanks, -Chap On 10/16/18 08:49, Chapman Flack wrote: > On 10/16/18 07:32, Christoph Berg wrote: > >>> 2. You seem to be building packages for PG from 11 back to 9.3. For that >>> range of PG versions, it would be possible to add the -Psaxon-examples > ... >>> It's actually safe to add -Psaxon-examples when building for any PG >>> version back to 8.4. Before 8.4, those examples can't be included > >> I'm not really following how that relates to the range of PG versions? >> Because it's "only" 8.4+ ? > > The saxon-examples functions are declared with SQL syntax that didn't > exist pre-8.4, so they would just be rejected as syntax errors in 8.3 > or 8.2. > > The documentation illustrating how to call them uses named-parameter > notation with => so it works as far back as 9.5, and with a simple > substitution of := for => they can be called the same way as far back > as 9.0. But the illustrations also show FROM clauses with LATERAL or > with a function referring to earlier entries, which is only possible > in 9.3+. > > So the saxon-examples PG version range dependency boils down to: > > * the functions can be built and installed in any version 8.4 and up > * they are easy to use in 9.5 and up, following exactly the illustrations > in the docs > * they are almost as easy to use in 9.3 and 9.4, changing => to := > * from 9.2 back to 8.4, they work, but require increasing devilish > cleverness to write SQL queries that use them. > > -Chap >