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 1gyk80-0004ks-SH for pgsql-pkg-yum@arkaria.postgresql.org; Tue, 26 Feb 2019 21:19: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 1gyk7z-0008Gt-L1 for pgsql-pkg-yum@arkaria.postgresql.org; Tue, 26 Feb 2019 21:19:03 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1gyk7z-0008Gm-4Q for pgsql-pkg-yum@lists.postgresql.org; Tue, 26 Feb 2019 21:19:03 +0000 Received: from anastigmatix.net ([68.171.219.55]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gyk7w-0003tt-30 for pgsql-pkg-yum@postgresql.org; Tue, 26 Feb 2019 21:19:02 +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=gMy/zbC+RgbCWBDBB+H3+ww4Or4i957Dhp1azoHhY5o=; b=e06j7b8+96WfLnV4FBv6w7wpCx sMQkWX3SNUk8zYD42zCIdN/Oed5UJLopDoMa89Yr7HR8mkOm7UfaDEZCJcC6QVmD6OxlZZlmV9ZFV K6H4TanxTm8wINbHD+aOyZgoWpMcWwmjRYHE7wheCLdvNu79q75uf2J0Z3N8YFsEyOas+SEzMQwre 9j98MDl8FbtNozb3WfPhAPlYyR7jIfYbsjGuSmUAwFiZ+zWMpkpzA/X4SzCia5XU1y8oOikv/mC4H lzedBXdk3jHevbR3z//uN/sh8dSQtKoTda+oUQEwqQxzv5tozlw0vV4AeZPjGUEGaNwAbxvXqyaaA tmBV400w==; Received: from cos-128-210-107-26.science.purdue.edu ([128.210.107.26]:38870 helo=gibbs.math.purdue.edu) by bay.acenet.us with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from ) id 1gyk7s-00CMtC-HU; Tue, 26 Feb 2019 16:18:57 -0500 Subject: Re: PL/Java 1.5.2 - fixes one regression in date conversion in 1.5.1 To: =?UTF-8?B?RGV2cmltIEfDvG5kw7x6?= , pgsql-pkg-yum@postgresql.org References: <5BE08D74.2060207@anastigmatix.net> <5C2AF4F6.6070606@anastigmatix.net> <1e2d8a7a9a2e870cf39eec61a8c2a4eb5cc70c32.camel@gunduz.org> <214c9f2f-423f-39ff-2477-887567c400db@anastigmatix.net> <1a0711f4b5b1304f1d3031251cbe4efcfffccd28.camel@gunduz.org> <6e8c6808-601b-baf5-865b-8c1785cfe346@anastigmatix.net> <9c7756dd-bab5-4978-cc93-d0a4a6f0b605@anastigmatix.net> <5C374DB5.20001@anastigmatix.net> <40eeb475-b996-d33c-edcf-775a0118b341@anastigmatix.net> From: Chapman Flack Message-ID: Date: Tue, 26 Feb 2019 16:18:56 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit 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 X-Authenticated-Sender: bay.acenet.us: chap@anastigmatix.net X-Source: X-Source-Args: X-Source-Dir: X-From-Rewrite: unmodified, already matched List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2/26/19 2:16 PM, Devrim Gündüz wrote: > How does it look now? > > # ll *sql > lrwxrwxrwx 1 root root 39 Feb 26 22:13 pljava--1.5.0--1.5.1.sql -> /usr/pgsql-11/share/pljava/pljava--.sql > lrwxrwxrwx 1 root root 39 Feb 26 22:13 pljava--1.5.0-BETA1--1.5.1.sql -> /usr/pgsql-11/share/pljava/pljava--.sql > lrwxrwxrwx 1 root root 39 Feb 26 22:13 pljava--1.5.0-BETA2--1.5.1.sql -> /usr/pgsql-11/share/pljava/pljava--.sql > lrwxrwxrwx 1 root root 39 Feb 26 22:13 pljava--1.5.0-BETA3--1.5.1.sql -> /usr/pgsql-11/share/pljava/pljava--.sql > lrwxrwxrwx 1 root root 39 Feb 26 22:13 pljava--1.5.1--1.5.2.sql -> /usr/pgsql-11/share/pljava/pljava--.sql > lrwxrwxrwx 1 root root 39 Feb 26 22:13 pljava--1.5.1-BETA1--1.5.1.sql -> /usr/pgsql-11/share/pljava/pljava--.sql > lrwxrwxrwx 1 root root 39 Feb 26 22:13 pljava--1.5.1-BETA2--1.5.1.sql -> /usr/pgsql-11/share/pljava/pljava--.sql > lrwxrwxrwx 1 root root 39 Feb 26 22:13 pljava--1.5.1-BETA3--1.5.1.sql -> /usr/pgsql-11/share/pljava/pljava--.sql > -rw-r--r-- 1 root root 3228 Feb 26 22:13 pljava--1.5.2.sql > -rw-r--r-- 1 root root 2433 Feb 26 22:13 pljava--.sql > -rw-r--r-- 1 root root 3580 Feb 26 22:13 pljava--unpackaged--1.5.2.sql Hi Devrim, Thanks for taking a look ... that's better, with one complication, though. It has links for updating 150-BETA* to 150, 151-BETA* and 150 to 151, 151-BETA* and 151 to 152, which would be the typical arrangement for a typical extension, and would cause PostgreSQL to automatically apply multiple scripts in sequence. The multiple script sequence won't work in PL/Java though, because the updating work is really done inside PL/Java at its own startup, which can't be repeated over a single backend connection. (You have seen that they are all links to one script, which does nothing but store the library pathname and exnihilo=false (indicating update) in a table and LOAD the library, which unconditionally applies any schema updates needed to match its own version. PostgreSQL itself treats later LOADs of the same library as no-ops, so I couldn't make the multiple-script sequence work if I wanted to). This is sort of an imperfect fit with the PG extension conventions, but PL/Java 1.5.x still supports PG versions older than the extension feature, so updating has to be easy for them too. So the intent for packaging is to include a link pljava--foo--1.5.2.sql for every plausible prior version foo, so PostgreSQL will choose a one-script update path no matter which prior version is installed. The actual files placed into an "official" build can be found starting here: https://github.com/tada/pljava/blob/REL1_5_STABLE/pljava-packaging/build.xml#L280 Thanks! -Chap