Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gGkQh-0002c8-HC for pgsql-general@arkaria.postgresql.org; Sun, 28 Oct 2018 12:44:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gGkQe-0003CK-K6 for pgsql-general@arkaria.postgresql.org; Sun, 28 Oct 2018 12:44:28 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gGkQe-0003Bi-4D for pgsql-general@lists.postgresql.org; Sun, 28 Oct 2018 12:44:28 +0000 Received: from mail-qt1-x82d.google.com ([2607:f8b0:4864:20::82d]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gGkQa-0006pY-II for pgsql-general@lists.postgresql.org; Sun, 28 Oct 2018 12:44:27 +0000 Received: by mail-qt1-x82d.google.com with SMTP id l9-v6so6236669qtj.12 for ; Sun, 28 Oct 2018 05:44:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:openpgp:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=HFNw82hlbEnm3kLsYAnLDSopmUdIkKIAPtTIERK/TxM=; b=JhvQRbK2oAlBC334rlhC3CI4IPuC+dvLz4PnXV3VJlMFooIo0h8iYpADHMb2Q0lhTp O/0jLZKGYVjYZ3uH9zK8NumMHg3ySFGY3TGs7x2O3k4JxgNaHXAwjNKqnTyE9XjQPCSg qtBBh1SuYri11pjF9WRXIRuYPxgNcy0SbKkba3GDmekTADxN9Ld3orTDjSdmsN0QubD7 06+p/vJqMfOwqnNQxYUjNKo3lmQ6+Qgc3wcNm1bfzOdQuf6WjyfWj+3nIYXb1+L3dWup MBQzcfRheS1wGjMofc2lwb52o2A7kJxArfDsAgb7XoRUjJRq4zukirPOEsnLDRdA3Vxt F6GA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:openpgp:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=HFNw82hlbEnm3kLsYAnLDSopmUdIkKIAPtTIERK/TxM=; b=oHSwPGZO3AIZCotzeCXwrRwJiT2kVtpHJ9kcWNMPUDydFWclrlFH04k/u2hBcc0evf ZdAl4jKRMLJfvm6QpEFhpMU4F7Lc1U/PFmB4csBonv24xFjEAwQ8tW2Xw9p0keisjasN Ehk5dj5w6VSk2xOQ9N12CQjohwjPJS33EwpVs+maaHJFMAQO9IXi9ZM5H6fb+FicnP/L KYs6zdcU1mrwAP3s47ew3gEKJFjg8S8EZjHVZKugjbcZAZwsGlpz5U2vTHCfSPhrczDJ zCdmeVaqiL/7n9V4H5/XGUHGwPR5Q4YGSHrm1YQHFY0ctU4ifLsuTl35gtbqie+P3kKC KM9w== X-Gm-Message-State: AGRZ1gJOHGMTIfHIKZumw56wVhuXlUGmMkjtsW0gmfbe18eBvHejSBWM gxjpnsODJSNB0sGEzmU10ohJyBaETMDeVCBnGVQ8sjy2KREqmGQ0fQ+X3vxYgc2UTUbMjR+YRws 58c9kJkJKx1vocCuD4B7cb/YNKD3b2Kif6PSRy919SSe5cexoTbfkqjpALLzLcOriPd95u8ljQK vZhYJi5DnFfNM= X-Google-Smtp-Source: AJdET5fBCQCsPg2uLrc94YYZYGIOFComJ/FFMIPT0CoD14nROpZ2FeoNmj9AZXh37e02FwvlE1HBHQ== X-Received: by 2002:ac8:3835:: with SMTP id q50-v6mr8876231qtb.91.1540730662386; Sun, 28 Oct 2018 05:44:22 -0700 (PDT) Received: from alderaan.marques (host122.200-82-62.telecom.net.ar. [200.82.62.122]) by smtp.googlemail.com with ESMTPSA id p3-v6sm5840447qtc.81.2018.10.28.05.44.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 28 Oct 2018 05:44:21 -0700 (PDT) Subject: Re: Enabling bdr in multiple databases on the same postgresql instance/cluster To: "Daniel Fink (PDF)" , pgsql-general@lists.postgresql.org References: <0fc0620da55feb903456d8775159ac6d@mail.gmail.com> From: =?UTF-8?Q?Mart=c3=adn_Marqu=c3=a9s?= Openpgp: preference=signencrypt Message-ID: <838fdb4f-f991-a321-afc4-c064b1bd2d38@2ndquadrant.com> Date: Sun, 28 Oct 2018 09:44:18 -0300 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: <0fc0620da55feb903456d8775159ac6d@mail.gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk El 23/10/18 a las 10:24, Daniel Fink (PDF) escribió: > > I already have a running cluster of BDR nodes. > > Now we want to add an additional database on the same hosts. > > Can I just create a new database and then create/join nodes as in this > description: > > http://bdr-project.org/docs/1.0.3/quickstart-enabling.html If you refer to the following architecture: Node1_DB1 <--> Node2_DB1 And you want to create a new database DB2 on Node1 and have it replicating to DB2 on Node2 with BDR, then yes, you have to follow the same process used to create the first BDR group. Keep in mind you'll need more slots and replication connections, so check the values of max_replication_slots, max_worker_processes and max_wal_senders. Regards, -- Martín Marqués http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services