HPlogo ALLBASE/SQL Database Administration Guide: HP 3000 MPE/iX Computer Systems > Chapter 8  System Catalog

System.Hash

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

SYSTEM.HASH contains an entry for each hash structure you create. This view is initially empty, but is updated whenever ALLBASE/SQL processes a hash-related CREATE TABLE, DROP TABLE, TRANSFER OWNERSHIP, or UPDATE STATISTICS statement.

Table 8-15 System.Hash

Column NameTypeLengthDescription
TABLENAMECHAR20Name of the table on which the hash is defined
OWNERCHAR20Owner of the table on which the hash structure is defined
NUMCINTEGER4Number of columns in the hash key
COLNUMSBINARY32 A vector of 16 SYSTEM.COLUMN entries, each of type SMALLINT, identifying the column numbers the hash is defined over. In ISQL, each SMALLINT (two-byte) entry is displayed as a field of 4 hexadecimal digits.
PRIMPAGESINTEGER4Number of primary pages allocated for the hash structure
NPPAGESINTEGER4Number of primary pages in use, excluding page table pages
AVGLENFLOAT8Average chain length
MAXLENINTEGER4Maximum chain length
NFULLINTEGER4Number of primary pages that are more than half full
NOVERFLOWINTEGER4Number of primary pages with overflow pages
UNIQUESMALLINT2Uniqueness indicator; currently always 1

 

Example



   SELECT * FROM System.Hash;

   +--------------------+--------------------+-----------

   |TABLENAME           |OWNER               |NUMC

   +--------------------+--------------------+-----------

   |VENDORS             |PURCHDB             |          1

   -------------------------------------------------------

   Number of rows selected is 1

   U[p], d[own], l[eft], r[ight], t[op], b[ottom], pr[int] <n>,or e[nd]> r

   +----------------------------------------------------------------

   |COLNUMS

   +----------------------------------------------------------------

   |0001000000000000000000000000000000000000000000000000000000000000

   +----------------------------------------------------------------

   Number of rows selected is 1

   U[p], d[own], l[eft], r[ight], t[op], b[ottom], pr[int] <n>,or e[nd]> r

   +-----------+-----------+----------------+---------

   |PRIMPAGES  |NPPAGES    |AVGLEN          |MAXLEN

   +-----------+-----------+----------------+---------

   |         10|         18|            1.00|        1

   ---------------------------------------------------------------------------

   Number of rows selected is 1

   U[p], d[own], l[eft], r[ight], t[op], b[ottom], pr[int] <n>,or e[nd]> r

   +-----------+-----------+------

   |NFULL       NOVERFLOW   UNIQUE

   +-----------+-----------+------

   |          0|          0|     1

   ------------------------------------------------------------------------

   Number of rows selected is 1

   U[p], d[own], l[eft], r[ight], t[op], b[ottom], pr[int] <n>,or e[nd]> e


Feedback to webmaster