before going into queue behind person with higher piority.
+PostgreSQL 6.5 Fri Apr 23 17:40:19 EDT 1999
+=========================================================
+
+A dump/restore is required.
+
+PLACE HOLDER
+
PostgreSQL 6.4.2 Sat Jan 2 11:04:05 EST 1999
=========================================================
<Abstract>
<Para>
Complete installation instructions for
-<ProductName>Postgres</ProductName> v6.4.
+<ProductName>Postgres</ProductName> v6.5.
</Para>
</Abstract>
<Step Performance="required">
<Para>
Ftp file
-<ulink url="ftp://ftp.postgresql.org/pub/postgresql-v6.4.tar.gz">
- <filename>ftp://ftp.postgresql.org/pub/postgresql-v6.4.tar.gz</filename></ulink>
+<ulink url="ftp://ftp.postgresql.org/pub/postgresql-v6.5.tar.gz">
+ <filename>ftp://ftp.postgresql.org/pub/postgresql-v6.5.tar.gz</filename></ulink>
from the Internet. Store it in your home directory.
</Para>
</Step>
<ProgramListing>
$ cd
-$ gunzip -c postgresql-v6.4.tar.gz \
+$ gunzip -c postgresql-v6.5.tar.gz \
| tar xvf - src/bin/pg_dump/pg_dumpall
$ chmod a+x src/bin/pg_dump/pg_dumpall
$ src/bin/pg_dump/pg_dumpall -z > db.out
Unzip and untar the new source file. Type
<ProgramListing>
$ cd /usr/src/pgsql
-$ gunzip -c ~/postgresql-v6.4.tar.gz | tar xvf -
+$ gunzip -c ~/postgresql-v6.5.tar.gz | tar xvf -
</ProgramListing>
</Para>
</Step>
<listitem>
<Para>
For a i686/Linux-ELF platform, no tests failed since this is the
- v6.4 regression testing reference platform.
-</Para>
-</listitem>
-
-<listitem>
-<Para>
- For the SPARC/Linux-ELF platform, using the 970525 beta version of
- <ProductName>Postgres</ProductName> v6.2 the following tests "failed":
- float8 and geometry "failed" due to minor precision differences in
- floating point numbers. select_views produces massively different output,
- but the differences are due to minor floating point differences.
+ v6.5 regression testing reference platform.
</Para>
</listitem>
<Para>
Clean up after yourself. Type
<ProgramListing>
-$ rm -rf /usr/src/pgsql_6_0
-$ rm -rf /usr/local/pgsql_6_0
+$ rm -rf /usr/src/pgsql_6_5
+$ rm -rf /usr/local/pgsql_6_5
# Also delete old database directory tree if it is not in
-# /usr/local/pgsql_6_0/data
-$ rm ~/postgresql-v6.2.1.tar.gz
+# /usr/local/pgsql_6_5/data
+$ rm ~/postgresql-v6.5.tar.gz
</ProgramListing>
</Para>
</Step>
<itemizedlist>
<listitem>
<para>
-The version of <ProductName>Postgres</ProductName> (v6.4, 6.3.2, beta 981014, etc.).
+The version of <ProductName>Postgres</ProductName> (v6.5, 6.4.2, beta 981014, etc.).
</para>
</listitem>
ifdef BSD_SHLIB
ifeq ($(DLSUFFIX), .so)
install-shlib-dep := install-shlib
- shlib := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
+ shlib := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
LDFLAGS_SL += -shared
CFLAGS += $(CFLAGS_SL)
endif
ifeq ($(DLSUFFIX), .o)
install-shlib-dep := install-shlib
- shlib := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
- LD := shlicc
+ shlib := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
+ LD := shlicc
LDFLAGS_SL += -O -r
CFLAGS += $(CFLAGS_SL)
endif
/* ------------------------
* If someone with a greater priority is waiting for the lock,
* do not continue and share the lock, even if we can. bjm
+ * Don't do this if the process already has some locks, because
+ * this could hold up other people waiting on our locks, causing
+ * a priority inversion. bjm
* ------------------------
*/
int myprio = LockMethodTable[lockmethod]->ctl->prio[lockmode];
PROC_QUEUE *waitQueue = &(lock->waitProcs);
PROC *topproc = (PROC *) MAKE_PTR(waitQueue->links.prev);
- if (waitQueue->size && topproc->prio > myprio)
+ if (SHMQueueEmpty(lockQueue) && waitQueue->size &&
+ topproc->prio > myprio)
{
XID_PRINT("LockResolveConflicts: higher priority proc waiting",
result);
*
* The lock we are waiting for is already in MyProc->lockQueue so we
* need to skip it here. We are trying to find it in someone
- * else's lockQueue.
+ * else's lockQueue. bjm
*/
if (lock == findlock && !skip_check)
return true;
*
* Basically, the test is, "Do we both hold some lock on
* findlock, and we are both waiting in the lock
- * queue?"
+ * queue?" bjm
*/
Assert(skip_check);
* hold locks and are waiting. Now we check for
* cases where we have two or more tables in a
* deadlock. We do this by continuing to search
- * for someone holding a lock
+ * for someone holding a lock bjm
*/
if (DeadLockCheck(&(proc->lockQueue), findlock, false))
return true;
* In a full queue, we would have a reader holding a lock, then a writer
* gets the lock, then a bunch of readers, made up of readers who
* could not share the first readlock because a writer was waiting,
- * and new readers arriving while the writer had the lock.
- *
+ * and new readers arriving while the writer had the lock. bjm
*/
proc = (PROC *) MAKE_PTR(waitQueue->links.prev);