From: | "L(dot) Berger" <straightfwd007(at)gmail(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | TWO SAME TABLES, ONE UPDATED. HOW TO SYNC THE OTHER? |
Date: | 2007-05-12 04:06:11 |
Message-ID: | 1178942771.095775.95410@e51g2000hsg.googlegroups.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hello
I have two tables -- A and B. The structure of both is the same. Only,
B has many indexes and is used for heavy duty SELECTs. On the other
hand, A only accepts heavy duty INSERTs, so has only one primary key
index.
So my DB design is such that A is only an INSERT table. Periodically,
say every 20 minutes or so, I would like to take all the new INSERTs
from table A and put them into B.
Is there any clever command to accomplish this? I'd rather not write a
PHP script with SQL to take every single new record, and update every
column of a new row in table B. For instance, can I do a replication
of only tables, not databases?
Thanks for any pointers!!
LB
--
Conan O' Brien gets it right!
http://blogs.pcworld.com/tipsandtweaks/archives/004369.html
From | Date | Subject | |
---|---|---|---|
Next Message | Paul Lambert | 2007-05-12 06:51:01 | Re: Fault Tolerant Postgresql (two machines, two postmasters, one disk array) |
Previous Message | Tom Allison | 2007-05-12 02:41:09 | Re: [UNSURE] Re: Streaming large data into postgres [WORM like applications] |