Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gCOmr-0007Us-1p for pgsql-pkg-debian@arkaria.postgresql.org; Tue, 16 Oct 2018 12:49:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gCOmp-0004gi-HJ for pgsql-pkg-debian@arkaria.postgresql.org; Tue, 16 Oct 2018 12:49:23 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gCOmo-0004gb-Pw for pgsql-pkg-debian@lists.postgresql.org; Tue, 16 Oct 2018 12:49:23 +0000 Received: from bay.acenet.us ([173.230.252.50]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gCOmm-0002QP-Fu for pgsql-pkg-debian@postgresql.org; Tue, 16 Oct 2018 12:49:21 +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=WnkalnhuRD4M6eIZuLHkmrUQyLfDXYD5svNVd2MNUBg=; b=P0ix2L49Ww9rUIjSyHu2UrYknJ 4tHLQuf5qynEXCmN9PRmPmjmpAhGo5A3VnRNhIFrjyB4TT8LRILCstDpkKMfJQk2gSyOZIFNdEhgq P0t+pnZ8DFYX9BG8zg/yi61b4P/ipu4nUIZKoVT/00W+7BeO7mq6OEndhUP4BVINsbrWIq59M/CJO ZLUweVvYTKYfiOLK3zvCIEzHiZjIgC6kAkFaZ3tRVQmsUoLWM6W2GJUESdgLZ2yaTdkxBVXJHiLfE Mi5CBFermS3/dJLSOHs2AJHTVcM48/puKtRjkxgrLyF7aBgf0SUaOelkWuRufghqYfX5OLapWAoEP GUl0bD4w==; Received: from [184.19.49.99] (port=54844) by bay.acenet.us with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from ) id 1gCOmk-008SeC-92; Tue, 16 Oct 2018 08:49:19 -0400 Subject: Re: PL/Java 1.5.1 To: Christoph Berg , pgsql-pkg-debian@postgresql.org References: <20181016113214.GA3027@msg.df7cb.de> From: Chapman Flack X-Enigmail-Draft-Status: N1110 Message-ID: <5BC5DE4D.3070502@anastigmatix.net> Date: Tue, 16 Oct 2018 08:49:17 -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: <20181016113214.GA3027@msg.df7cb.de> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-OutGoing-Spam-Status: No, score=-99.0 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 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