Movatterモバイル変換


[0]ホーム

URL:



Facebook
Postgres Pro
Facebook
Downloads
38.1. How Extensibility Works
Prev UpChapter 38. ExtendingSQLHome Next

38.1. How Extensibility Works#

PostgreSQL is extensible because its operation is catalog-driven. If you are familiar with standard relational database systems, you know that they store information about databases, tables, columns, etc., in what are commonly known as system catalogs. (Some systems call this the data dictionary.) The catalogs appear to the user as tables like any other, but theDBMS stores its internal bookkeeping in them. One key difference betweenPostgreSQL and standard relational database systems is thatPostgreSQL stores much more information in its catalogs: not only information about tables and columns, but also information about data types, functions, access methods, and so on. These tables can be modified by the user, and sincePostgreSQL bases its operation on these tables, this means thatPostgreSQL can be extended by users. By comparison, conventional database systems can only be extended by changing hardcoded procedures in the source code or by loading modules specially written by theDBMS vendor.

ThePostgreSQL server can moreover incorporate user-written code into itself through dynamic loading. That is, the user can specify an object code file (e.g., a shared library) that implements a new type or function, andPostgreSQL will load it as required. Code written inSQL is even more trivial to add to the server. This ability to modify its operationon the fly makesPostgreSQL uniquely suited for rapid prototyping of new applications and storage structures.


Prev Up Next
Chapter 38. ExtendingSQL Home 38.2. ThePostgreSQL Type System
pdfepub
Go to PostgreSQL 16
By continuing to browse this website, you agree to the use of cookies. Go toPrivacy Policy.

[8]ページ先頭

©2009-2025 Movatter.jp