Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l3SJy-0007jQ-An for pgsql-general@arkaria.postgresql.org; Sat, 23 Jan 2021 23:27:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l3SJx-0006sd-72 for pgsql-general@arkaria.postgresql.org; Sat, 23 Jan 2021 23:27:57 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l3SJw-0006sW-Tg for pgsql-general@lists.postgresql.org; Sat, 23 Jan 2021 23:27:56 +0000 Received: from mail-ot1-x32b.google.com ([2607:f8b0:4864:20::32b]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1l3SJt-0007cu-Sw for pgsql-general@lists.postgresql.org; Sat, 23 Jan 2021 23:27:56 +0000 Received: by mail-ot1-x32b.google.com with SMTP id i30so9064195ota.6 for ; Sat, 23 Jan 2021 15:27:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=uB7eky/9SM1lJn6IyzI+w7ednYrRXQ+eb/r/DUyZ7CU=; b=IlYHauVomZAu+XupL0k/La3a+6JGU/3Uxj/Ni57O4XvdnveYlMs1PFj2Q95/daw7jw cUUV869ZLPy+hzKiI18yWlIjTrl2n2QxBSJA/JxKiiOyAUoWlvvbwquG5FlVkU8gOd2s b6vqUdenn5wrtrCiRkht1EOhwTzCXRxRJzF0gBOiid7riAU5BJTiV9w948AB7NWW65Z/ GrxATDKgbzodQHVHSi/xuotdA0HCHnwz46zzLOdHCNQ7TPMpHg9eSwltz9IXmQrjjcWu QsqGI85YDHykuSQ/F19MFtc3Snk3kU7q/EzHLwxMttidW6DI2vllTcmJ/VU8fgC0Z/c2 6IAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=uB7eky/9SM1lJn6IyzI+w7ednYrRXQ+eb/r/DUyZ7CU=; b=JH6glsyVRG/cK9aQjQ8tuUre4c9POdNQ6N4p5OdXz06GFyIbz+3ewPaHcoXXZZiwj5 veZI1LqifjP7ybyzodakQmNTz4Z51y6JH0ocXXz3PaqTWK0kxadb8Tx2GaWJfJAOhoh2 /11+bs/+rRUp6KH4ZkQPrO0eDGj+jqBAjZA1m0qsnWg3zsBlObC/pKaj65y4k7p9CkNE OxDRppRwGrgPo+/Vwr5ftFWUVTu6u4cpgaFIguvnmGHUR//wFvSqW6XxC+IfFahb6Ple SCMyVjwXbD9DSBJWZ3l+mFY6xMNQGCmiC2kHYsrz9LdH08syGmsMKB83f2dvWGFiyj1h H5XA== X-Gm-Message-State: AOAM532+lnilwhgN+YhnhPI/4xJo+fQNrlOmcHbaBa/A9VRTohTFb4e9 BPskt4GUlmrkwgGQit9+RzTtDPWAMNwRGw== X-Google-Smtp-Source: ABdhPJwumrLQlj563phUjMeFD+32e3AWtyEzr5Bz2yjXMjRaahWIaSeolNtqBU/P8p2H6BOAMk+Nww== X-Received: by 2002:a9d:2035:: with SMTP id n50mr7621060ota.44.1611444471594; Sat, 23 Jan 2021 15:27:51 -0800 (PST) Received: from [192.168.88.10] (ip174-67-141-204.no.no.cox.net. [174.67.141.204]) by smtp.googlemail.com with ESMTPSA id o98sm342712ota.0.2021.01.23.15.27.50 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 23 Jan 2021 15:27:50 -0800 (PST) To: pgsql-general@lists.postgresql.org From: Ron Subject: Question about logically replicating a multi-TB database Message-ID: <35409a7a-427b-58bd-0975-eb1abc280340@gmail.com> Date: Sat, 23 Jan 2021 17:27:50 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk https://www.postgresql.org/docs/12/logical-replication-architecture.html "30.5.1. Initial Snapshot The initial data in existing subscribed tables are snapshotted and copied in a parallel instance of a special kind of apply process. This process will create its own temporary replication slot and copy the existing data. Once existing data is copied, the worker enters synchronization mode, which ensures that the table is brought up to a synchronized state with the main apply process by streaming any changes that happened during the initial data copy using standard logical replication. Once the synchronization is done, the control of the replication of the table is given back to the main apply process where the replication continues as normal." We've got a Large and busy database which we need to migrate to AWS, and a shared 1Gbps pipe between the source and AWS. How does one set up publish/subscribe in such a case?  All the examples I've seen are with trivially small databases. -- Angular momentum makes the world go 'round.