Archive Mode Configuration

It is recommended that the “/RA” (Recovery Area) directory be on a different disk thanthe operating system and database.wal_level determines the contents of wal files. This must be at least replica (defaultvalue) for archiving. In addition to replica, it also has logical option, which contains thenecessary information for logical standby.archive_command is required to test where Archive Mode Configuration

Online (Hot) Backup, pg_basebackup

While the Postgresql database is running, i.e., when the instance is up, it can bebacked up with pg_basebackup. Users are not affected during the backup process,and both full recovery and point-in recovery can be performed with this backup. Inaddition, this backup can be used for hot standby setup. Basebackup automatically takes the database in backup Online (Hot) Backup, pg_basebackup

Restore from Backup to a Specific Time(Point-in Recovery – PITR)

PITR allows restoring to a point between the full backup and the last WAL file.Recovery can be done to the desired point with the recovery_target_time/name/xid/lsn parameters.Since the database cannot be closed in live environments and other objects continue to be updated (DML), PITR is performed on a different server and the necessary data can be Restore from Backup to a Specific Time(Point-in Recovery – PITR)

PGBackRest

Pgbackrest is an easy-to-use open source (MT licensed) postgresql backup tool,supported by algorithms, for performance in large-scale and heavy-duty databases.(Compatible with postgresql 9 and above.)Backup can be taken by installing pgbackrest in the local of the database server, orby installing it on the backup server on the network. Thus, if there are many postgresdatabase servers PGBackRest

Data Migration

Many methods and/or applications can be used when moving data from postgresqlto postgresql, and from different databases to postgresql. The most important criteriawhen making a decision are data size and downtime. An easy to implement but slowmethod/application cannot be used in an environment with little downtime.By doing test migrations, the options should be tested one Data Migration

Ora2pg

Ora2pg is free software that can do migration from Oracle to Postgresql.Although its features are mostly aimed at Oracle, they also support full export fromMySQL.Properties: You can visit the below link for all the features.ora2pg.darold.net/documentation.html#FEATURES Setup In large data migrations, all servers should be in the same network class (no routingNAT etc., especially NAT slows Ora2pg

PGLoader

It is Postgresql’s data replication tool.It uses the copy command. The process continues until it has copied all the data (onerror resume next).It can also be made to stop when it receives an error (on error stop).Writes bad records to log (reject.log) file. Properties:One command migration,Continuous migration,Schema discovery,Partial Migration,Data/Schema only,PK/FK ,Data transfer from HTTPFor details, PGLoader

Owerview to Postgresql

Disk: IOPS (input/output per second) performance is very important for the database.RAID 10, which will be created from disks with high fault-tolerant IOPS performance(NVME, SSD, Flash) can be preferred.RAID 10 has high read and write performance. Therefore, RAID 10 should be preferred,especially for databases with heavy DML operation.The read speed of RAID 5 is high Owerview to Postgresql

Pgbadger

It is a script developed in Perl (it also uses the JavaScript library (flotr2) for graphics).It analyzes Postgres logs and produces detailed reports.Automatically detects log format (syslog, stderr, csvlog, jsonlog).It can work with large and compressed (gzip, bzip2, lz4, xz, zip, zstd) log files.Filtering can be done so that only errors can be reported.It can Pgbadger