Re: [GENERAL] Need your help on using "partion"

2007-04-04 Thread Postgres User
My guess is that when you insert into Cities, the sequence field is incremented one time (=2), and when the Rule is executed to insert into Capital, the sequence is incremented a second time (=3). As a result of these 2 operations, the sequence is incremented 2 times. I don't know anything about

[GENERAL] Need your help on using "partion"

2007-04-04 Thread Huynh Ngoc Doan
/*I'm learning how to use the partion in Postgres 8.2.3 so I want to do some test for my awareness. I create 2 tables: The parent table is cities:*/ CREATE TABLE xxx.cities ( id serial NOT NULL, name text, population real, altitude integer, CONSTRAINT pk_cities PRIMARY KEY (id) ) /*an