home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / database / postgres / postgre2.z / postgre2 / ref / files / template < prev   
Encoding:
Text File  |  1992-08-27  |  1.9 KB  |  66 lines

  1. .\" XXX standard disclaimer belongs here....
  2. .\" $Header: /private/postgres/ref/files/RCS/template,v 1.5 1992/07/13 03:45:59 ptong Exp $
  3. .SP TEMPLATE FILES 6/14/90
  4. .XA 1 Template
  5. .uh NAME
  6. .lp
  7. \&.../files/global1.bki \*- global database template
  8. .br
  9. \&.../files/local1_XXX.bki \*- local database template
  10. .uh DESCRIPTION
  11. .lp
  12. These files contain scripts
  13. which direct the construction of databases.
  14. Note that the global1.bki and template1_local.bki files
  15. are installed automatically when the postgres superuser runs
  16. .b initdb .
  17. These files are copied from
  18. .q .../src/support/{dbdb,local}.bki.
  19. .lp
  20. The databases which are generated by the template scripts
  21. are normal databases.
  22. Consequently,
  23. you can use the terminal monitor or some other frontend
  24. on a template database to simplify the
  25. customization task.
  26. That is, 
  27. there is no need to
  28. express everything about
  29. your desired initial database state
  30. using a BKI template script,
  31. because the database state can be
  32. tuned interactively.
  33. .lp
  34. The system catalogs consist of classes of two types:  global and local.
  35. There is one copy of each global class that is shared
  36. among all databases at a site.
  37. Local classes, on the other hand, are not accessible
  38. except from their own database.
  39. .lp
  40. \&.../files/global1.bki specifies the
  41. process used in the creation of global (shared) classes
  42. by
  43. .b createdb .
  44. Similarly, the
  45. \&.../files/local1_XXX.bki files specify the
  46. process used in the creation of local (unshared) catalog classes
  47. for the
  48. .q XXX
  49. template database.
  50. .q XXX
  51. may be any string of 16 or fewer printable characters.
  52. If no template is specified in a
  53. .b createdb command,
  54. then the template in .../files/local1_template1.bki is used.
  55. .lp
  56. The .bki files are generated from C source code by an inscrutable
  57. set of C preprocessor macros.
  58. .uh BUGS
  59. .lp
  60. \*(PP Version \*(PV does not permit users to have separate template databases.
  61. .uh "SEE ALSO"
  62. .lp
  63. bki(files),
  64. initdb(unix),
  65. createdb(unix).
  66.