Movatterモバイル変換


[0]ホーム

URL:


November 13, 2025: PostgreSQL 18.1, 17.7, 16.11, 15.15, 14.20, and 13.23 Released!
DocumentationPostgreSQL devel (2025-12-17 20:34:52 - git commitab8af1db430)
Supported Versions:Current (18) /17 /16 /15 /14
Development Versions:devel
Unsupported versions:13 /12 /11 /10 /9.6 /9.5 /9.4 /9.3 /9.2 /9.1 /9.0 /8.4 /8.3 /8.2 /8.1 /8.0 /7.4 /7.3 /7.2 /7.1
This documentation is for an unsupported version of PostgreSQL.
You may want to view the same page for thecurrent version, or one of the other supported versions listed above instead.
Chapter 39. The Rule System
Prev UpPart V. Server ProgrammingHome Next

Chapter 39. The Rule System

This chapter discusses the rule system inPostgreSQL. Production rule systems are conceptually simple, but there are many subtle points involved in actually using them.

Some other database systems define active database rules, which are usually stored procedures and triggers. InPostgreSQL, these can be implemented using functions and triggers as well.

The rule system (more precisely speaking, the query rewrite rule system) is totally different from stored procedures and triggers. It modifies queries to take rules into consideration, and then passes the modified query to the query planner for planning and execution. It is very powerful, and can be used for many things such as query language procedures, views, and versions. The theoretical foundations and the power of this rule system are also discussed in[ston90b] and[ong90].


Prev Up Next
38.5. A Database Login Event Trigger Example Home 39.1. The Query Tree

[8]ページ先頭

©2009-2025 Movatter.jp