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 1ft5ZZ-0004RT-FT for pgsql-general@arkaria.postgresql.org; Fri, 24 Aug 2018 06:27:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ft5ZW-0003cW-MS for pgsql-general@arkaria.postgresql.org; Fri, 24 Aug 2018 06:27:50 +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 1ft5ZW-0003cP-EO for pgsql-general@lists.postgresql.org; Fri, 24 Aug 2018 06:27:50 +0000 Received: from hermes.gatewaynet.com ([193.92.121.98]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ft5ZS-0006VL-HI for pgsql-general@lists.postgresql.org; Fri, 24 Aug 2018 06:27:49 +0000 Received: from smadev.internal.net (pc131.internal.net [10.9.200.131]) by hermes.gatewaynet.com (8.14.3/8.14.3/Debian-9.4) with ESMTP id w7O6RcXD029488 for ; Fri, 24 Aug 2018 09:27:43 +0300 Received: from smadev.internal.net (smadev [10.9.200.131]) by smadev.internal.net (8.15.2/8.15.2) with ESMTP id w7O6RbPW096709 for ; Fri, 24 Aug 2018 09:27:38 +0300 (EEST) (envelope-from achill@matrix.gatewaynet.com) Subject: Re: Upgrade/Downgrade To: pgsql-general@lists.postgresql.org References: <4BAC5CA6-E127-4563-B81A-220CC87A6914@a-kretschmer.de> <7d8c3ac3-2cf2-d914-ea2f-6179b10937b5@matrix.gatewaynet.com> From: Achilleas Mantzios Message-ID: <2bb082bc-9795-4bfe-f9c5-a0789b8b4c4e@matrix.gatewaynet.com> Date: Fri, 24 Aug 2018 09:27:37 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------D4D80A723B4DA91744ED5CBE" Content-Language: en-US X-Virus-Scanned: clamav-milter 0.98.7 at hermes X-Virus-Status: Clean X-Spam-Status: No, score=-28.0 required=5.0 tests=ALL_TRUSTED,DYN_HAM_COORD, DYN_HAM_IT,DYN_HAM_NAUTICAL,HTML_MESSAGE autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on hermes.gatewaynet.com List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------D4D80A723B4DA91744ED5CBE Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 23/08/2018 22:40, Nikolay Samokhvalov wrote: > On Thu, Aug 23, 2018 at 11:44 AM Joshua D. Drake > wrote: > > On 08/23/2018 04:47 AM, Achilleas Mantzios wrote: > > On 23/08/2018 14:30, Sonam Sharma wrote: > >> No, I didn't. The version is not compatible with application, so need > >> to downgrade it > > > > Have you tried to tweak postgresql.conf ? > > What do you mean is not compatible? What's the problem? > > My guess would be that they have a vendor supported application that is > *only* supported on 9.5. I run into this more often than I like. > > > Same story. > > I suppose it's related (at least partially) xlog->wal and **_location->**_lsn renamings in function names (full list made in Postgres 10: > https://wiki.postgresql.org/wiki/New_in_postgres_10#Renaming_of_.22xlog.22_to_.22wal.22_Globally_.28and_location.2Flsn.29) > Those 10's changes are really painful. > > I wish there were be some grace period, say 2-3 years, when both pg*_xlog_* function names would also work as aliases for pg*_wal_**. yes this is true for scripts, monitoring, but for app? I doubt many apps depend on wal/lsn related functions. > > BTW, if the reason of downgrading is really related only these renamings, it might be less stressful just to create function aleases, like: > > create function pg_catalog.pg_last_xlog_receive_location() returns pg_lsn as $$ >   select pg_current_wal_lsn(); > $$ language sql; > > > + granting proper permissions to specified DB roles, where needed. > > Of course, it's hacky and should be only as a temporary solution until the app is adjusted to support Postgres 10+. > But it gives an ability to have all good things added to Postgres 9.6 and 10. -- Achilleas Mantzios IT DEV Lead IT DEPT Dynacom Tankers Mgmt --------------D4D80A723B4DA91744ED5CBE Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit
On 23/08/2018 22:40, Nikolay Samokhvalov wrote:
On Thu, Aug 23, 2018 at 11:44 AM Joshua D. Drake <jd@commandprompt.com> wrote:
On 08/23/2018 04:47 AM, Achilleas Mantzios wrote:
> On 23/08/2018 14:30, Sonam Sharma wrote:
>> No, I didn't. The version is not compatible with application, so need
>> to downgrade it
>
> Have you tried to tweak postgresql.conf ?
> What do you mean is not compatible? What's the problem?

My guess would be that they have a vendor supported application that is
*only* supported on 9.5. I run into this more often than I like.

Same story.

I suppose it's related (at least partially) xlog->wal and **_location->**_lsn renamings in function names (full list made in Postgres 10: https://wiki.postgresql.org/wiki/New_in_postgres_10#Renaming_of_.22xlog.22_to_.22wal.22_Globally_.28and_location.2Flsn.29)
Those 10's changes are really painful.

I wish there were be some grace period, say 2-3 years, when both pg*_xlog_* function names would also work as aliases for pg*_wal_**.
yes this is true for scripts, monitoring, but for app? I doubt many apps depend on wal/lsn related functions.

BTW, if the reason of downgrading is really related only these renamings, it might be less stressful just to create function aleases, like:

create function pg_catalog.pg_last_xlog_receive_location() returns pg_lsn as $$
  select pg_current_wal_lsn();
$$ language sql;

+ granting proper permissions to specified DB roles, where needed.

Of course, it's hacky and should be only as a temporary solution until the app is adjusted to support Postgres 10+.
But it gives an ability to have all good things added to Postgres 9.6 and 10.


-- 
Achilleas Mantzios
IT DEV Lead
IT DEPT
Dynacom Tankers Mgmt
--------------D4D80A723B4DA91744ED5CBE--