<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:12pt"><DIV></DIV>
<DIV>
<DIV>&gt; How many tables in the database?</DIV>
<DIV>&nbsp;&nbsp;&nbsp; 24<BR></DIV>
<DIV>&gt; How big (in terms of rows) are the tables?</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;8 tables have less than 10 rows</DIV>
<DIV>&nbsp;&nbsp;&nbsp; 2 tables have less than 1,000 rows</DIV>
<DIV>&nbsp;&nbsp;&nbsp; 5 tables have less than 10,000 rows</DIV>
<DIV>&nbsp;&nbsp;&nbsp; 4 tables have less than 50,000 rows</DIV>
<DIV>&nbsp;&nbsp;&nbsp; 4 tables have less than 1,000,000 rows</DIV>
<DIV>&nbsp;&nbsp;&nbsp; 1 table has&nbsp;just under&nbsp;15,000,000 rows<BR></DIV>
<DIV>&gt; How big (size in Mbytes) is the whole database?</DIV>
<DIV>&nbsp;&nbsp;&nbsp; Not sure exactly how to measure this. After installing <SPAN class=yshortcuts id=lw_1267045635_0 style="CURSOR: hand; BORDER-BOTTOM: #0066cc 1px dashed">PostgreSQL</SPAN> to a new machine, the 'data' directory is 32MB. I then restore my db from backup, the data directory is 1.31GB. However, the .backup file from which the db was restored is only 91MB.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&gt; What is the update rate (5 new records a second - or 5 new records a month)?</DIV>
<DIV>&nbsp;&nbsp;&nbsp; The table with the most rows (association table consisting of two&nbsp;integer fields&nbsp;per row) grows by up to 100K rows per day, but we publish&nbsp;up to 350 rows containing actual source code per day, sometimes up to a few KB each. These are&nbsp;added in spurts of publishing lasting up to a couple of minutes each, maybe 50 or so publishes per day. </DIV>
<DIV>&nbsp;</DIV>
<DIV>&gt; How many "sites" need to get the updates? Is it only 1 laptop or 1,000 of them?<BR>&nbsp;&nbsp;&nbsp; Maybe up to a few dozen or so eventually.<BR><BR>&nbsp;</DIV></DIV>Dave Stevenson<BR>dave.stevenson@pacbell.net 
<DIV><BR></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: arial, helvetica, sans-serif"><BR>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif"><FONT face=Tahoma size=2>
<HR SIZE=1>
<B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> Michael Squires &lt;msquires@whitepages.com&gt;<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> slony1-general@lists.slony.info<BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Wed, February 24, 2010 10:26:50 AM<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [Slony1-general] Is Slony for me?<BR></FONT><BR>Rather than nibbling around the edges on this ("slony would be good if <BR>your situation is X"), why don't you give us some sense of the scale you <BR>are talking about.<BR><BR>How many tables in the database?<BR>How big (in terms of rows) are the tables?<BR>How big (size in Mbytes) is the whole database?<BR>What is the update rate (5 new records a second - or 5 new records a month)?<BR>How many "sites" need to get the updates? Is it only 1 laptop or 1,000 <BR>of them?<BR><BR>The "best" potential solution for you might range from a single-file <BR>sqlite database that you
 just copy to your laptop whenever you want to <BR>to a full slony with log-shipping to ....<BR><BR>Michael<BR><BR>On 2/24/10 10:19 AM, Kevin Kempter wrote:<BR>&gt; On Wednesday 24 February 2010 11:13:19 Walter Coole wrote:<BR>&gt;&gt; Dave's points are valid, but I'd suggest a tweak that I've found useful:<BR>&gt;&gt; use one of pg_dump's ascii modes, keep the pg_dump output and use rsync<BR>&gt;&gt; to do the copy to the laptop.&nbsp; If the updates are rare and small, rsync<BR>&gt;&gt; (or a similar tool) will be much more efficient at doing the copy, at<BR>&gt;&gt; the cost of keeping an extra copy of the database on the laptop.<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt; I found that, for my installation, this arrangement was easier to set up<BR>&gt;&gt; and maintain than Slony or any of the other replication schemes for<BR>&gt;&gt; Postgres.<BR>&gt;&gt;<BR>&gt;&gt; Walter<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt; From: <A
 href="mailto:slony1-general-bounces@lists.slony.info" ymailto="mailto:slony1-general-bounces@lists.slony.info">slony1-general-bounces@lists.slony.info</A><BR>&gt;&gt; [mailto:<A href="mailto:slony1-general-bounces@lists.slony.info" ymailto="mailto:slony1-general-bounces@lists.slony.info">slony1-general-bounces@lists.slony.info</A>] On Behalf Of Melvin<BR>&gt;&gt; Davidson<BR>&gt;&gt; Sent: Wednesday, February 24, 2010 9:44 AM<BR>&gt;&gt; To: <A href="mailto:Slony1-general@lists.slony.info" ymailto="mailto:Slony1-general@lists.slony.info">Slony1-general@lists.slony.info</A>; Dave Stevenson<BR>&gt;&gt; Subject: Re: [Slony1-general] Is Slony for me?<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt; --- On Wed, 2/24/10, Dave Stevenson&lt;<A href="mailto:dave.stevenson@pacbell.net" ymailto="mailto:dave.stevenson@pacbell.net">dave.stevenson@pacbell.net</A>&gt;&nbsp; wrote:<BR>&gt;&gt;<BR>&gt;&gt; From: Dave Stevenson&lt;<A
 href="mailto:dave.stevenson@pacbell.net" ymailto="mailto:dave.stevenson@pacbell.net">dave.stevenson@pacbell.net</A>&gt;<BR>&gt;&gt; Subject: [Slony1-general] Is Slony for me?<BR>&gt;&gt; To: <A href="mailto:Slony1-general@lists.slony.info" ymailto="mailto:Slony1-general@lists.slony.info">Slony1-general@lists.slony.info</A><BR>&gt;&gt; Date: Wednesday, February 24, 2010, 11:28 AM<BR>&gt;&gt;<BR>&gt;&gt; I'm looking for a replication solution, but I'm no DBA. My use case is<BR>&gt;&gt; probably similar to the following, listed in Slony's online doc as a<BR>&gt;&gt; poor match for Slony:<BR>&gt;&gt;<BR>&gt;&gt;&nbsp; &nbsp; &nbsp; Replicating a pricing database from a central server to sales staff<BR>&gt;&gt; who connect periodically to grab updates.<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt; I'm wondering what is it about Slony that makes that scenario a bad<BR>&gt;&gt; match, or what alternative might work better for
 me.<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt; I use Postgresql as a source code repository. However, the server is<BR>&gt;&gt; remote, and access is typically very slow. I'd like to have a read-only<BR>&gt;&gt; local copy for comparing, reconciling, loading, etc., and access the<BR>&gt;&gt; remote server only for writes (publish). Typical usage is lots of reads,<BR>&gt;&gt; few writes, very rare and limited updates, even more rare and limited<BR>&gt;&gt; deletes (few times per year?), and maybe once every 2-4 years a schema<BR>&gt;&gt; change.<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt; If I have a local clone on my laptop, it will often be offline (at<BR>&gt;&gt; night). Is Slony a bad match because the slave would miss updates while<BR>&gt;&gt; offline?<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt; Anyone know of a better fit for my use case?<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt; Thanks,<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt; Dave
 Stevenson<BR>&gt;&gt; <A href="mailto:dave.stevenson@pacbell.net" ymailto="mailto:dave.stevenson@pacbell.net">dave.stevenson@pacbell.net</A><BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt; -----Inline Attachment Follows-----<BR>&gt;&gt;<BR>&gt;&gt; _______________________________________________<BR>&gt;&gt; Slony1-general mailing list<BR>&gt;&gt; <A href="mailto:Slony1-general@lists.slony.info" ymailto="mailto:Slony1-general@lists.slony.info">Slony1-general@lists.slony.info</A><BR>&gt;&gt; &lt;http://us.mc530.mail.yahoo.com/mc/compose?to=Slony1-general@lists.slony<BR>&gt;&gt; .info&gt;<BR>&gt;&gt; http://lists.slony.info/mailman/listinfo/slony1-general<BR>&gt;&gt;<BR>&gt;&gt;&gt; I'd like to have a read-only local copy for comparing, reconciling,<BR>&gt;&gt;<BR>&gt;&gt; loading,<BR>&gt;&gt;<BR>&gt;&gt;&gt; etc.<BR>&gt;&gt;<BR>&gt;&gt; Good news. Slony is excellent for that situation.<BR>&gt;&gt;<BR>&gt;&gt;&gt; If I have a local clone on my laptop, it will often be
 offline (at<BR>&gt;&gt;<BR>&gt;&gt; night). Is Slony a<BR>&gt;&gt;<BR>&gt;&gt;&gt; bad match because the slave would miss updates while offline?<BR>&gt;&gt;<BR>&gt;&gt; Bad news.&nbsp; Unless there is only a small amount of updates (DML) that<BR>&gt;&gt; will be occurring while your laptop is offline, it will take a long time<BR>&gt;&gt; for slony to synchronize and catch up with transactions that occurred.<BR>&gt;&gt; If your database is small enough, you might be better off just doing a<BR>&gt;&gt; pg_dump of the master, and then copy it to the laptop, drop the old<BR>&gt;&gt; database, make a new db&nbsp; and then pg_restore the new copy.<BR>&gt;&gt;<BR>&gt;&gt; Melvin Davidson<BR>&gt;&gt;<BR>&gt;<BR>&gt;<BR>&gt; This scenario is actually a perfect fit for SLONY log shipping which would<BR>&gt; allow your laptop to act as a 'remote' or 'disconnected' subscriber thus<BR>&gt; you'll be able to have your laptop apply the slon logs on any schedule
 you<BR>&gt; decide.<BR>&gt;<BR>&gt;<BR>&gt; _______________________________________________<BR>&gt; Slony1-general mailing list<BR>&gt; <A href="mailto:Slony1-general@lists.slony.info" ymailto="mailto:Slony1-general@lists.slony.info">Slony1-general@lists.slony.info</A><BR>&gt; <A href="http://lists.slony.info/mailman/listinfo/slony1-general" target=_blank>http://lists.slony.info/mailman/listinfo/slony1-general</A><BR>_______________________________________________<BR>Slony1-general mailing list<BR><A href="mailto:Slony1-general@lists.slony.info" ymailto="mailto:Slony1-general@lists.slony.info">Slony1-general@lists.slony.info</A><BR><A href="http://lists.slony.info/mailman/listinfo/slony1-general" target=_blank>http://lists.slony.info/mailman/listinfo/slony1-general</A><BR></DIV></DIV></div></body></html>