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 1gz52g-000260-Iv for pgsql-pkg-yum@arkaria.postgresql.org; Wed, 27 Feb 2019 19:38:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gz52f-0001yS-D6 for pgsql-pkg-yum@arkaria.postgresql.org; Wed, 27 Feb 2019 19:38:57 +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 1gz52e-0001yL-Pa for pgsql-pkg-yum@lists.postgresql.org; Wed, 27 Feb 2019 19:38:57 +0000 Received: from anastigmatix.net ([68.171.219.55]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gz52b-0003Tx-WC for pgsql-pkg-yum@postgresql.org; Wed, 27 Feb 2019 19:38:55 +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:References:To:From: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=MH6lR3ATHnifoFmhCp72b9Db7B8uFKdj1osiWeBNpTI=; b=PoAkt6PQmpgyeP56oB2DaRspeR 1xhMJxdR5j++y5KXRsGXepxP3wUN6ogimlrotMQX2+4Fz+cH/ufECZHZXGt7v3imdsN610Q5Ju62r /o2SqtJKFbAOjlKap5H+z2qhNvMroJ6nagwSh2PPwBBBaRS07W47tO2hCLvj9IJQLmXA+rAhwGbul owJPztbmUT44F2PhT4v+7LvIFMZzLnUzHkZ2DRQmbX0PAT2TmQqfJIifR45IuImDbslN2qK73k1qx G4dLW88UIoP6AmeOxUFipcl3BmIEA3ztL0huZAxOGQ2rslG47WCFyfHi+VU0DvDtg1GPugwtDZDSj 9H3uJOTw==; Received: from cos-128-210-107-26.science.purdue.edu ([128.210.107.26]:46736 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 1gz52Z-00BZeu-Ox; Wed, 27 Feb 2019 14:38:52 -0500 Subject: Re: PL/Java 1.5.2 - fixes one regression in date conversion in 1.5.1 From: Chapman Flack 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> Message-ID: <980b1d7e-fc17-d5d2-ed3d-1eaa1f563fa9@anastigmatix.net> Date: Wed, 27 Feb 2019 14:38:51 -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 Hi Devrim, I assume it's straightforward to change the symlinks to have the right names? Regards, -Chap On 2/26/19 4:18 PM, Chapman Flack wrote: > 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 >