Глава 34. Большие объекты

В Postgres Pro имеется механизм для работы с большими объектами, предоставляющий доступ в потоковом режиме к пользовательским данным, сохранённым в специальной структуре больших объектов. Потоковый доступ удобен, когда нужно обрабатывать данные, объём которых слишком велик, чтобы оперировать ими как единым целым.

В этой главе описывается реализация, а также программный интерфейс и функции языка запросов для работы с данными больших объектов Postgres Pro. В примерах в этой главе будет использоваться библиотека libpq для языка C, но та же функциональность поддерживается и другими программными интерфейсами Postgres Pro. Другие интерфейсы могут использовать внутри себя интерфейс больших объектов для реализации общего подхода к работе с большими значениями. Здесь это не описывается.

Appendix M. Demo Database Airlines

This is an overview of a demo database for Postgres Pro. This appendix describes the database schema, which consists of eight tables and several views. The subject field of this database is airline flights in Russia. You can download the database from our website. See Section M.1 for details.

Figure M.1. Airlines in Russia

Airlines in Russia


You can use this database for various purposes, such as:

  • learning SQL language on your own

  • preparing books, manuals, and courses on SQL

  • showing Postgres Pro features in stories and articles

When developing this demo database, we pursued several goals:

  • Database schema must be simple enough to be understood without extra explanations.

  • At the same time, database schema must be complex enough to allow writing meaningful queries.

  • The database must contain true-to-life data that will be interesting to work with.

This demo database is distributed under the PostgreSQL license.

You can send us your feedback to edu@postgrespro.ru.