[pgsql-jp: 28121] Re: PostgreSQL 7.3 released

Yoshio Funaki yoshio @ apl.pref.akita.jp
2002年 11月 29日 (金) 10:15:55 JST


お世話になっております。船木@秋田県立図書館です。
>石井です.
>
>アナウンスはまだですが,とうとう7.3が正式にリリースされたようです.い
>つものように,SRAのページ (http://osb.sra.co.jp) に7.3の技術情報があり
>ますので,よろしければご覧下さい.
># 一部工事中です.
おめでとうございます。早速実験環境で、構築してみたいと思いますが、その前に
7.3のマニュアル2.5 inheritanceにある以下の記述なんですが、

 A limitation of the inheritance feature is that indexes (including unique constraints) and foreign key constraints 
only apply to single tables, not to their inheritance children. Thus, in the above example, specifying that another 
table's column REFERENCES cities(name)  would allow the other table to contain city names but not capital names. This 
deficiency will probably be fixed in some future release.

で、これって、前々からお伺いしている「inheritしたtableのタプルが、reference元のテーブルを
連携して消してくれない」と言う件はまだ未解決であると読んでよろしいのでしょうか。

例:簡単に書きます。正しい文法ではありませんが、やりたいことはこんなです。 ^^;
create table id_master { id text };
create table data_master { id text REFERNCES id_master(id) on delete CASCADE};
creare table data_1 { data1 text } inherits data_master;
としておいて、id_masterとdata_1のidに同じ物が入っている場合
delete from id_master where id='hogehoge';
とした場合、data_1の該当タプルを消してくれないと言う件です。
# これができるようになると、当館で運用している「蔵書検索データベース」が
# 非常にすっきりかけるようになるんですが・・・
よろしくご教示下さい。

----
Yoshio Funaki  yoshio @ apl.pref.akita.jp



pgsql-jp メーリングリストの案内