Re: BUG #2969: Inaccuracies in Solaris FAQ

Lists: pgsql-bugspgsql-patches
From: "Rich Teer" <rich(dot)teer(at)rite-group(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #2969: Inaccuracies in Solaris FAQ
Date: 2007-02-05 19:16:35
Message-ID: 200702051916.l15JGZeA045967@wwwmaster.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs pgsql-patches


The following bug has been logged online:

Bug reference: 2969
Logged by: Rich Teer
Email address: rich(dot)teer(at)rite-group(dot)com
PostgreSQL version: 8.2.2
Operating system: Solaris 10
Description: Inaccuracies in Solaris FAQ
Details:

Hi there,

First, many thanks for providing the best open source database! I've
spotted a couple of errors/bits of bad advice in doc/FAQ_Solaris, which I
think should be updated.

1. The answer to question 3 (Why does configure complain about a failed test
program?) says to set LD_LIBRARY_PATH to point to the directory containing
the missing libs. While this does work (as does the other suggestion of
using LD_RUN_PATH), the correct answer to this question is to include the
library's path in the executable by using the -R flag, thus avoiding the
need for the end user to mess about with environment variables. For
example, I use "LDFLAGS=-R/usr/sfw/lib ./configure ..." to build Postgres
which uses Sun's OpenSSL.

2. The answer to question 8 (Can I use DTrace for tracing PostgreSQL?) says
that Solaris 10u3 or newer is required to handle probes in static functions.
Unfortunately, this is not the case. DTrace can't be enabled when using
update 3 (aka 11/06); the (as yet unreleased) update 4 or newer is
required.

Thanks for reading!

Rich Teer,
Author of Solaris Systems Programming


From: Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM>
To: Rich Teer <rich(dot)teer(at)rite-group(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #2969: Inaccuracies in Solaris FAQ
Date: 2007-02-12 15:45:32
Message-ID: 45D08B9C.9020506@sun.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs pgsql-patches

Rich Teer wrote:
> The following bug has been logged online:
>
> Bug reference: 2969
> Logged by: Rich Teer
> Email address: rich(dot)teer(at)rite-group(dot)com
> PostgreSQL version: 8.2.2
> Operating system: Solaris 10
> Description: Inaccuracies in Solaris FAQ
> Details:
>
> Hi there,
>
> First, many thanks for providing the best open source database! I've
> spotted a couple of errors/bits of bad advice in doc/FAQ_Solaris, which I
> think should be updated.
>
> 1. The answer to question 3 (Why does configure complain about a failed test
> program?) says to set LD_LIBRARY_PATH to point to the directory containing
> the missing libs. While this does work (as does the other suggestion of
> using LD_RUN_PATH), the correct answer to this question is to include the
> library's path in the executable by using the -R flag, thus avoiding the
> need for the end user to mess about with environment variables. For
> example, I use "LDFLAGS=-R/usr/sfw/lib ./configure ..." to build Postgres
> which uses Sun's OpenSSL.

Yes you have right we use -R for official Solaris package as well. Good
comment.

> 2. The answer to question 8 (Can I use DTrace for tracing PostgreSQL?) says
> that Solaris 10u3 or newer is required to handle probes in static functions.
> Unfortunately, this is not the case. DTrace can't be enabled when using
> update 3 (aka 11/06); the (as yet unreleased) update 4 or newer is
> required.

Original plan was release new version of DTrace in the update 3. Thanks
for comment. But if you want to use Dtrace on Solaris 10u3 or older you
can remove static from affected function in the transaction manager. It
is not much clean but it works.


Thanks for the comments and I will prepare a patch asap together with
another improvements.

Thanks Zdenek


From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM>
Cc: Rich Teer <rich(dot)teer(at)rite-group(dot)com>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #2969: Inaccuracies in Solaris FAQ
Date: 2007-02-19 21:25:36
Message-ID: 200702192125.l1JLPad18216@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs pgsql-patches


I have not seen an updated patch for FAQ_Solaris yet.

---------------------------------------------------------------------------

Zdenek Kotala wrote:
> Rich Teer wrote:
> > The following bug has been logged online:
> >
> > Bug reference: 2969
> > Logged by: Rich Teer
> > Email address: rich(dot)teer(at)rite-group(dot)com
> > PostgreSQL version: 8.2.2
> > Operating system: Solaris 10
> > Description: Inaccuracies in Solaris FAQ
> > Details:
> >
> > Hi there,
> >
> > First, many thanks for providing the best open source database! I've
> > spotted a couple of errors/bits of bad advice in doc/FAQ_Solaris, which I
> > think should be updated.
> >
> > 1. The answer to question 3 (Why does configure complain about a failed test
> > program?) says to set LD_LIBRARY_PATH to point to the directory containing
> > the missing libs. While this does work (as does the other suggestion of
> > using LD_RUN_PATH), the correct answer to this question is to include the
> > library's path in the executable by using the -R flag, thus avoiding the
> > need for the end user to mess about with environment variables. For
> > example, I use "LDFLAGS=-R/usr/sfw/lib ./configure ..." to build Postgres
> > which uses Sun's OpenSSL.
>
> Yes you have right we use -R for official Solaris package as well. Good
> comment.
>
> > 2. The answer to question 8 (Can I use DTrace for tracing PostgreSQL?) says
> > that Solaris 10u3 or newer is required to handle probes in static functions.
> > Unfortunately, this is not the case. DTrace can't be enabled when using
> > update 3 (aka 11/06); the (as yet unreleased) update 4 or newer is
> > required.
>
> Original plan was release new version of DTrace in the update 3. Thanks
> for comment. But if you want to use Dtrace on Solaris 10u3 or older you
> can remove static from affected function in the transaction manager. It
> is not much clean but it works.
>
>
> Thanks for the comments and I will prepare a patch asap together with
> another improvements.
>
>
> Thanks Zdenek
>
> ---------------------------(end of broadcast)---------------------------
> TIP 7: You can help support the PostgreSQL project by donating at
>
> http://www.postgresql.org/about/donate

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://www.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +


From: Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: Rich Teer <rich(dot)teer(at)rite-group(dot)com>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #2969: Inaccuracies in Solaris FAQ
Date: 2007-02-21 14:28:06
Message-ID: 45DC56F6.6040507@sun.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs pgsql-patches

I work on it. It will be ready until Friday.

Zdenek

Bruce Momjian wrote:
> I have not seen an updated patch for FAQ_Solaris yet.
>
> ---------------------------------------------------------------------------
>
> Zdenek Kotala wrote:
>> Rich Teer wrote:
>>> The following bug has been logged online:
>>>
>>> Bug reference: 2969
>>> Logged by: Rich Teer
>>> Email address: rich(dot)teer(at)rite-group(dot)com
>>> PostgreSQL version: 8.2.2
>>> Operating system: Solaris 10
>>> Description: Inaccuracies in Solaris FAQ
>>> Details:
>>>
>>> Hi there,
>>>
>>> First, many thanks for providing the best open source database! I've
>>> spotted a couple of errors/bits of bad advice in doc/FAQ_Solaris, which I
>>> think should be updated.
>>>
>>> 1. The answer to question 3 (Why does configure complain about a failed test
>>> program?) says to set LD_LIBRARY_PATH to point to the directory containing
>>> the missing libs. While this does work (as does the other suggestion of
>>> using LD_RUN_PATH), the correct answer to this question is to include the
>>> library's path in the executable by using the -R flag, thus avoiding the
>>> need for the end user to mess about with environment variables. For
>>> example, I use "LDFLAGS=-R/usr/sfw/lib ./configure ..." to build Postgres
>>> which uses Sun's OpenSSL.
>> Yes you have right we use -R for official Solaris package as well. Good
>> comment.
>>
>>> 2. The answer to question 8 (Can I use DTrace for tracing PostgreSQL?) says
>>> that Solaris 10u3 or newer is required to handle probes in static functions.
>>> Unfortunately, this is not the case. DTrace can't be enabled when using
>>> update 3 (aka 11/06); the (as yet unreleased) update 4 or newer is
>>> required.
>> Original plan was release new version of DTrace in the update 3. Thanks
>> for comment. But if you want to use Dtrace on Solaris 10u3 or older you
>> can remove static from affected function in the transaction manager. It
>> is not much clean but it works.
>>
>>
>> Thanks for the comments and I will prepare a patch asap together with
>> another improvements.
>>
>>
>> Thanks Zdenek
>>
>> ---------------------------(end of broadcast)---------------------------
>> TIP 7: You can help support the PostgreSQL project by donating at
>>
>> http://www.postgresql.org/about/donate
>


From: Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM>
To: Rich Teer <rich(dot)teer(at)rite-group(dot)com>, pgsql-patches(at)postgresql(dot)org
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #2969: Inaccuracies in Solaris FAQ
Date: 2007-02-23 16:15:57
Message-ID: 45DF133D.2010606@sun.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs pgsql-patches

There is Solaris FAQ update. Please, look on it and let me know any
comments.

Thanks Zdenek

Rich Teer wrote:
> The following bug has been logged online:
>
> Bug reference: 2969
> Logged by: Rich Teer
> Email address: rich(dot)teer(at)rite-group(dot)com
> PostgreSQL version: 8.2.2
> Operating system: Solaris 10
> Description: Inaccuracies in Solaris FAQ
> Details:
>
> Hi there,
>
> First, many thanks for providing the best open source database! I've
> spotted a couple of errors/bits of bad advice in doc/FAQ_Solaris, which I
> think should be updated.
>
> 1. The answer to question 3 (Why does configure complain about a failed test
> program?) says to set LD_LIBRARY_PATH to point to the directory containing
> the missing libs. While this does work (as does the other suggestion of
> using LD_RUN_PATH), the correct answer to this question is to include the
> library's path in the executable by using the -R flag, thus avoiding the
> need for the end user to mess about with environment variables. For
> example, I use "LDFLAGS=-R/usr/sfw/lib ./configure ..." to build Postgres
> which uses Sun's OpenSSL.
>
> 2. The answer to question 8 (Can I use DTrace for tracing PostgreSQL?) says
> that Solaris 10u3 or newer is required to handle probes in static functions.
> Unfortunately, this is not the case. DTrace can't be enabled when using
> update 3 (aka 11/06); the (as yet unreleased) update 4 or newer is
> required.
>
> Thanks for reading!
>
> Rich Teer,
> Author of Solaris Systems Programming
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster

Attachment Content-Type Size
FAQ.patch text/x-patch 3.1 KB

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM>
Cc: Rich Teer <rich(dot)teer(at)rite-group(dot)com>, pgsql-patches(at)postgresql(dot)org, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #2969: Inaccuracies in Solaris FAQ
Date: 2007-02-23 18:38:26
Message-ID: 200702231838.l1NIcQE07351@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs pgsql-patches


Patch applied. Thanks.

---------------------------------------------------------------------------

Zdenek Kotala wrote:
>
>
> There is Solaris FAQ update. Please, look on it and let me know any
> comments.
>
> Thanks Zdenek
>
>
> Rich Teer wrote:
> > The following bug has been logged online:
> >
> > Bug reference: 2969
> > Logged by: Rich Teer
> > Email address: rich(dot)teer(at)rite-group(dot)com
> > PostgreSQL version: 8.2.2
> > Operating system: Solaris 10
> > Description: Inaccuracies in Solaris FAQ
> > Details:
> >
> > Hi there,
> >
> > First, many thanks for providing the best open source database! I've
> > spotted a couple of errors/bits of bad advice in doc/FAQ_Solaris, which I
> > think should be updated.
> >
> > 1. The answer to question 3 (Why does configure complain about a failed test
> > program?) says to set LD_LIBRARY_PATH to point to the directory containing
> > the missing libs. While this does work (as does the other suggestion of
> > using LD_RUN_PATH), the correct answer to this question is to include the
> > library's path in the executable by using the -R flag, thus avoiding the
> > need for the end user to mess about with environment variables. For
> > example, I use "LDFLAGS=-R/usr/sfw/lib ./configure ..." to build Postgres
> > which uses Sun's OpenSSL.
> >
> > 2. The answer to question 8 (Can I use DTrace for tracing PostgreSQL?) says
> > that Solaris 10u3 or newer is required to handle probes in static functions.
> > Unfortunately, this is not the case. DTrace can't be enabled when using
> > update 3 (aka 11/06); the (as yet unreleased) update 4 or newer is
> > required.
> >
> > Thanks for reading!
> >
> > Rich Teer,
> > Author of Solaris Systems Programming
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 2: Don't 'kill -9' the postmaster
>

>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://www.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +


From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-bugs(at)postgresql(dot)org
Cc: Zdenek Kotala <Zdenek(dot)Kotala(at)sun(dot)com>, Rich Teer <rich(dot)teer(at)rite-group(dot)com>, pgsql-patches(at)postgresql(dot)org
Subject: Re: BUG #2969: Inaccuracies in Solaris FAQ
Date: 2007-02-23 19:56:29
Message-ID: 200702232056.30030.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs pgsql-patches

Zdenek Kotala wrote:
> There is Solaris FAQ update. Please, look on it and let me know any
> comments.

The actual answer to the question "Can I compile PostgreSQL with
Kerberos v5 support?" is "Yes, why not?". I don't think "Can I use
this weird internal private library that seems to provide a similar
interface?" is a "Frequently Asked Question".

--
Peter Eisentraut
http://developer.postgresql.org/~petere/


From: Rich Teer <rich(dot)teer(at)rite-group(dot)com>
To: Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM>
Cc: pgsql-patches(at)postgresql(dot)org, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #2969: Inaccuracies in Solaris FAQ
Date: 2007-02-23 20:08:03
Message-ID: Pine.SOL.4.64.0702231207020.29440@marrakesh
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs pgsql-patches

On Fri, 23 Feb 2007, Zdenek Kotala wrote:

> There is Solaris FAQ update. Please, look on it and let me know any comments.

Very minor grammatical nits aside, it looks fine to me.
Thanks for updating the FAQ!

Cheers,

--
Rich Teer, SCSA, SCNA, SCSECA, OpenSolaris CAB member

President,
Rite Online Inc.

Voice: +1 (250) 979-1638
URL: http://www.rite-group.com/rich

Attachment Content-Type Size
FAQ.patch text/x-patch 3.1 KB

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-bugs(at)postgresql(dot)org, Zdenek Kotala <Zdenek(dot)Kotala(at)sun(dot)com>, Rich Teer <rich(dot)teer(at)rite-group(dot)com>, pgsql-patches(at)postgresql(dot)org
Subject: Re: BUG #2969: Inaccuracies in Solaris FAQ
Date: 2007-02-26 15:21:23
Message-ID: 200702261521.l1QFLNm21346@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs pgsql-patches

Peter Eisentraut wrote:
> Zdenek Kotala wrote:
> > There is Solaris FAQ update. Please, look on it and let me know any
> > comments.
>
> The actual answer to the question "Can I compile PostgreSQL with
> Kerberos v5 support?" is "Yes, why not?". I don't think "Can I use
> this weird internal private library that seems to provide a similar
> interface?" is a "Frequently Asked Question".

I don't use Solaris so I don't know if it is frequent issue or not.
I assume the author knows.

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://www.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +


From: Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-bugs(at)postgresql(dot)org, Rich Teer <rich(dot)teer(at)rite-group(dot)com>, pgsql-patches(at)postgresql(dot)org
Subject: Re: [PATCHES] BUG #2969: Inaccuracies in Solaris FAQ
Date: 2007-02-27 12:42:24
Message-ID: 45E42730.1010606@sun.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs pgsql-patches

Peter Eisentraut wrote:
> Zdenek Kotala wrote:
>> There is Solaris FAQ update. Please, look on it and let me know any
>> comments.
>
> The actual answer to the question "Can I compile PostgreSQL with
> Kerberos v5 support?" is "Yes, why not?". I don't think "Can I use
> this weird internal private library that seems to provide a similar
> interface?" is a "Frequently Asked Question".
>

You have right that it is not frequent question, but my colleagues have
bad experience with people who did it with samba server and it is only
warning "don't do that" for people who want to try it.

If you guess that it is not important, do not hesitate to remove it.

Zdenek


From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-bugs(at)postgresql(dot)org, Rich Teer <rich(dot)teer(at)rite-group(dot)com>, pgsql-patches(at)postgresql(dot)org
Subject: Re: [PATCHES] BUG #2969: Inaccuracies in Solaris FAQ
Date: 2007-02-27 19:10:22
Message-ID: 200702271910.l1RJAMf23363@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs pgsql-patches

Zdenek Kotala wrote:
> Peter Eisentraut wrote:
> > Zdenek Kotala wrote:
> >> There is Solaris FAQ update. Please, look on it and let me know any
> >> comments.
> >
> > The actual answer to the question "Can I compile PostgreSQL with
> > Kerberos v5 support?" is "Yes, why not?". I don't think "Can I use
> > this weird internal private library that seems to provide a similar
> > interface?" is a "Frequently Asked Question".
> >
>
> You have right that it is not frequent question, but my colleagues have
> bad experience with people who did it with samba server and it is only
> warning "don't do that" for people who want to try it.
>
> If you guess that it is not important, do not hesitate to remove it.

OK, removed.

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://www.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +