CreateTopoGeomはrelationテーブルに値を差し込むらしい

その後、なんとなく、CreateTopoGeom をSELECTだけ(INSERTしない)で実行して遊んでいたところ、どうも (トポロジスキーマ).relation に登録される副作用を持っているとのこと。

ということで relation テーブルを見る。

topo=# select * from topo1.relation;
 topogeo_id | layer_id | element_id | element_type 
                                                                                                    • -
1 | 1 | 1 | 3 1 | 1 | 2 | 3 2 | 1 | 2 | 3 3 | 1 | 1 | 3 4 | 1 | 1 | 3 5 | 1 | 1 | 3 (6 rows)

あちゃー、なんか増えとるがな。

まあここまできたらついでにいくら作ってもいいや、と思うので、実行記録を出しときます。

topo=# SELECT CreateTopoGeom('topo1', 3, 1, '{{2,3}}');
 createtopogeom 
                              • -
(1,1,6,3) (1 row) topo=# select * from topo1.relation; topogeo_id | layer_id | element_id | element_type
                                                                                                    • -
1 | 1 | 1 | 3 1 | 1 | 2 | 3 2 | 1 | 2 | 3 3 | 1 | 1 | 3 4 | 1 | 1 | 3 5 | 1 | 1 | 3 6 | 1 | 2 | 3 (7 rows)

うわ、また増えた。