From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Roberto Della Pasqua <roberto.dellapasqua@live.com>
To: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: R: dbeaver
Date: Wed, 1 Apr 2020 14:53:03 -0700
Message-ID: <6bae82ae-017a-40ee-6adb-345a3296b650@aklaver.com> (raw)
In-Reply-To: <AM0PR0502MB36506444373D81B92361E38099C90@AM0PR0502MB3650.eurprd05.prod.outlook.com>
References: <AM0PR0502MB365047B3DB23FB998B68E29699C90@AM0PR0502MB3650.eurprd05.prod.outlook.com>
<6ced2814-acc7-a9f5-fc9d-c28f176caca9@aklaver.com>
<AM0PR0502MB36506444373D81B92361E38099C90@AM0PR0502MB3650.eurprd05.prod.outlook.com>
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.htmlhttps://www.postgresql.org/docs/12/planner-stats.htmlhttps://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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: adrian.klaver@aklaver.com, roberto.dellapasqua@live.com
Subject: Re: R: dbeaver
In-Reply-To: <6bae82ae-017a-40ee-6adb-345a3296b650@aklaver.com>
References: <AM0PR0502MB365047B3DB23FB998B68E29699C90@AM0PR0502MB3650.eurprd05.prod.outlook.com> <6ced2814-acc7-a9f5-fc9d-c28f176caca9@aklaver.com> <AM0PR0502MB36506444373D81B92361E38099C90@AM0PR0502MB3650.eurprd05.prod.outlook.com> <6bae82ae-017a-40ee-6adb-345a3296b650@aklaver.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox