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/04/17 10:08] 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 shell>+<code bash>
 # Debian / Ubuntu # Debian / Ubuntu
 pg_createcluster -d /var/lib/postgresql/17/main 17 main pg_createcluster -d /var/lib/postgresql/17/main 17 main
Line 13: Line 14:
 # Redhat / Fedora # Redhat / Fedora
 # Default Data Directory: /var/lib/pgsql/17/data # Default Data Directory: /var/lib/pgsql/17/data
-/usr/pgsql-17/bin/postgresql-17-setup initdb+sudo /usr/pgsql-17/bin/postgresql-17-setup initdb 
 +/usr/pgsql-17/bin/initdb -D /var/lib/pgsql/17/main
 </code> </code>
  
postgresqlcommands.1744884512.txt.gz · Last modified: 2025/04/17 10:08 by z0hpvk