[patch] use macro in setup script

From: "Wang, Shenhao" <wangsh(dot)fnst(at)cn(dot)fujitsu(dot)com>
To: "pgsql-pkg-yum(at)lists(dot)postgresql(dot)org" <pgsql-pkg-yum(at)lists(dot)postgresql(dot)org>
Subject: [patch] use macro in setup script
Date: 2019-03-04 10:53:55
Message-ID: 63580B24E208E3429D94153A03C68E0901A68A6C28@G08CNEXMBPEKD02.g08.fujitsu.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-pkg-yum

Hi, everyone,

I found that in script postgresql-11-setup, there are some codes

# Log file for pg_upgrade
PGUPLOG=/var/lib/pgsql/$PGMAJORVERSION/pgupgrade.log
# Log file for initdb
PGLOG=/var/lib/pgsql/11/initdb.log

Maybe using macro $PGMAJORVERSION is better instead of using 11 directly.
And I found that in postgresql-11-setup, this problem has been modified by this <https://git.postgresql.org/gitweb/?p=pgrpms.git;a=commitdiff;h=890ab0c668e47097c3a08341d80b5208c3d5b7bb> commit.

So, patch is attached

Regards;
Shenhao, Wang

-----------------------
Shenhao, Wang
DX3
Nanjing Fujitsu Nanda Software Tech. Co., Ltd.(FNST)
EMail:wangsh(dot)fnst(at)cn(dot)fujitsu(dot)com

Attachment Content-Type Size
pgrpm_PGLOG_version_use_macro.patch application/octet-stream 992 bytes

Responses

Browse pgsql-pkg-yum by date

  From Date Subject
Next Message Justin Pryzby 2019-03-06 21:12:57 postGERS (sic)
Previous Message Chapman Flack 2019-02-27 19:38:51 Re: PL/Java 1.5.2 - fixes one regression in date conversion in 1.5.1