home.social

#pgsql — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #pgsql, aggregated by home.social.

fetched live
  1. 🐘 All you need is PostgreSQL

    「 Complexity grows, not because the problems demand it, but because someone reached for a tool they saw in a conference talk 」

    ebellani.github.io/blog/2026/a

    #postgresql #pgsql #scale

  2. 🐘 All you need is PostgreSQL

    「 Complexity grows, not because the problems demand it, but because someone reached for a tool they saw in a conference talk 」

    ebellani.github.io/blog/2026/a

    #postgresql #pgsql #scale

  3. Как написать свое расширение postgres?

    Привет, хабровчане! Сегодня покажу, как писать расширения для PostgreSQL. На примере pg_plan_alternatives, который логирует все пути, рассматриваемые планировщиком. Вы увидите то, что обычно скрывает планировщик. Нам потребуется:

    habr.com/ru/articles/1042118/

    #postgresql #postgres #c #c++ #makefile #git #sql #pgsql #extension #planning

  4. I like #TimescaleDB for storing time-based data...

    ...until I have to find a row by the given ID, which is 90% of the time.

    In other words, I use TimescaleDB 10% of the time, and with that usecase, I literally don't use it at all because it adds another shit to worry about.

    Once it works for both use cases, I'll may take a look on that.

    #Programming #Coding #Code #SQL #Database #Databases #DB #RDBMS #PostgreSQL #PGSQL #OpenSource #FreeOpenSource #OSS #FOSS

  5. I like #TimescaleDB for storing time-based data...

    ...until I have to find a row by the given ID, which is 90% of the time.

    In other words, I use TimescaleDB 10% of the time, and with that usecase, I literally don't use it at all because it adds another shit to worry about.

    Once it works for both use cases, I'll may take a look on that.

    #Programming #Coding #Code #SQL #Database #Databases #DB #RDBMS #PostgreSQL #PGSQL #OpenSource #FreeOpenSource #OSS #FOSS

  6. Последовательное иерархическое распределение сумм. Создание БД. Распределение сумм по правилам средствами PostgreSQL

    В первой статье была описана задача распределения сумм затрат между отделами по заданным правилам, с учётом того что отделы могут передавать свои затраты на другие отделы. Задача этой и следующей статей — показать, как эту задачу можно реализовать относительно просто и легко, не прибегая к созданию больших приложений. В данной статье будет описана структура PostgreSQL-базы данных и реализация данной задачи с помощью SQL в варианте PL/pgSQL . Реализация на Apache Spark будет описана в следующей статье. В качестве примера будут созданы настройки распределения и входные данные для:

    habr.com/ru/articles/1040376/

    #аллокации #аллокация #sql #pgsql #postgresql #postgresql_performance

  7. Healthchecks в Docker Compose для Laravel: как сделать так, чтобы сервисы запускались в правильном порядке

    Если вы хоть раз поднимали Laravel-проект в Docker Compose, наверняка сталкивались с ситуацией: контейнер с приложением стартует раньше, чем база данных успевает принять соединения, и миграции падают с ошибкой SQLSTATE[08006] или Connection refused . Перезапустишь — всё работает. На локалке терпимо, но в продакшене — это в падающие деплои. По умолчанию Docker считает контейнер «живым», если его процесс запущен. Но это не всегда означает, что сервис внутри готов к работе. Решение — правильно настроенные healthcheck’и и условие depends_on с параметром condition: service_healthy . В этой статье разберём, как это сделать для типичного стека Laravel: PHP-FPM, PostgreSQL, Redis и Nginx.

    habr.com/ru/articles/1040132/

    #docker #dockercompose #laravel #php #healthchecks #phpfpm #redis #pgsql #nginx

  8. Один «странный» случай индексного сканирования

    Эта история началась с исследования проблем производительности на высоконагруженной базе данных Postgres. Табличка, которая была предметом исследования, довольно небольшая (~100,000 записей), но очень активно используемая. В процессе исследования я увидел, что Postgres использует индексный доступ по абсолютно неселективному критерию, фактически это был "INDEX FULL SCAN" в терминологии Oracle. Интуиция, наработанная на другой промышленной базе, вопила: "что-то здесь не так!" Но что?

    habr.com/ru/companies/gnivc/ar

    #execution_plan #postgresql #базы_данных #pgsql #sql #postgres

  9. pgxWrappy — потому что жизнь слишком коротка для ручного сканирования в Go! �

    Если вы устали от бесконечного rows.Scan(), ручного разбора вложенных структур и километрового boilerplate-кода — pgxWrappy создан для вас! 🚀 Делаем неудобное удобным! Жить с удобством

    habr.com/ru/articles/931242/

    #Go #golang #pgx #sql #gorm #orm #postgres #pgsql #database #opensource

  10. Professionnellement, je commence doucement à me projeter dans l'après CDD, c'est à dire au printemps-été 2026.
    J'aimerais aller vers #ClermontFerrand pour me rapprocher de gens que j'aime.

    Donc si vous êtes dans un service public, une association ou une SCOP du coin qui recherche ou est susceptible de chercher un géomaticien, n'hésitez pas à me faire signe.

    #PGSQL #RStats #Python #Flask #QGIS #ecologie #leaflet #geoserver #SIG #logicielLibre

  11. Professionnellement, je commence doucement à me projeter dans l'après CDD, c'est à dire au printemps-été 2026.
    J'aimerais aller vers #ClermontFerrand pour me rapprocher de gens que j'aime.

    Donc si vous êtes dans un service public, une association ou une SCOP du coin qui recherche ou est susceptible de chercher un géomaticien, n'hésitez pas à me faire signe.

    #PGSQL #RStats #Python #Flask #QGIS #ecologie #leaflet #geoserver #SIG #logicielLibre

  12. Как добавить или расширить диск в Linux

    На виртуалке кончилось место ? Не беда, у нас виртуалка - увеличим диск. Не хотим размещать файлы на основном диске ? Не беда у нас виртуалка - добавим новый диск. Всё бы ни чего, но виртуалка сама железо не настроит, в том смысле что конечно виртуальная машина предоставляет доступ к железу, но ресурсы этого железа программам предоставляет не виртуалка, ресурсы предоставляет операционная система. Эта инструкция будет о том как настроить операционную систему Ubunta, для управления новым железом (в нашем случае дисковым пространством).

    habr.com/ru/articles/871230/

    #ubuntu #growpart #resize2fs #lsblk #pgsql

  13. Hey PostgreSQL users, is there a way to get the *expanded* IPv6 text representation of a v6 inet or cidr data type? Pg does a lovely job of compressing it correctly, but I need it uncompressed.
    (Why: ".ip6.arpa", sadly. I'm doing DNS work.)

    Exporting to a file and running a standalone utility is _not_ a viable solution in this scenario.

    Feel free to boost for visibility.

    #pg #pgsql #postgres #ipv6

  14. Hey PostgreSQL users, is there a way to get the *expanded* IPv6 text representation of a v6 inet or cidr data type? Pg does a lovely job of compressing it correctly, but I need it uncompressed.
    (Why: ".ip6.arpa", sadly. I'm doing DNS work.)

    Exporting to a file and running a standalone utility is _not_ a viable solution in this scenario.

    Feel free to boost for visibility.

    #pg #pgsql #postgres #ipv6

  15. Top Five #PostgreSQL Surprises from #Rails Developers, by Andrew Atkinson
    medium.com/pragmatic-programme

    1. Covering indexes and how to use them

    2. PostgreSQL data storage in pages and the relationship to query performance

    3. Topics related to storing and accessing ordered data

    4. Why SELECT * is not optimal, and how to enumerate all table columns in queries to help spot opportunities to reduce the columns

    5.Using PostgreSQL for more types of work

    #ruby #RoR #PgSQL

  16. Top Five #PostgreSQL Surprises from #Rails Developers, by Andrew Atkinson
    medium.com/pragmatic-programme

    1. Covering indexes and how to use them

    2. PostgreSQL data storage in pages and the relationship to query performance

    3. Topics related to storing and accessing ordered data

    4. Why SELECT * is not optimal, and how to enumerate all table columns in queries to help spot opportunities to reduce the columns

    5.Using PostgreSQL for more types of work

    #ruby #RoR #PgSQL

  17. MySQL vs PostgreSQL Performance Benchmark (Latency - Throughput - Saturation)

    Як на мене все перед вашими очима...

    youtube.com/watch?v=R7jBtnrUmY

    #mysql #postgres #pgsql

  18. MySQL vs PostgreSQL Performance Benchmark (Latency - Throughput - Saturation)

    Як на мене все перед вашими очима...

    youtube.com/watch?v=R7jBtnrUmY

    #mysql #postgres #pgsql

  19. #osm2pgsql - the power tool to import #osm data into #postgis - released version 2.0.0
    Breaking change: #Lua configuration becomes default and classic #pgsql output is deprecated
    #openstreetmap #postgres #postgresql #sql

    osm2pgsql.org/news/2024/09/19/

  20. #osm2pgsql - the power tool to import #osm data into #postgis - released version 2.0.0
    Breaking change: #Lua configuration becomes default and classic #pgsql output is deprecated
    #openstreetmap #postgres #postgresql #sql

    osm2pgsql.org/news/2024/09/19/

  21. Как реализовать и оптимизировать UPSERT в Greenplum 6

    Привет! Меня зовут Антон Васильев, я работаю инженером технической поддержки компании Arenadata и нередко сталкиваюсь с довольно каверзными задачами и багами. Одной из них была проблема оптимизации механизма UPSERT в Greenplum 6. В этой статье я хочу рассказать, как эта задача может быть решена.

    habr.com/ru/companies/arenadat

    #greenplum #arenadata_db #postresql #upsert #sql #pgsql

  22. Adventures in DBA-ing. I found out if you rename a table in PostGreSQL that's referenced in a view, then create a new table with the old name, of course the view uses the old table data not the new data because that's not what I expected.
    #PGSQL

  23. Adventures in DBA-ing. I found out if you rename a table in PostGreSQL that's referenced in a view, then create a new table with the old name, of course the view uses the old table data not the new data because that's not what I expected.
    #PGSQL

  24. Hello PostgreSQL experts. :rp_wave:

    PGHero tell me I have unused indexes in my databses. :rp_trash:
    Can I safely remove them? :rp_thinking:

    Exemple with the “index_pghero_space_stats_on_database_and_captured_at” index:

    #PGSQL #PostgreSQL #Database

  25. Hello PostgreSQL experts. :rp_wave:

    PGHero tell me I have unused indexes in my databses. :rp_trash:
    Can I safely remove them? :rp_thinking:

    Exemple with the “index_pghero_space_stats_on_database_and_captured_at” index:

    #PGSQL #PostgreSQL #Database

  26. Anyone know of an alternative to postico that won't make me guilty regularly for not forking over 60€?

    #postgres #database #pgsql #sql #PostgresSQL

  27. does anyone know if there's a way to have postgres save different DBs to different locations?

    it's not a thing i need right now, but i've come 🤏 this close to needing to install other pgsql stuff on my server, and i'd prefer atm to keep my storage drive that has my akkoma DB to be literally just akkoma stuff

    when i've looked this information up before i've just found information on moving your whole pgsql data directory, which i already know how to do

    :do_boost: #postgreSQL #postgres #pgsql #sysadmin
  28. does anyone know if there's a way to have postgres save different DBs to different locations?

    it's not a thing i need right now, but i've come 🤏 this close to needing to install other pgsql stuff on my server, and i'd prefer atm to keep my storage drive that has my akkoma DB to be literally just akkoma stuff

    when i've looked this information up before i've just found information on moving your whole pgsql data directory, which i already know how to do

    :do_boost: #postgreSQL #postgres #pgsql #sysadmin