Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ftGvP-0007ED-EU for pgsql-general@arkaria.postgresql.org; Fri, 24 Aug 2018 18:35:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ftGvN-00034E-K7 for pgsql-general@arkaria.postgresql.org; Fri, 24 Aug 2018 18:35:09 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ftGvM-00033v-BL for pgsql-general@lists.postgresql.org; Fri, 24 Aug 2018 18:35:09 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ftGvJ-0005aD-NH for pgsql-general@postgresql.org; Fri, 24 Aug 2018 18:35:07 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id B87F022049; Fri, 24 Aug 2018 14:35:04 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Fri, 24 Aug 2018 14:35:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=cCWXp2WUdxb6huQns23NYm5tZ4Yd6 QsiTgml5KdMO5I=; b=MhupFWmdI1Q/4WqJkGWToQM8kaB716Feizs1SH1fvCSSA v55tzj496ulefBA7eVUsrl/+6rZHQQEwVSKVH7R62DOIhDsgQrpbwrTfbk8eY3OE GezBiKLsvo6FSR/Ge0ZIIEv1SAy5dgFqUopa7EX6/x5le2z82GiSaGnRiBFK6/39 jHXp5ud+UvqlSaSwJY1CNNs/55g4aqmfWnhaoP71Yf9n5xKirYFCH5FueHb/4Q3R bfX5E54rgP2dcOrASem9HScv1yvC3D/lQhP0Dm4saguk+HYFVaZk7Zy28BmlceSP UzABClsCCSHxfDJFB/gXV2M0/BfB1WLYj/hpI2S6w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=cCWXp2 WUdxb6huQns23NYm5tZ4Yd6QsiTgml5KdMO5I=; b=nUj5t+9LWopRyKR5jHXntn yTA1u1wBbhTuOL+4fJfl90FcS2h1fU0a2nE2P2nY4hYQf0/bYUmBMPbyMshsRkf5 h3l+vl5o1xSVXlwHuYtkGRxsqT3s2FGmiLRrK8u2QzXX1W/bPWph2LwKaDhL33cP ZNlyBdaJiJFC7m7r2yAXDDjeg6EC1Nh8Xv1uUuN990X9vPDtMZw4vik4ixh06tRo ARjN4rzsp4K3U7kmINkvlsAxgAH5Gvs4A720F7rvS0kU9G/RdfLyKFW0yDL/XYMG lJlETzIxSI6n9AsS91YrVQyVw2CkpHy0a2rijk4/FkKVNTU06Yc9AOZAxUNbgBBg == X-ME-Proxy: X-ME-Sender: Received: from [192.168.1.3] (unknown [71.212.134.3]) by mail.messagingengine.com (Postfix) with ESMTPA id 9E3B910288; Fri, 24 Aug 2018 14:35:03 -0400 (EDT) Subject: Re: unorthodox use of PG for a customer To: David Gauthier , pgsql-general@postgresql.org References: From: Adrian Klaver Message-ID: <66b8fe3f-3404-ec03-4473-c14df305648c@aklaver.com> Date: Fri, 24 Aug 2018 11:35:02 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 08/24/2018 11:18 AM, David Gauthier wrote: > Hi Everyone: > > I'm going to throw this internal customer request out for ideas, even > though I think it's a bit crazy.  I'm on the brink of telling him it's > impractical and/or inadvisable.  But maybe someone has a solution. > > He's writing a script/program that runs on a workstation and needs to > write data to a DB.  This process also sends work to a batch system on a > server farm external to the workstation that will create multiple, > parallel jobs/processes that also have to write to the DB as well. The > workstation may have many of these jobs running at the same time.  And > there are 58 workstation which all have/use locally mounted disks for > this work. > > At first blush, this is easy.  Just create a DB on a server and have all > those clients work with it.  But he's also adamant about having the DB > on the same server(s) that ran the script AND on the locally mounted > disk.  He said he doesn't want the overhead, dependencies and worries of > anything like an external DB with a DBA, etc... . He also wants this to > be fast. > My first thought was SQLite.  Apparently, they now have some sort of > multiple, concurrent write ability.  But there's no way those batch jobs > on remote machines are going to be able to get at the locally mounted > disk on the workstation. So I dismissed that idea.  Then I thought about > having 58 PG installs, one per workstation, each serving all the jobs > pertaining to that workstation.  That could work.  But 58 DB instances > ?  If he didn't like the ideal of one DBA, 58 can't be good.  Still, the > DB would be on the workstation which seems to be what he wants. > I can't think of anything better.  Does anyone have any ideas? So are the 58 database(stores) on the workstation going to be working with data independent to each or is the data shared/synced between instances? > > Thanks in Advance ! > -- Adrian Klaver adrian.klaver@aklaver.com