pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Christopher Kings-Lynne <chriskl@familyhealth.com.au>
Cc: David Terrell <dbt@meat.net>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Brent Verner <brent@rcfile.org>
Cc: Murray Prior Hobbs <murray@efone.com>
Cc: Lamar Owen <lamar.owen@wgcr.org>
Cc: pgsql-hackers@postgresql.org
Subject: Re: RTLD_LAZY considered harmful (Re: pltlc and pltlcu problems)
Date: Mon, 21 Jan 2002 08:09:36 -0500 (EST)
Message-ID: <200201211309.g0LD9a421146@candle.pha.pa.us> (raw)
In-Reply-To: <GNELIHDDFBOCMGBFGEFOGEBPCBAA.chriskl@familyhealth.com.au>

Christopher Kings-Lynne wrote:
> > On Sun, Jan 20, 2002 at 01:40:17PM -0500, Tom Lane wrote:
> > > What I would *like* to do is make the same change in all the
> > > port/dynloader files that reference RTLD_LAZY:
> > > 	src/backend/port/dynloader/openbsd.h
> >
> > I can't speak for other platforms but openbsd only has RTLD_LAZY.
> 
> FreeBSD supports both:
> 
>      RTLD_LAZY   Each external function reference is resolved when the func-
>                  tion is first called.
> 
>      RTLD_NOW    All external function references are bound immediately by
>                  dlopen().
> 
>      RTLD_LAZY is normally preferred, for reasons of efficiency.  However,
>      RTLD_NOW is useful to ensure that any undefined symbols are discovered
> 

Interesting LAZY has better efficiency.  Seems we should just keep LAZY
as our default for future releases and tell people if they link to bad
object files, they should expect trouble.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026



view thread (17+ messages)  latest in thread

Message-ID: <200201211309.g0LD9a421146@candle.pha.pa.us>
Permalink:  ../200201211309.g0LD9a421146@candle.pha.pa.us/
Also on:    postgresql.org/message-id/200201211309.g0LD9a421146@candle.pha.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: pgman@candle.pha.pa.us, chriskl@familyhealth.com.au, dbt@meat.net, tgl@sss.pgh.pa.us, brent@rcfile.org, murray@efone.com, lamar.owen@wgcr.org, pgsql-hackers@postgresql.org
  Subject: Re: RTLD_LAZY considered harmful (Re: pltlc and pltlcu problems)
  In-Reply-To: <200201211309.g0LD9a421146@candle.pha.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox