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 1jJlKE-0004cn-Ni for pgsql-general@arkaria.postgresql.org; Wed, 01 Apr 2020 21:55:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jJlKD-000678-KO for pgsql-general@arkaria.postgresql.org; Wed, 01 Apr 2020 21:55:05 +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 1jJlIO-000112-MZ for pgsql-general@lists.postgresql.org; Wed, 01 Apr 2020 21:53:12 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jJlIK-0003ST-Vl for pgsql-general@postgresql.org; Wed, 01 Apr 2020 21:53:12 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 9F01E5C0241; Wed, 1 Apr 2020 17:53:05 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Wed, 01 Apr 2020 17:53:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=r eBezoBrOKJfQzVkDQtfxB4GBoQQHtdiRyAqB4/k4iM=; b=pWxYE8AwdXZTL+ci8 CCT5K8a+vXvqvl0vXOxqyljV0SaHTeHf44Ux6bkU34f020SzkuErImIL0oxdPZw3 AZNMQrxkhq57Crj3P+g45zCuv0NzeGTPqpAqvLj4eTdkOvVeG0BZkL6QdSg9Q0Ob y91oZZhzM9nOUS+dlBhCmoyXQ67LpawBokcKExkemXaaBSKEVIMDILJLdSqS4tfQ NF2ukAs5jWkt05bcSnf58AB5cBg4ft6GEh3lm7uXCYM2oy7pMhBBaYKy3UDCTIjD u71diRU9Eop5uGdTPaEGlLQ6TdxHZdFyrtz+1EIGIjyP+H6djxhN05FBrivId7B0 mTqQA== 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-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=reBezoBrOKJfQzVkDQtfxB4GBoQQHtdiRyAqB4/k4 iM=; b=h1zwfjylTX/WUPD6oz+wNQuSBsUUxgTQ0YS1GHZGTESpuSCLyz62hMJJF DRXCWvud0w1ggZZUc+5gL1LaJi2Sf0h5nCaXgfH6EDS7Alsx9tYYm+khjbQBDELh VgebegyBWn05KZtW7C3URwPyvbCzgXeFgW65xCvHiz2Ux/M4OKDcorLx9Yzf5TaL 7lYoEr//l+fRDGdhLp5gYtYVgEZn3lFbZyXbAOrzEyMKFOvu8TZQLQq0LPzCmFr5 86RKLaz/iLIk2ZH4ezNve+dxszt5RisL/cowMtedROtY8NE9xMvOy0eNHIuPdqWb 1ZWgrf79Xp+0dW2KM9PivsOG+ZUEw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrtdefgddtfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefuvfhfhffkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpeetughrihgr nhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh eqnecuffhomhgrihhnpehpghgsrggtkhhrvghsthdrohhrghdpvdhnughquhgrughrrghn thdrtghomhdpghhithhhuhgsrdgtohhmpdhpohhsthhgrhgvshhqlhdrohhrghenucfkph epjeehrddujedvrdeltddrledvnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghm pehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Received: from [192.168.1.10] (75-172-90-92.tukw.qwest.net [75.172.90.92]) by mail.messagingengine.com (Postfix) with ESMTPA id 7D3FE306CD08; Wed, 1 Apr 2020 17:53:04 -0400 (EDT) Subject: Re: R: dbeaver To: Roberto Della Pasqua , pgsql-general References: <6ced2814-acc7-a9f5-fc9d-c28f176caca9@aklaver.com> From: Adrian Klaver Message-ID: <6bae82ae-017a-40ee-6adb-345a3296b650@aklaver.com> Date: Wed, 1 Apr 2020 14:53:03 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 4/1/20 9:33 AM, Roberto Della Pasqua wrote: > On 4/1/20 9:17 AM, Roberto Della Pasqua wrote: >> Hello, please some questions about a newbie Postgresql user: >> >> - what is the best method to keep the data replicated (for backup purposes): >> Can be possible to deploy a master/slave with realtime data replication and adding a storage where do a journaled backup of the database, eg. a backup incremental or GTF schema files? Which commands works better at low level for background backup/restore? > > The above is book in itself. > > To help more information is needed: > > Postgres version(s) involved? > LATEST VERSION 12 Alright, so you have the choice of either binary replication or the built in logical replication. > > Size of dataset? > 1 million of records (varchar mainly x 10 columns) > > OS(es) involved? > ClearLinux, XFS over nvmexpress Hmm, new distro to me. > > Network distance between master standby(s)? > Same network, 1Gbps, 1msec Did you get a chance to look over the links I sent previously to see if any particular setup fit your needs? There are also third part solutions for backup/restore: https://pgbackrest.org/ https://www.2ndquadrant.com/en/resources/barman/ https://github.com/postgrespro/pg_probackup > > Does exist a common set of configurations to make the "select" op quicker? Postgres has a planner that tries to do that work for you: https://www.postgresql.org/docs/12/using-explain.html https://www.postgresql.org/docs/12/planner-stats.html https://www.postgresql.org/docs/12/planner-stats-details.html I would try the query first and if you see issues then post here with the EXPLAIN ANALYZE results. > Does PG support in-memory tables (disk persisted) as MSSQL? That will have to be answered by someone with more knowledge of MSSQL then I. -- Adrian Klaver adrian.klaver@aklaver.com