diff --git a/knowledge base/mysql.md b/knowledge base/mysql.md index 5ffc037..4373444 100644 --- a/knowledge base/mysql.md +++ b/knowledge base/mysql.md @@ -51,7 +51,7 @@ grant ALL on db.* to 'username'@'127.0.0.1'; --> -[postgresql]: postgresql.md +[postgresql]: postgresql/README.md [sql]: sql.md diff --git a/knowledge base/percona toolkit.md b/knowledge base/percona toolkit.md index c6449dd..8041eb0 100644 --- a/knowledge base/percona toolkit.md +++ b/knowledge base/percona toolkit.md @@ -1,5 +1,6 @@ # Percona toolkit +> [!caution] > TODO Intro @@ -47,6 +48,8 @@ Intro - [Website] - [Codebase] +- [MySQL] +- [PostgreSQL] ### Sources @@ -59,6 +62,9 @@ Intro +[MySQL]: mysql.md +[PostgreSQL]: postgresql/README.md + [Codebase]: https://github.com/percona/percona-toolkit diff --git a/knowledge base/postgresql.md b/knowledge base/postgresql/README.md similarity index 98% rename from knowledge base/postgresql.md rename to knowledge base/postgresql/README.md index 613ad3c..2743061 100644 --- a/knowledge base/postgresql.md +++ b/knowledge base/postgresql/README.md @@ -383,21 +383,21 @@ See also [yugabyte/yugabyte-db]. --> -[mysql]: mysql.md -[Percona toolkit]: percona%20toolkit.md +[mysql]: ../mysql.md +[Percona toolkit]: ../percona%20toolkit.md +[pg_dump]: pg_dump.md +[pg_dumpall]: pg_dumpall.md [pg_flo]: pg_flo.md +[pg_restore]: pg_restore.md [pgadmin]: pgadmin.md [pgBackRest]: pgbackrest.md -[sql]: sql.md +[sql]: ../sql.md [create function]: https://www.postgresql.org/docs/current/sql-createfunction.html [database connection control functions]: https://www.postgresql.org/docs/current/libpq-connect.html [docker image]: https://github.com/docker-library/docs/blob/master/postgres/README.md [logical decoding concepts]: https://www.postgresql.org/docs/current/logicaldecoding-explanation.html -[pg_dump]: https://www.postgresql.org/docs/current/app-pgdump.html -[pg_dumpall]: https://www.postgresql.org/docs/current/app-pg-dumpall.html -[pg_restore]: https://www.postgresql.org/docs/current/app-pgrestore.html [pg_settings]: https://www.postgresql.org/docs/current/view-pg-settings.html [psql]: https://www.postgresql.org/docs/current/app-psql.html [the password file]: https://www.postgresql.org/docs/current/libpq-pgpass.html @@ -422,6 +422,6 @@ See also [yugabyte/yugabyte-db]. [postgresql_anonymizer]: https://postgresql-anonymizer.readthedocs.io/en/stable/ [postgresql: get member roles and permissions]: https://www.cybertec-postgresql.com/en/postgresql-get-member-roles-and-permissions/ [postgresql: show all the privileges for a concrete user]: https://stackoverflow.com/questions/40759177/postgresql-show-all-the-privileges-for-a-concrete-user +[what does grant usage on schema do exactly?]: https://stackoverflow.com/questions/17338621/what-does-grant-usage-on-schema-do-exactly [what is the pg_dump command for backing up a postgresql database?]: https://www.linkedin.com/advice/3/what-pgdump-command-backing-up-postgresql-ke2ef [yugabyte/yugabyte-db]: https://github.com/yugabyte/yugabyte-db -[what does grant usage on schema do exactly?]: https://stackoverflow.com/questions/17338621/what-does-grant-usage-on-schema-do-exactly diff --git a/knowledge base/postgresql/pg_dump.md b/knowledge base/postgresql/pg_dump.md new file mode 100644 index 0000000..0dcf5d7 --- /dev/null +++ b/knowledge base/postgresql/pg_dump.md @@ -0,0 +1,74 @@ +# pg_dump + +> [!caution] +> TODO + +Intro + + + +1. [TL;DR](#tldr) +1. [Further readings](#further-readings) + 1. [Sources](#sources) + +## TL;DR + + + + + + + +## Further readings + +- [PostgreSQL] +- [pg_dumpall] +- [pg_restore] + +### Sources + +- [Documentation] +- [A Complete Guide to pg_dump With Examples, Tips, and Tricks] + + + + + +[pg_dumpall]: pg_dumpall.md +[pg_restore]: pg_restore.md +[PostgreSQL]: README.md + + + +[Documentation]: https://www.postgresql.org/docs/current/app-pgdump.html + + +[A Complete Guide to pg_dump With Examples, Tips, and Tricks]: https://www.dbvis.com/thetable/a-complete-guide-to-pg-dump-with-examples-tips-and-tricks/ diff --git a/knowledge base/postgresql/pg_dumpall.md b/knowledge base/postgresql/pg_dumpall.md new file mode 100644 index 0000000..de8d4e5 --- /dev/null +++ b/knowledge base/postgresql/pg_dumpall.md @@ -0,0 +1,72 @@ +# pg_dumpall + +> [!caution] +> TODO + +Intro + + + +1. [TL;DR](#tldr) +1. [Further readings](#further-readings) + 1. [Sources](#sources) + +## TL;DR + + + + + + + +## Further readings + +- [PostgreSQL] +- [pg_dump] +- [pg_restore] + +### Sources + +- [Documentation] + + + + + +[pg_dump]: pg_dump.md +[pg_restore]: pg_restore.md +[PostgreSQL]: README.md + + + +[Documentation]: https://www.postgresql.org/docs/current/app-pg-dumpall.html + + diff --git a/knowledge base/pg_flo.md b/knowledge base/postgresql/pg_flo.md similarity index 99% rename from knowledge base/pg_flo.md rename to knowledge base/postgresql/pg_flo.md index 8a4f1bf..ccb2034 100644 --- a/knowledge base/pg_flo.md +++ b/knowledge base/postgresql/pg_flo.md @@ -188,6 +188,7 @@ Periodic status updates are sent to the source DB to maintain the replication's ## Further readings +- [PostgreSQL] - [Website] - [Main repository] - [Transformation rules] @@ -206,7 +207,8 @@ Periodic status updates are sent to the source DB to maintain the replication's -[nats]: nats.md +[NATS]: ../nats.md +[PostgreSQL]: README.md diff --git a/knowledge base/postgresql/pg_restore.md b/knowledge base/postgresql/pg_restore.md new file mode 100644 index 0000000..3662799 --- /dev/null +++ b/knowledge base/postgresql/pg_restore.md @@ -0,0 +1,72 @@ +# pg_restore + +> [!caution] +> TODO + +Intro + + + +1. [TL;DR](#tldr) +1. [Further readings](#further-readings) + 1. [Sources](#sources) + +## TL;DR + + + + + + + +## Further readings + +- [PostgreSQL] +- [pg_dump] +- [pg_dumpall] + +### Sources + +- [Documentation] + + + + + +[pg_dump]: pg_dump.md +[pg_dumpall]: pg_dumpall.md +[PostgreSQL]: README.md + + + +[Documentation]: https://www.postgresql.org/docs/current/app-pgrestore.html + + diff --git a/knowledge base/pgadmin.md b/knowledge base/postgresql/pgadmin.md similarity index 96% rename from knowledge base/pgadmin.md rename to knowledge base/postgresql/pgadmin.md index 68545cc..8558c3c 100644 --- a/knowledge base/pgadmin.md +++ b/knowledge base/postgresql/pgadmin.md @@ -40,9 +40,9 @@ docker pull 'dpage/pgadmin4' ## Further readings +- [PostgreSQL] - [Website] - [Codebase] -- [PostgreSQL] ### Sources @@ -55,7 +55,7 @@ docker pull 'dpage/pgadmin4' -[postgresql]: postgresql.md +[PostgreSQL]: README.md diff --git a/knowledge base/pganalyze collector.md b/knowledge base/postgresql/pganalyze collector.md similarity index 83% rename from knowledge base/pganalyze collector.md rename to knowledge base/postgresql/pganalyze collector.md index b97256f..bd56bdc 100644 --- a/knowledge base/pganalyze collector.md +++ b/knowledge base/postgresql/pganalyze collector.md @@ -24,7 +24,8 @@ vim '/etc/pganalyze-collector.conf' && pganalyze-collector --test --reload \ ## Further readings -- [Main repository] +- [PostgreSQL] +- [Codebase] - [Documentation] ### Sources @@ -36,9 +37,11 @@ vim '/etc/pganalyze-collector.conf' && pganalyze-collector --test --reload \ +[PostgreSQL]: README.md + -[documentation]: https://pganalyze.com/docs/collector/ -[main repository]: https://github.com/pganalyze/collector +[Codebase]: https://github.com/pganalyze/collector +[Documentation]: https://pganalyze.com/docs/collector/ diff --git a/knowledge base/pgbackrest.md b/knowledge base/postgresql/pgbackrest.md similarity index 99% rename from knowledge base/pgbackrest.md rename to knowledge base/postgresql/pgbackrest.md index 7ecbfe9..4fbc6f0 100644 --- a/knowledge base/pgbackrest.md +++ b/knowledge base/postgresql/pgbackrest.md @@ -151,6 +151,7 @@ pgbackrest … --stanza 'prod-app' stanza-create ## Further readings +- [PostgreSQL] - [Website] - [Codebase] @@ -166,6 +167,8 @@ pgbackrest … --stanza 'prod-app' stanza-create +[PostgreSQL]: README.md + [Codebase]: https://github.com/pgbackrest/pgbackrest diff --git a/knowledge base/sql.md b/knowledge base/sql.md index 739abe2..8603c00 100644 --- a/knowledge base/sql.md +++ b/knowledge base/sql.md @@ -34,7 +34,7 @@ They reference either the primary key or another `UNIQUE` constraint of the refe [mysql]: mysql.md -[postgresql]: postgresql.md +[postgresql]: postgresql/README.md