User Tools

Site Tools


postgresqlcommands

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
postgresqlcommands [2025/02/20 12:13] z0hpvkpostgresqlcommands [2025/04/17 10:16] (current) z0hpvk
Line 1: Line 1:
 ==== Installation ==== ==== Installation ====
  
-=== Ubuntu === +=== Linux === 
-[[https://www.postgresql.org/download/linux/ubuntu/]]\\+[[https://www.postgresql.org/download/linux/debian/]]\\ 
 +[[https://www.postgresql.org/download/linux/redhat/]]\\
  
 === Create Cluster === === Create Cluster ===
-The installation above will create a default cluster for you. \\ +The Debian or Ubuntu installation will create a default instance. \\ 
-If you wish to create a new one run the following command as postgres ... \\+Create new instances using the commands below ... \\ 
 +<code bash> 
 +# Debian / Ubuntu 
 +pg_createcluster -d /var/lib/postgresql/17/main 17 main 
 + 
 +# Redhat / Fedora 
 +# Default Data Directory: /var/lib/pgsql/17/data 
 +sudo /usr/pgsql-17/bin/postgresql-17-setup initdb 
 +/usr/pgsql-17/bin/initdb -D /var/lib/pgsql/17/main 
 +</code> 
 + 
 +=== Instance Details ===
 <code> <code>
-pg_createcluster -/var/lib/postgresql/14/main 14 main+/usr/lib/postgresql/17/bin/pg_config 
 +/usr/lib/postgresql/17/bin/pg_controldata -D $PGDATA 
 +/usr/lib/postgresql/17/bin/pg_waldump $PGDATA/pg_wal/<WAL_FILE>
 </code> </code>
  
postgresqlcommands.1740053599.txt.gz · Last modified: 2025/03/08 22:23 (external edit)