Skip site navigation (1) Skip section navigation (2)

Re: [HACKERS] Current sources?

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: dg(at)illustra(dot)com (David Gould)
Cc: tih+mail(at)Hamartun(dot)Priv(dot)NO, scrappy(at)hub(dot)org, pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] Current sources?
Date: 1998-05-25 03:59:24
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
> This is a very nice way to do this. In general, if we can count on having
> GCC we should use the GCC inlines.
> Hmmmm, on that note, the current sources are factored:
>     #if defined(linux)
>         #if defined(x86)
>             // x86 code
>         #else if defined(sparc)
>            // sparc code
>         #endif
>     #else
>         // all non linux
>         ...
>     #endif
> I think that the real commonality might better be expressed as:
>     #if defined(gcc)
>         // all gcc variants
>     #else
>        // no gcc
>     #endif
> As GCC has a unique (but common to gcc!) "asm" facility. This would allow
> all the free unixes and many of the comercial ones to share the same
> asm implementation which should make it easier to get it right on all the
> platforms.
> Since I am planning another revision, does anyone object to this?

Sounds great.

> > On the weird side, after I updated to the current sources, the backend
> > dies on me whenever I try to delete a database, whether from psql with
> > 'drop database test' or from the command line with 'destroydb test'.
> Try making the 's_lock_test' target in src/backend/storage/buffer/Makefile.
> It will let you be sure that spinlocks are working.
> Just btw, I have been doing some testing based on Bruce's reservations about
> the inline vs call implementation of spinlocks, and will be posting an updated
> set of patches and the results of my testing "real soon now". 
> Now that I have at least anoncvs access to the current tree, I think I can
> do this with fewer iterations (crossing fingers...).

Bruce Momjian                          |  830 Blythe Avenue
maillist(at)candle(dot)pha(dot)pa(dot)us              |  Drexel Hill, Pennsylvania 19026
  +  If your life is a hard drive,     |  (610) 353-9879(w)
  +  Christ can be your backup.        |  (610) 853-3000(h)

In response to

pgsql-hackers by date

Next:From: Oliver ElphickDate: 1998-05-25 04:33:23
Subject: Use of password/crypt authentication
Previous:From: Bruce MomjianDate: 1998-05-25 03:57:58
Subject: Re: [HACKERS] Query cancel and OOB data

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group