# "Что поменялось в 1С с заливки таблиц?" Простой мониторинг метаданных на Airflow и PostgreSQL

DevFeed: ["Что поменялось в 1С с заливки таблиц?" Простой мониторинг метаданных на Airflow и PostgreSQL](<https://devfeed.tech/articles/1-airflow-postgresql-158742.md>)

Original publisher: [Read original article](<https://habr.com/ru/articles/1113556/>)

Author: greet\_di

Published: 2026-11-28T13:50:45Z

Content type: article

Language: ru

Sources: [Tagir Valeev](<https://devfeed.tech/sources/tagir-valeev.md>)

Topics: [PostgreSQL](<https://devfeed.tech/topics/postgresql.md>), [airflow](<https://devfeed.tech/topics/airflow.md>), [JOIN](<https://devfeed.tech/topics/join.md>), [telegram-bot](<https://devfeed.tech/topics/telegram-bot.md>)

Tags: [1-3888f6fb8451](<https://devfeed.tech/tags/1-3888f6fb8451.md>), [1c](<https://devfeed.tech/tags/1c.md>), [airflow](<https://devfeed.tech/tags/airflow.md>), [datawarehouse](<https://devfeed.tech/tags/datawarehouse.md>), [etl-f025c62dd825](<https://devfeed.tech/tags/etl-f025c62dd825.md>), [metadata](<https://devfeed.tech/tags/metadata.md>), [postgresql](<https://devfeed.tech/tags/postgresql.md>), [snapshot](<https://devfeed.tech/tags/snapshot.md>), [sql](<https://devfeed.tech/tags/sql.md>), [tag-0ed5a36ec076](<https://devfeed.tech/tags/tag-0ed5a36ec076.md>), [tag-25f996fc2ae9](<https://devfeed.tech/tags/tag-25f996fc2ae9.md>), [tag-73eb9b712998](<https://devfeed.tech/tags/tag-73eb9b712998.md>), [tag-75f9565ba7f8](<https://devfeed.tech/tags/tag-75f9565ba7f8.md>), [tag-f19ed3cfd735](<https://devfeed.tech/tags/tag-f19ed3cfd735.md>), [telegram](<https://devfeed.tech/tags/telegram.md>), [the-ants](<https://devfeed.tech/tags/the-ants.md>)

## AI overview

The article describes a daily Airflow and PostgreSQL process that detects changes to 1C metadata and reports relevant ones in Telegram. It compares current metadata with a saved snapshot using a FULL OUTER JOIN, classifies added, removed, and changed records, and uses IS DISTINCT FROM so NULL values are compared correctly. A single SQL statement stores every change in history while returning up to 20 details and a total count. Changes are matched to the loading registry, with status 3 prioritized over status 2. The comparison, history write, and snapshot refresh run in one transaction so Airflow can retry after failure. The excerpt also recommends checking for an unexpectedly depleted source, avoiding NULL keys that create recurring false changes, and escaping HTML and truncating Telegram messages at whole blocks. It describes a daily process and gives implementation examples, but does not provide measured performance results.

## Source excerpt

"Что поменялось в 1С с заливки таблиц?" Простой мониторинг метаданных на Airflow и PostgreSQL Проблема в том, что базы 1С не стоят на месте. Разработчики 1С регулярно что-то в них меняют. но что если все из за их изменений у нас ломаются загрузчики? Читать далее