From 7cb4278e82f1fc18530f4ec0b2c5435b88fa7003 Mon Sep 17 00:00:00 2001
From: Bruce Momjian <bruce@momjian.us>
Date: Tue, 24 Jun 2003 23:19:11 +0000
Subject: [PATCH] Small patch to link to the proper place in the "runtime"
 file, and to add the "schemaname" column to the description of the pg_stats
 view.

Greg Sabino Mullane
---
 doc/src/sgml/perform.sgml    | 10 ++++++++--
 src/include/storage/s_lock.h |  6 +++---
 2 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/doc/src/sgml/perform.sgml b/doc/src/sgml/perform.sgml
index 326c7e6134a..a839e8f466d 100644
--- a/doc/src/sgml/perform.sgml
+++ b/doc/src/sgml/perform.sgml
@@ -1,5 +1,5 @@
 <!--
-$Header: /cvsroot/pgsql/doc/src/sgml/perform.sgml,v 1.28 2003/03/25 16:15:37 petere Exp $
+$Header: /cvsroot/pgsql/doc/src/sgml/perform.sgml,v 1.29 2003/06/24 23:19:10 momjian Exp $
 -->
 
  <chapter id="performance-tips">
@@ -66,7 +66,7 @@ $Header: /cvsroot/pgsql/doc/src/sgml/perform.sgml,v 1.28 2003/03/25 16:15:37 pet
     estimates are converted into disk-page units using some
     fairly arbitrary fudge factors. If you want to experiment with these
     factors, see the list of run-time configuration parameters in
-    <xref linkend="runtime-config">.)
+    <xref linkend="runtime-config-optimizer">.)
    </para>
 
    <para>
@@ -435,6 +435,12 @@ SELECT attname, n_distinct, most_common_vals FROM pg_stats WHERE tablename = 'ro
     </thead>
 
     <tbody>
+     <row>
+      <entry><literal>schemaname</literal></entry>
+      <entry><type>name</type></entry>
+      <entry>Name of the schema containing the table.</entry>
+     </row>
+
      <row>
       <entry><literal>tablename</literal></entry>
       <entry><type>name</type></entry>
diff --git a/src/include/storage/s_lock.h b/src/include/storage/s_lock.h
index b26c63029ad..a37ea9b9ae2 100644
--- a/src/include/storage/s_lock.h
+++ b/src/include/storage/s_lock.h
@@ -63,7 +63,7 @@
  * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
  * Portions Copyright (c) 1994, Regents of the University of California
  *
- *	  $Id: s_lock.h,v 1.107 2003/06/05 16:07:25 petere Exp $
+ *	  $Id: s_lock.h,v 1.108 2003/06/24 23:19:11 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -94,7 +94,7 @@
  */
 
 
-#if defined(__i386__)
+#if defined(__i386__) || defined(__x86_64__)
 #define TAS(lock) tas(lock)
 
 static __inline__ int
@@ -110,7 +110,7 @@ tas(volatile slock_t *lock)
 	return (int) _res;
 }
 
-#endif	 /* __i386__ */
+#endif	 /* __i386__ || __x86_64__ */
 
 
 #ifdef __ia64__
-- 
GitLab