Re: [PERFORM] Disable-spinlocks while compiling postgres 9.1 for ARM Cortex A8

From: Jayashankar K B <Jayashankar(dot)KB(at)lnties(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: [PERFORM] Disable-spinlocks while compiling postgres 9.1 for ARM Cortex A8
Date: 2012-02-23 21:09:10
Message-ID: 1365276B7BDA4C40A519F0B4088230B309710B38@POCITMSEXMB03.LntUniverse.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-performance

Hi Tom,

Sorry about the cross-post.
I am not aware of the procedures for patch etc.
Could you please tell me how to use the patch ?
I have already compiled and got the postgres server.
So please let me know the process of patching or kindly point me to a link which explain this.

Thanks and Regards
Jayashankar

-----Original Message-----
From: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
Sent: 24 February 2012 AM 09:20
To: Jayashankar K B
Cc: pgsql-general(at)postgresql(dot)org; pgsql-performance(at)postgresql(dot)org
Subject: Re: [PERFORM] Disable-spinlocks while compiling postgres 9.1 for ARM Cortex A8

Jayashankar K B <Jayashankar(dot)KB(at)lnties(dot)com> writes:
> Hi All,
> I am trying to compile Postgres Source code for ARM cortex A8 architecture.
> While compiling, I got an error message which read "selected processor does not support `swpb r4,r4,[r3]' "
> One of the Postgres forums at the location "http://postgresql.1045698.n5.nabble.com/BUG-6331-Cross-compile-error-aborts-Works-if-disable-spinlock-is-used-td5068738.html"
> Mentioned that by using -disable-spinlocks, we can overcome the error at the cost of performance. I did the same and it compiled successfully.
> But the INSTALL guide in Postgres source code mentioned that I should inform the Postgres community in case I am forced to use -disable spinlocks to let the code compile.
> Hence this email. So please suggest me what I should do now.

Try this patch:
http://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=068e08eebbb2204f525647daad3fe15063b77820

BTW, please don't cross-post to multiple PG mailing lists; there's very seldom a good reason to do that.

regards, tom lane

Larsen & Toubro Limited

www.larsentoubro.com

This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2012-02-23 21:10:50 Re: Upgrade to 9.1 causing function problem
Previous Message John R Pierce 2012-02-23 21:08:18 Re: Upgrade to 9.1 causing function problem

Browse pgsql-performance by date

  From Date Subject
Next Message Peter van Hardenberg 2012-02-23 21:11:14 Re: set autovacuum=off
Previous Message Alessandro Gagliardi 2012-02-23 21:07:46 Re: set autovacuum=off