Editing PostgreSQL

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 21: Line 21:
 
     -v /custom/mount:/var/lib/postgresql/data \
 
     -v /custom/mount:/var/lib/postgresql/data \
 
     postgres
 
     postgres
 
image: [[arm64v8/postgres]]
 
 
 
* Binaries: [[pg_isready]], [[psql]], [[pg_restore]]
 
  
 
== PostgreSQL ==
 
== PostgreSQL ==
* <code>[[bitnami/postgresql]]</code>
+
[[bitnami/postgresql]]
* <code>[[bitnami/postgresql-ha]]</code>
+
[[bitnami/postgresql-ha]]
  
 
== Configuration and data files ==
 
== Configuration and data files ==
* <code>/etc/postgresql/*/main/[[postgresql.conf]]</code>
+
* <code>/etc/postgresql/10/main/[[postgresql.conf]]</code>
* <code>/etc/postgresql/*/main/[[pg_hba.conf]]</code> (PostgreSQL Client Authentication Configuration File)
+
* <code>/etc/postgresql/10/main/[[pg_hba.conf]]</code> (PostgreSQL Client Authentication Configuration File)
  
 
  # "local" is for Unix domain socket connections only
 
  # "local" is for Unix domain socket connections only
 
  local  all            all                                    md5
 
  local  all            all                                    md5
  
* Data: <code>[[/var/lib/postgresql/]]</code>
+
Data:
 +
* <code>[[/var/lib/postgresql/]]</code>
  
 
== [[PostgreSQL logs]] ==
 
== [[PostgreSQL logs]] ==
*<code>[[/var/log/postgresql/]]</code>
+
*<code>[[/var/log/]]postgresql</code>
  
 
== Basic Commands==
 
== Basic Commands==
Line 59: Line 55:
 
* Show version: <code>[[SELECT version();]]</code>
 
* Show version: <code>[[SELECT version();]]</code>
  
* Create backup: use <code>pg_dump</code> <ref>https://www.postgresql.org/docs/current/static/app-pgdump.html</ref> and <code>[[~/.pgpass]]</code> file for automating login.
+
* Create backup: use <code>pg_dump</code> <ref>https://www.postgresql.org/docs/current/static/app-pgdump.html</ref> and <code>~/.pgpass</code> file for automating login.
 
* Create user:  
 
* Create user:  
 
** <code>[[create user]] <username></code>
 
** <code>[[create user]] <username></code>
Line 81: Line 77:
 
* [[Adminer]]
 
* [[Adminer]]
 
* [[Amazon Redshift]]
 
* [[Amazon Redshift]]
* [[PostgreSQL monitoring]]
+
* [[PostgreSQL statistics collector]]: <code>[[pg_stat]]*</code>
** [[PostgreSQL statistics collector]]: <code>[[pg_stat]]*</code>
 
** <code>[[prometheus-postgres-exporter]]</code>
 
 
* [[Multi-Version Concurrency Control (MVCC)]]
 
* [[Multi-Version Concurrency Control (MVCC)]]
* [[Index (PostgreSQL)]]
+
* [[Master]] user, [[Index (PostgreSQL)]]
 
* [[Greenplum]]
 
* [[Greenplum]]
 
* [[PostgreSQL replication]]
 
* [[PostgreSQL replication]]
* [[PGO PostgreSQL Operator]]
 
 
* [[Amazon Aurora PostgreSQL Serverless]]
 
* [[Amazon Aurora PostgreSQL Serverless]]
 
* [[PgBouncer]] connection pooler
 
* [[PgBouncer]] connection pooler
 
* [[Amazon RDS for PostgreSQL]]
 
* [[Amazon RDS for PostgreSQL]]
* [[Master]] user for RDS: <code>[[postgres]]</code>
+
* [[PGO PostgreSQL Operator]]
* Ansible: <code>[[community.postgresql.postgresql_query]]</code>
 
* [[psycopg2]]
 
* [[PostgreSQL logging]]
 
* <code>[[yum install postgresql]]</code>
 
* <code>[[arm64v8/postgres]]</code>
 
* [[Azure Cosmos DB for PostgreSQL]]
 
  
 
== Activities ==
 
== Activities ==
Line 106: Line 93:
 
== See also ==
 
== See also ==
 
* [[Patroni]] [[HA]] solution for PostgreSQL that requires <code>[[etcd]]</code>, <code>[[Zookeeper]]</code>, or <code>[[Consul]]</code>
 
* [[Patroni]] [[HA]] solution for PostgreSQL that requires <code>[[etcd]]</code>, <code>[[Zookeeper]]</code>, or <code>[[Consul]]</code>
* {{PostgreSQL extensions}}
 
 
* {{PostgreSQL}}
 
* {{PostgreSQL}}
 +
* {{DBs}}
  
 
[[Category:PostgreSQL]]
 
[[Category:PostgreSQL]]

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Advertising: