Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jKQR4-0000W9-4J for pgsql-general@arkaria.postgresql.org; Fri, 03 Apr 2020 17:48:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jKQQX-00053s-6t for pgsql-general@arkaria.postgresql.org; Fri, 03 Apr 2020 17:48:21 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jKQQW-00053l-Hh for pgsql-general@lists.postgresql.org; Fri, 03 Apr 2020 17:48:20 +0000 Received: from sonic317-20.consmr.mail.gq1.yahoo.com ([98.137.66.146]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jKQQT-0002C6-Ln for pgsql-general@lists.postgresql.org; Fri, 03 Apr 2020 17:48:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1585936093; bh=h3/elGwWmzaAO0487yXXILrqiOkjBw/YysDDjJ71XcM=; h=Date:From:To:In-Reply-To:References:Subject:From:Subject; b=DrbWoGqj3xq5Il+7aLOrX/kpj0TmnazlPToZC6JaFCo3+sPptiCMRwrn2ChzwZ1gU3Lfrp6vTJIcv7/mQPOGQ0yasLEcQWiA1JCdMeWhcf4IHgqwFYwmBStaaZL8MFr3DEMp2MG/vdAKjSwyYKiuTGOz2hK3xTwd8XgBv7hZP1loGPmu+T0LMBJjIJLq1wiL4ZvfGa+SV7KdRDMN6zt3rCV7/u5Lxvkv7tYwJjLA299cuNeKnp8trCfOlkP3uGf9DcYfRKT38sEv2bwhrBKKZu3MdsIO5SaQ7ihycS15sgCi6xlHi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_0LzhAJWYjPKSp_KC2z7CuvE lFpvnorz3B9M_JusUODeLTtoUIhO7BcvZ02D5xXckxtCsOymJjcmSbDcBJiTXaxcTusJRXT.FDng JFxVR16ST0veeGROgSVkP8e54zS9OfuZGisZReR8KZgw_0hUpvI9NDfNvlzybwDO9oP8iGQq1NQL MduO6l37wmROPK4QIEkXe9rf7RHRfmz5WBJ4XyZ1bmStWyALzN8aSWfQtrHmCYoi.4VqDQQNej45 6ETbVDU4qseVxlGdOkGJlwauvjEX9pZc_f9AjRxZ4INLBvfhZwO3ocguGgNw0zN31tMAmP9t4sa_ ecN5R3bBmucTNU9g25Peca2uXJTssQuoClsd9uh6cM94- Received: from sonic.gate.mail.ne1.yahoo.com by sonic317.consmr.mail.gq1.yahoo.com with HTTP; Fri, 3 Apr 2020 17:48:13 +0000 Date: Fri, 3 Apr 2020 17:48:12 +0000 (UTC) From: Moses Mafusire To: "pgsql-general@lists.postgresql.org" , Adrian Klaver Message-ID: <1416529272.8976.1585936092215@mail.yahoo.com> In-Reply-To: <2d2867e3-91e9-f044-0521-25d501bb5803@aklaver.com> References: <1455749297.1247796.1585860011052.ref@mail.yahoo.com> <1455749297.1247796.1585860011052@mail.yahoo.com> <64267886-2561-891a-0334-760fda81cc9b@aklaver.com> <2128533583.79465.1585918430902@mail.yahoo.com> <02a52e7f-1316-714b-8ccb-f9095bbb3ca1@aklaver.com> <307276998.220288.1585931191960@mail.yahoo.com> <2d2867e3-91e9-f044-0521-25d501bb5803@aklaver.com> Subject: Re: Cstore_fdw issue. MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_8975_2025854037.1585936092213" X-Mailer: WebService/1.1.15620 YMailNorrin Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36 Content-Length: 9164 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ------=_Part_8975_2025854037.1585936092213 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Adrian,I really appreciate your help. I was able to open the file in a text= editor in centOS, but it's read-only. I cannot even replace the file. Any = tricks up your sleeves for me to edit this file. Thanks Moses=C2=A0 On Friday, April 3, 2020, 12:40:19 PM EDT, Adrian Klaver wrote: =20 =20 On 4/3/20 9:26 AM, Moses Mafusire wrote: > Hi Adrian, > Yes VERSION =3D PostgreSQL 12.1, is the only version I have. So I am=20 > novice to Linux and Postgres, where should I run this > /ifndef MAJORVERSION >=C2=A0 =C2=A0 =C2=A0 MAJORVERSION :=3D $(basename $(VERSION)) > endif > $(info=C2=A0 MAJORVERSION is $(MAJORVERSION))/ >=20 > and do I run as is or do I need to do something else, if so may you=20 > please assist. No you can't run the above by itself. In the directory you uncompressed=20 the files there will be a file named Makefile. In my case: aklaver@maura:~/test/cstore_fdw-1.7.0> ls -al ... -rw-r--r--=C2=A0 1 aklaver users=C2=A0 1814 Apr=C2=A0 3 08:37 Makefile ... Use a text editor to open that file and add the line: $(info=C2=A0 MAJORVERSION is $(MAJORVERSION)) Under the section: ifndef MAJORVERSION =C2=A0 =C2=A0 MAJORVERSION :=3D $(basename $(VERSION)) endif and save. Then run: PATH=3D/usr/pgsql-12/bin/:$PATH make >=20 > Thanks > *Moses * >=20 > On Friday, April 3, 2020, 11:39:57 AM EDT, Adrian Klaver=20 > wrote: >=20 >=20 > On 4/3/20 5:53 AM, Moses Mafusire wrote: >=C2=A0 > Hi Adrian, >=C2=A0 > Thanks for your response. Here is what I'm getting when I run=20 > /pg_config;/ >=20 >=C2=A0 > VERSION =3D PostgreSQL 12.1 >=20 > So that is the correct version. >=20 > Just to be clear there is only one version of Postgres on this machine, > correct? >=20 > Before you run make again, edit the Makefile so: >=20 > ifndef MAJORVERSION >=C2=A0 =C2=A0 =C2=A0 MAJORVERSION :=3D $(basename $(VERSION)) > endif >=20 > becomes: >=20 > ifndef MAJORVERSION >=C2=A0 =C2=A0 =C2=A0 MAJORVERSION :=3D $(basename $(VERSION)) > endif > $(info=C2=A0 MAJORVERSION is $(MAJORVERSION)) >=20 >=20 > When I run the above I get: >=20 > aklaver@maura :~/test/cstore_fdw-1.7.0>=20 > PATH=3D/usr/local/pgsql/bin/:$PATH > make > MAJORVERSION is 12 >=20 > ... >=20 > and the code compiles. >=20 >=20 >=20 >=C2=A0 > *Moses Mafusire* >=20 >=20 >=20 > --=20 > Adrian Klaver > adrian.klaver@aklaver.com --=20 Adrian Klaver adrian.klaver@aklaver.com =20 ------=_Part_8975_2025854037.1585936092213 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Adrian,
I really appreciate your help. I was able to open t= he file in a text editor in centOS, but it's read-only. I cannot even repla= ce the file. Any tricks up your sleeves for me to edit this file.

Thanks

<= div style=3D"font-family:Helvetica, Arial, sans-serif;font-size:16px;">Moses 

=
=20
=20
On Friday, April 3, 2020, 12:40:19 PM EDT, Adrian Klave= r <adrian.klaver@aklaver.com> wrote:


On 4/3/20 9:26 AM, Moses Mafusire wro= te:
> Hi Adrian,
> Yes VERSION = =3D PostgreSQL 12.1, is the only version I have. So I am
> novice to Linux and Postgres, where should I run this
> /ifndef MAJORVERSION
>      MAJ= ORVERSION :=3D $(basename $(VERSION))
> endif
> $(info  MAJORVERSION is $(MAJORVERSION))/
>
> and do I run as is or do I need to do som= ething else, if so may you
> please assist.

No you can't run the above by itself. In the d= irectory you uncompressed
the files there will be a file= named Makefile. In my case:

ak= laver@maura:~/test/cstore_fdw-1.7.0> ls -al

...
-rw-r--r--  1 aklaver users  1= 814 Apr  3 08:37 Makefile
...

Use a text editor to open that file and add the line:

$(info  MAJORVERSION is $(MAJORVERSION)= )

Under the section:


ifndef MAJORVERSION
    MAJORVERSION :=3D $(basename $(VERSION))
endif

and save.
Then run:

PATH=3D/usr/= pgsql-12/bin/:$PATH make


>
> Thanks
> *Moses *>
> On Friday, April 3, 2020, 11:= 39:57 AM EDT, Adrian Klaver
> <adrian.klaver@aklaver.com> wrote:
> =
>
> On 4/3/20 5:53 AM, Moses Ma= fusire wrote:
>  > Hi Adrian,
>  > Thanks for your response. Here is what I'm getting when I= run
> /pg_config;/
>
>  > VERSION =3D PostgreSQL 12.1
>= ;
> So that is the correct version.
>
> Just to be clear there is only one version of= Postgres on this machine,
> correct?
>
> Before you run make again, edit the Makefile= so:
>
> ifndef MAJORVERSION
>      MAJORVERSION :=3D $(basename $(VERS= ION))
> endif
>
> becomes:
>
> ifndef MAJOR= VERSION
>      MAJORVERSION :=3D $(base= name $(VERSION))
> endif
> $(info=   MAJORVERSION is $(MAJORVERSION))
>
>
> When I run the above I get:
>
> aklaver@maura <mailto:aklaver@maura>:~/test/cstore_fdw-1.7.0>
>= PATH=3D/usr/local/pgsql/bin/:$PATH
> make
> MAJORVERSION is 12
>
&g= t; ...
>
> and the code compiles= .
>
>
> >  > *Moses Mafusire*
> >
>
> -- > Adrian Klaver
> adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>



--=
Adrian Klaver
adrian.klaver@aklaver.com

<= br clear=3D"none">
------=_Part_8975_2025854037.1585936092213--