Go to file
Bruce Momjian 50938576d4 I tried to build PostgreSQL with the following step to see backends hung
during the regression test. The problem has been reproduced on two machine
but both of these are the same type of hardware and software. I also tried
to recreate the problem on other machines, on older version of AIX but I
couldn't.

After looked through pgsql-hackers mailing list, I focused on spin lock
issue to solve the problem. The easiest and may not be the best solution
for the problem is to give up HAS_TEST_AND_SET. This actually works.

One another and better solution for the problem is to use _check_lock() and
_clear_lock() as spin lock.  Important thing here is to define S_UNLOCK()
with _clear_lock().  This will solve the so called "Compiler bug" issue
someone wrote on the mailing list.

We have some other API such as cs(), compare_and_swap() and fetch_and_or()
to do test and set on AIX, but any of these didn't solve my problem.  I
wrote tiny testing program to see if we have any bug of these API of AIX,
but I couldn't see any problem except for compare_and_swap(). It seems that
you can not use compare_and_swap() for the purpose, as it would not work as
spin lock on any SMP machines I tested.  I don't know the reason why cs()
nor fetch_and_or()/fetch_and_and() will not work with PostgreSQL on p690.
These worked with my testing program on all machines I tested.

Tomoyuki Niijima
2002-09-02 04:42:52 +00:00
config Assemble portability modules into libpgport library. 2002-07-27 20:10:05 +00:00
contrib Code review for HeapTupleHeader changes. Add version number to page headers 2002-09-02 01:05:06 +00:00
doc Code review for HeapTupleHeader changes. Add version number to page headers 2002-09-02 01:05:06 +00:00
src I tried to build PostgreSQL with the following step to see backends hung 2002-09-02 04:42:52 +00:00
COPYRIGHT Update copyright to 2002. 2002-06-20 20:29:54 +00:00
GNUmakefile.in perl5 interface moved to gborg 2002-08-30 13:06:22 +00:00
HISTORY Update docs for 7.2.2 release info. 2002-08-25 14:34:24 +00:00
INSTALL Remove all traces of the ODBC driver, which is now on GBorg as the psqlodbc 2002-08-22 22:43:14 +00:00
Makefile Restructure the key include files per recent pghackers discussion: there 2001-02-10 02:31:31 +00:00
README Remove all traces of the ODBC driver, which is now on GBorg as the psqlodbc 2002-08-22 22:43:14 +00:00
aclocal.m4 Upgrade to Autoconf version 2.53. Replaced many custom macro 2002-03-29 17:32:55 +00:00
configure Run autoconf. 2002-08-30 17:16:42 +00:00
configure.in Update documentation for --with-perl. 2002-08-30 17:14:30 +00:00
register.txt Stamp 7.2 for release. 2002-02-03 21:00:09 +00:00

README

PostgreSQL Database Management System
=====================================
  
This directory contains the source code distribution of the PostgreSQL
database management system.

PostgreSQL is an advanced object-relational database management system
that supports an extended subset of the SQL standard, including
transactions, foreign keys, subqueries, triggers, user-defined types
and functions.  This distribution also contains several language
bindings, including C, Perl, Python, and Tcl, as well as drivers
for JDBC.

As of v7.3, the ODBC and C++ interfaces have been moved over to the
PostgreSQL Projects WebSite @ http://gborg.postgresql.org.

See the file INSTALL for instructions on how to build and install
PostgreSQL.  That file also lists supported operating systems and
hardware platforms and contains information regarding any other
software packages that are required to build or run the PostgreSQL
system.  Changes between all PostgreSQL releases are recorded in the
file HISTORY.  Copyright and license information can be found in the
file COPYRIGHT.  A comprehensive documentation set is included in this
distribution; it can be read as described in the installation
instructions.

The latest version of this software may be obtained at
ftp://ftp.postgresql.org/pub/.  For more information look at our web
site located at http://www.postgresql.org/.