バージョンごとのドキュメント一覧

52.4. PostgreSQLルールシステム #

<title>The <productname>PostgreSQL</productname> Rule System</title>

<productname>PostgreSQL</productname> supports a powerful <firstterm>rule system</firstterm> for the specification of <firstterm>views</firstterm> and ambiguous <firstterm>view updates</firstterm>. Originally the <productname>PostgreSQL</productname> rule system consisted of two implementations: PostgreSQLには、ビューと理解の仕方でどうとも取れるビューの更新の仕様に対応する強力なルールシステムがあります。 元々PostgreSQLのルールシステムは2つの実装で構成されていました。

The query rewriter is discussed in some detail in <xref linkend="rules"/>, so there is no need to cover it here. We will only point out that both the input and the output of the rewriter are query trees, that is, there is no change in the representation or level of semantic detail in the trees. Rewriting can be thought of as a form of macro expansion. 問い合わせの書き換えについては第41章にて詳しく論議されますので、ここでは取り扱いません。 書き換えの入出力はともに問い合わせツリーである、つまり、ツリー内の表現の仕方や語義をどの程度詳しく判断するかには変更はない、ということを指摘するのに留めます。 書き換えはマクロの拡張と捉えることもできます。