Creating a Data Dictionary
PSQL uses the dictionary to store information about the database. The dictionary consists of several system tables that describe the tables and views of your database.
The system tables contain several types of database information, including table and index definitions, column characteristics, and integrity and security information. Table 41 describes the system tables PSQL creates. See also the chapter System Tables in SQL Engine Reference.
Because the system tables are part of the database, you can query them to determine their contents. If you have the appropriate rights, you can also create system tables or change their contents.
*Note: PSQL does not display some data in the system tables. For example, information about stored views and procedures, other than their names, is available only to PSQL. In addition, some data (such as user passwords) displays in encrypted form.
For a complete reference to the contents of each system table, refer to the SQL Engine Reference.
Once you have created a dictionary, you can add tables, columns, and indexes to your database.
*Note: You must have named databases in order to use some features, such as referential integrity and triggers.
1
2
1
2
Review the information in DDF Builder User’s Guide for creating data dictionary files (DDFs). See Getting Started with DDF Builder.