- https://m.habr.com/en/company/yandex/blog/435880/ — Изменение схемы таблиц PostgreSQL без долгих блокировок.
- https://habr.com/post/228023/ — Работа с геолокациями в режиме highload (Задача поиска ближайшего соседа)
- https://habr.com/post/280912/ — Полезные трюки PostgreSQL
- https://habr.com/ru/company/postgrespro/blog/448368/ — SQL: задача о рабочем времени. Лучшее решение.
- https://habr.com/ru/company/0/blog/316304/ Как заставить PostgreSQL считать быстрее
- https://m.habr.com/ru/post/468463/ - Улучшение производительности Zabbix + PostgreSQL при помощи партиционирования и индексирования
- https://m.habr.com/ru/company/otus/blog/472364/ - PostgreSQL и настройки согласованности записи для каждого конкретного соединения
- https://m.habr.com/ru/post/481556/ - Очередь задач в PostgreSQL
- https://m.habr.com/ru/post/483014/ - Очереди сообщений в PostgreSQL с использованием PgQ
- https://github.com/dverite/postgresql-functions
- https://github.com/dataegret/pg-utils Useful DBA tools by Data Egret
- https://github.com/pgexperts/pgx_scripts/ A collection of useful little scripts for database analysis and administration, created by our team at PostgreSQL Experts
- index_bloat_checksql
- table_bloat_checksql
- fk_no_indexsql
- duplicate_indexes_fuzzysql
- needed_indexessql
- unneeded_indexessql
- https://github.com/k1aus/parallelsql - A sql extenstion that parallizes sql queries using dblink
- https://github.com/ioguix/pgsql-bloat-estimation - Queries to mesure statistical bloat in btree indexes and tables for PostgreSQL
- https://github.com/lesovsky/uber-scripts - Scripts for Linux system administrators
- https://github.com/NikolayS/postgres_dba - The missing set of useful tools for Postgres DBA
- https://github.com/NikolayS/awesome-postgres - links
- https://gist.github.com/david-sanabria/0d3ff67eb56d2750502aed4186d6a4a7 -
CREATE OR REPLACE FUNCTION base62_encode( long_number bigint ) RETURNS text
- https://gist.github.com/matheusoliveira/9488951 - Simple PostgreSQL functions to manipulate json objects: json_append(), json_delete(), json_merge(), json_update(), json_lint(), json_unlint()
- https://web.archive.org/web/20230712185409/https://medium.com/hootsuite-engineering/recursively-merging-jsonb-in-postgresql-efd787c9fad7
- https://github.com/glynastill/pg_jsonb_delete_op - Hstore style delete "-" operator for jsonb
- https://github.com/heroku/heroku-pg-extras - This plugin is used to obtain information about a Heroku Postgres instance, that may be useful when analyzing performance issues. This includes information about locks, index usage, buffer cache hit ratios and vacuum statistics.
- https://github.com/rvkulikov/pg-deps-management - Recursively backup all dependent views, then modify base tables, then recreate all backuped views
- https://github.com/sjstoelting/pgsql-tweaks - PostgreSQL Views and Functions
- https://github.com/theory/pgtap/ - unit testing framework for PostgreSQL
- https://github.com/dimitri/regresql - RegreSQL, Regression Testing your SQL queries
- https://github.com/cybertec-postgresql/pgfaceting - PostgreSQL extension to quickly calculate facet counts using inverted index built with roaring bitmaps
- https://github.com/PostgREST/postgrest - PostgREST is a standalone web server that turns your PostgreSQL database directly into a RESTful API.
- https://github.com/supabase/pg_jsonschema - PostgreSQL extension providing JSON Schema validation
- https://github.com/tembo-io/pgmq - Postgres Message Queue (PGMQ)
- https://github.com/benbjohnson/litestream - standalone disaster recovery tool for SQLite
- https://stackoverflow.com/questions/7923237/return-pre-update-column-values-using-sql-only
- https://stackoverflow.com/questions/11532550/atomic-update-select-in-postgres
- https://stackoverflow.com/questions/28550679/what-is-the-difference-between-lateral-and-a-subquery-in-postgresql
- https://stackoverflow.com/questions/8443716/postgres-unique-constraint-for-array
- https://dba.stackexchange.com/questions/11329/monitoring-progress-of-index-construction-in-postgresql
- https://stackoverflow.com/questions/34657669/find-rows-where-text-array-contains-value-similar-to-input
- https://stackoverflow.com/questions/3994556/eliminate-duplicate-array-values-in-postgres
- https://stackoverflow.com/questions/3942258/how-do-i-temporarily-disable-triggers-in-postgresql
- https://stackoverflow.com/questions/38112379/disable-postgresql-foreign-key-checks-for-migrations
- https://postgres.ai/blog/20211018-postgresql-lock-trees
- https://www.citusdata.com/blog/2018/02/22/seven-tips-for-dealing-with-postgres-locks/
- http://www.pateldenish.com/2018/11/postgres-11-partitioning.html
- https://use-the-index-luke.com/no-offset — Как правильно делать постраничную навигацию без OFFSET
- https://www.jooq.org/sakila — БД, для которой есть примеры SQL запросов в документации MySQL
- https://pgloader.io/ — Continuous Migration from your current database to PostgreSQL
- https://tapoueh.org/blog/2013/08/understanding-window-functions/ — Understanding Window Functions
- https://blog.jooq.org/2014/04/29/nosql-no-sql-how-to-calculate-running-totals/ — How to Calculate Running Totals
- https://hashrocket.com/blog/posts/faster-json-generation-with-postgresql — генерация JSON
- https://shusson.info/post/building-nested-json-objects-with-postgres — генерация JSON
- https://tapoueh.org/blog/2018/05/postgresql-data-types-point/ (см. запрос с итоговыми суммами и диаграммами внизу)
- задача параллельной многопроцессной обработки очереди, обсуждение на форуме
- https://pgday.ru/files/pgmaster14/max.boguk.query.optimization.pdf (оптимизация запросов)
- https://pgday.ru/presentation/232/5964945ea4142.pdf Учим слона танцевать рок-н-ролл (оптимизация запросов)
- http://tatiyants.com/how-to-navigate-json-trees-in-postgres-using-recursive-ctes/
- https://wiki.postgresql.org/wiki/Category:Performance_Snippets
- https://wiki.postgresql.org/wiki/Index_Maintenance
- https://postgres.cz/wiki/PostgreSQL_SQL_Tricks
- https://pgday.ru/ru/2016/papers/62 Where is the space, Postgres?
- https://pgcookbook.ru/index.html
- https://wiki.postgresql.org/wiki/ArrXor
- http://akorotkov.github.io/blog/2016/06/17/faceted-search/ Фасетный поиск
- https://www.cybertec-postgresql.com/en/faceting-large-result-sets/ FACETING LARGE RESULT SETS IN POSTGRESQL
- https://postgrespro.ru/media/2016/11/08/pgconfeu-fts-2016.pdf Better Full Text Search in PostgreSQL
- https://www.percona.com/blog/2019/07/22/automatic-index-recommendations-in-postgresql-using-pg_qualstats-and-hypopg/
- https://tech.binary.com/lock-contention-in-postgres/ (интересный способ уменьшить блокировки)
- https://dataedo.com/kb/query/ Useful queries for popular relational databases to explore schema. Database Data Dictionary Query Toolbox
- https://aws.amazon.com/ru/blogs/database/validating-database-objects-after-migration-using-aws-sct-and-aws-dms/ Validating database objects after migration using AWS SCT and AWS DMS
- http://morozovsk.blogspot.com/2011/07/array-function-arraydiff-in-postgresql.html
array_diff()
иarray_intersect()
и др. - https://begriffs.com/posts/2017-08-27-deferrable-sql-constraints.html
- https://begriffs.com/posts/2017-10-21-sql-domain-integrity.html
- https://begriffs.com/posts/2018-03-20-user-defined-order.html
- https://ru.wikipedia.org/wiki/Дерево_Штерна_—_Броко
- https://begriffs.com/pdf/dec2frac.pdf
- YouTube: Advanced SQL — Chapter #07 — Video #57 — PL/SQL use case: spreadsheet evaluation
- https://hakibenita.com/sql-anomaly-detection Simple Anomaly Detection Using Plain SQL (Детектирование аномалий)
- https://wiki.postgresql.org/wiki/Inlining_of_SQL_functions
- https://www.crunchydata.com/postgres-tips
- https://www.pro-open.de/MATCH_RECOGNIZE - "Emulating" MATCH_RECOGNIZE in PostgreSQL (вычисление пиковых значений на графике)
- https://onecompiler.com/postgresql Sandbox / Песочница