Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitacad203

Browse files
committed
Update faq's.
1 parentbff5dce commitacad203

File tree

3 files changed

+101
-35
lines changed

3 files changed

+101
-35
lines changed

‎doc/README.NTrenamed to‎doc/FAQ_NT

File renamed without changes.

‎doc/README.BSDI

Lines changed: 0 additions & 31 deletions
This file was deleted.

‎doc/TODO.detail/replication

Lines changed: 101 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ From owner-pgsql-hackers@hub.org Fri Dec 24 10:01:18 1999
4343
Received: from renoir.op.net (root@renoir.op.net [207.29.195.4])
4444
by candle.pha.pa.us (8.9.0/8.9.0) with ESMTP id LAA11295
4545
for <pgman@candle.pha.pa.us>; Fri, 24 Dec 1999 11:01:17 -0500 (EST)
46-
Received: from hub.org (hub.org [216.126.84.1]) by renoir.op.net (o1/$Revision: 1.1 $) with ESMTP id KAA20310 for <pgman@candle.pha.pa.us>; Fri, 24 Dec 1999 10:39:18 -0500 (EST)
46+
Received: from hub.org (hub.org [216.126.84.1]) by renoir.op.net (o1/$Revision: 1.2 $) with ESMTP id KAA20310 for <pgman@candle.pha.pa.us>; Fri, 24 Dec 1999 10:39:18 -0500 (EST)
4747
Received: from localhost (majordom@localhost)
4848
by hub.org (8.9.3/8.9.3) with SMTP id KAA61760;
4949
Fri, 24 Dec 1999 10:31:13 -0500 (EST)
@@ -129,7 +129,7 @@ From owner-pgsql-hackers@hub.org Fri Dec 24 18:31:03 1999
129129
Received: from renoir.op.net (root@renoir.op.net [207.29.195.4])
130130
by candle.pha.pa.us (8.9.0/8.9.0) with ESMTP id TAA26244
131131
for <pgman@candle.pha.pa.us>; Fri, 24 Dec 1999 19:31:02 -0500 (EST)
132-
Received: from hub.org (hub.org [216.126.84.1]) by renoir.op.net (o1/$Revision: 1.1 $) with ESMTP id TAA12730 for <pgman@candle.pha.pa.us>; Fri, 24 Dec 1999 19:30:05 -0500 (EST)
132+
Received: from hub.org (hub.org [216.126.84.1]) by renoir.op.net (o1/$Revision: 1.2 $) with ESMTP id TAA12730 for <pgman@candle.pha.pa.us>; Fri, 24 Dec 1999 19:30:05 -0500 (EST)
133133
Received: from localhost (majordom@localhost)
134134
by hub.org (8.9.3/8.9.3) with SMTP id TAA57851;
135135
Fri, 24 Dec 1999 19:23:31 -0500 (EST)
@@ -212,7 +212,7 @@ From owner-pgsql-hackers@hub.org Fri Dec 24 21:31:10 1999
212212
Received: from renoir.op.net (root@renoir.op.net [207.29.195.4])
213213
by candle.pha.pa.us (8.9.0/8.9.0) with ESMTP id WAA02578
214214
for <pgman@candle.pha.pa.us>; Fri, 24 Dec 1999 22:31:09 -0500 (EST)
215-
Received: from hub.org (hub.org [216.126.84.1]) by renoir.op.net (o1/$Revision: 1.1 $) with ESMTP id WAA16641 for <pgman@candle.pha.pa.us>; Fri, 24 Dec 1999 22:18:56 -0500 (EST)
215+
Received: from hub.org (hub.org [216.126.84.1]) by renoir.op.net (o1/$Revision: 1.2 $) with ESMTP id WAA16641 for <pgman@candle.pha.pa.us>; Fri, 24 Dec 1999 22:18:56 -0500 (EST)
216216
Received: from localhost (majordom@localhost)
217217
by hub.org (8.9.3/8.9.3) with SMTP id WAA89135;
218218
Fri, 24 Dec 1999 22:11:12 -0500 (EST)
@@ -486,7 +486,7 @@ From owner-pgsql-hackers@hub.org Sun Dec 26 08:31:09 1999
486486
Received: from renoir.op.net (root@renoir.op.net [207.29.195.4])
487487
by candle.pha.pa.us (8.9.0/8.9.0) with ESMTP id JAA17976
488488
for <pgman@candle.pha.pa.us>; Sun, 26 Dec 1999 09:31:07 -0500 (EST)
489-
Received: from hub.org (hub.org [216.126.84.1]) by renoir.op.net (o1/$Revision: 1.1 $) with ESMTP id JAA23337 for <pgman@candle.pha.pa.us>; Sun, 26 Dec 1999 09:28:36 -0500 (EST)
489+
Received: from hub.org (hub.org [216.126.84.1]) by renoir.op.net (o1/$Revision: 1.2 $) with ESMTP id JAA23337 for <pgman@candle.pha.pa.us>; Sun, 26 Dec 1999 09:28:36 -0500 (EST)
490490
Received: from localhost (majordom@localhost)
491491
by hub.org (8.9.3/8.9.3) with SMTP id JAA90738;
492492
Sun, 26 Dec 1999 09:21:58 -0500 (EST)
@@ -905,3 +905,100 @@ Sys Admin
905905

906906
************
907907

908+
From owner-pgsql-hackers@hub.org Thu Dec 30 08:01:09 1999
909+
Received: from renoir.op.net (root@renoir.op.net [207.29.195.4])
910+
by candle.pha.pa.us (8.9.0/8.9.0) with ESMTP id JAA10317
911+
for <pgman@candle.pha.pa.us>; Thu, 30 Dec 1999 09:01:08 -0500 (EST)
912+
Received: from hub.org (hub.org [216.126.84.1]) by renoir.op.net (o1/$Revision: 1.2 $) with ESMTP id IAA02365 for <pgman@candle.pha.pa.us>; Thu, 30 Dec 1999 08:37:10 -0500 (EST)
913+
Received: from localhost (majordom@localhost)
914+
by hub.org (8.9.3/8.9.3) with SMTP id IAA87902;
915+
Thu, 30 Dec 1999 08:34:22 -0500 (EST)
916+
(envelope-from owner-pgsql-hackers)
917+
Received: by hub.org (bulk_mailer v1.5); Thu, 30 Dec 1999 08:32:24 -0500
918+
Received: (from majordom@localhost)
919+
by hub.org (8.9.3/8.9.3) id IAA85771
920+
for pgsql-hackers-outgoing; Thu, 30 Dec 1999 08:31:27 -0500 (EST)
921+
(envelope-from owner-pgsql-hackers@postgreSQL.org)
922+
Received: from sandman.acadiau.ca (dcurrie@sandman.acadiau.ca [131.162.129.111])
923+
by hub.org (8.9.3/8.9.3) with ESMTP id IAA85234
924+
for <pgsql-hackers@postgresql.org>; Thu, 30 Dec 1999 08:31:10 -0500 (EST)
925+
(envelope-from dcurrie@sandman.acadiau.ca)
926+
Received: (from dcurrie@localhost)
927+
by sandman.acadiau.ca (8.8.8/8.8.8/Debian/GNU) id GAA18698;
928+
Thu, 30 Dec 1999 06:30:58 -0400
929+
From: Duane Currie <dcurrie@sandman.acadiau.ca>
930+
Message-Id: <199912301030.GAA18698@sandman.acadiau.ca>
931+
Subject: Re: [HACKERS] database replication
932+
In-Reply-To: <OFD38C9424.B391F434-ON85256851.0054F41A@black-oak.COM> from "DWalker@black-oak.com" at "Dec 24, 99 10:27:59 am"
933+
To: DWalker@black-oak.com
934+
Date: Thu, 30 Dec 1999 10:30:58 +0000 (AST)
935+
Cc: pgsql-hackers@postgresql.org
936+
X-Mailer: ELM [version 2.4ME+ PL39 (25)]
937+
MIME-Version: 1.0
938+
Content-Type: text/plain; charset=US-ASCII
939+
Content-Transfer-Encoding: 7bit
940+
Sender: owner-pgsql-hackers@postgresql.org
941+
Status: OR
942+
943+
Hi Guys,
944+
945+
Now for one of my REALLY rare posts.
946+
Having done a little bit of distributed data systems, I figured I'd
947+
pitch in a couple cents worth.
948+
949+
> 2) The replication system will need to add at least one field to each
950+
> table in each database that needs to be re plicated. &nbsp;This
951+
> field will be a date/time stamp which identifies the &quot; last
952+
> update&quot; of the record. &nbsp;This field will be called PGR_TIME
953+
> for la ck of a better name. &nbsp;Because this field will be used
954+
> from within programs and triggers it can be longer so as to not
955+
> mistake it for a user field.
956+
957+
I just started reading this thread, but I figured I'd throw in a couple
958+
suggestions for distributed data control (a few idioms I've had to
959+
deal with b4):
960+
- Never use time (not reliable from system to system). Use
961+
a version number of some sort that can stay consistent across
962+
all replicas
963+
964+
This way, if a system's time is or goes out of wack, it doesn't
965+
cause your database to disintegrate, and it's easier to track
966+
conflicts (see below. If using time, the algorithm gets
967+
nightmarish)
968+
969+
- On an insert, set to version 1
970+
971+
- On an update, version++
972+
973+
- On a delete, mark deleted, and add a delete stub somewhere for the
974+
replicator process to deal with in sync'ing the databases.
975+
976+
- If two records have the same version but different data, there's
977+
a conflict. A few choices:
978+
1. Pick one as the correct one (yuck!! invisible data loss)
979+
2. Store both copies, pick one as current, and alert
980+
database owner of the conflict, so they can deal with
981+
it "manually."
982+
3. If possible, some conflicts can be merged. If a disjoint
983+
set of fields were changed in each instance, these changes
984+
may both be applied and the record merged. (Problem:
985+
takes a lot more space. Requires a version number for
986+
every field, or persistent storage of some old records.
987+
However, this might help the "which fields changed" issue
988+
you were talking about in #6)
989+
990+
- A unique id across all systems should exist (or something that
991+
effectively simulates a unique id. Maybe a composition of the
992+
originating oid (from the insert) and the originating database
993+
(oid of the database's record?) might do it. Store this as
994+
an extra field in every record.
995+
996+
(Two extra fieldss so far: 'unique id' and 'version')
997+
998+
I do like your approach: triggers and a separate process. (Maintainable!! :)
999+
1000+
Anyway, just figured I'd throw in a few suggestions,
1001+
Duane
1002+
1003+
************
1004+

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp