{"id":289999,"date":"2018-09-27T17:10:02","date_gmt":"2018-09-27T13:10:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=289999"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=289999","title":{"rendered":"\u041c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044b \u0441 \u0432\u0441\u0442\u0440\u0435\u0447\u0438 #RuPostgres \u2014 \u0432\u0438\u0434\u0435\u043e\u0437\u0430\u043f\u0438\u0441\u0438, \u043f\u0440\u0435\u0437\u0435\u043d\u0442\u0430\u0446\u0438\u0438, \u0440\u0430\u0437\u0431\u043e\u0440 \u0432\u0438\u043a\u0442\u043e\u0440\u0438\u043d\u044b \u0438 \u0444\u043e\u0442\u043e\u043e\u0442\u0447\u0451\u0442"},"content":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\">\n<p>15 \u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f \u0432 \u0410\u0432\u0438\u0442\u043e \u043f\u0440\u043e\u0448\u0451\u043b \u043c\u0438\u0442\u0430\u043f, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043c\u044b \u0433\u043e\u0432\u043e\u0440\u0438\u043b\u0438 \u043e \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043d\u0430 PostgreSQL. \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u044f \u0445\u043e\u0447\u0443 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u0430\u043c\u0438 \u0441 \u043d\u0435\u0433\u043e \u2014 \u0432\u0438\u0434\u0435\u043e\u0437\u0430\u043f\u0438\u0441\u044f\u043c\u0438, \u043f\u0440\u0435\u0437\u0435\u043d\u0442\u0430\u0446\u0438\u044f\u043c\u0438 \u043e\u0442 \u0434\u043e\u043a\u043b\u0430\u0434\u0447\u0438\u043a\u043e\u0432, \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0444\u043e\u0442\u043e. \u0422\u0430\u043a\u0436\u0435 \u043f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c \u043f\u0443\u0431\u043b\u0438\u043a\u0443\u044e \u0440\u0430\u0437\u0431\u043e\u0440 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432 <a href=\"https:\/\/habr.com\/company\/avito\/blog\/422841\/\">\u0432\u0438\u043a\u0442\u043e\u0440\u0438\u043d\u044b<\/a>, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043c\u044b \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u043b\u0438 \u0437\u0434\u0435\u0441\u044c, \u043d\u0430 \u0425\u0430\u0431\u0440\u0435, \u043f\u0435\u0440\u0435\u0434 \u043c\u0438\u0442\u0430\u043f\u043e\u043c. \u0418 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u044e \u043e \u0441\u0432\u043e\u0438\u0445 \u0432\u043f\u0435\u0447\u0430\u0442\u043b\u0435\u043d\u0438\u044f\u0445 \u043e\u0442 \u0432\u0441\u0442\u0440\u0435\u0447\u0438. <\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/tq\/w8\/ff\/tqw8ffbp5stottfooubdrhw_yje.jpeg\"><\/p>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<h1 id=\"doklady\">\u0414\u043e\u043a\u043b\u0430\u0434\u044b<\/h1>\n<p>  <\/p>\n<h3 id=\"raspredelennye-tranzakcii-i-puteshestviya-vo-vremeni-stas-kelvich-postgres-professional\">\u0420\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0435 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438 \u0438 \u043f\u0443\u0442\u0435\u0448\u0435\u0441\u0442\u0432\u0438\u044f \u0432\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438. \u0421\u0442\u0430\u0441 \u041a\u0435\u043b\u044c\u0432\u0438\u0447, Postgres Professional<\/h3>\n<p>  <\/p>\n<p>\u0421\u0442\u0430\u0441 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u043b \u043e\u0431 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430\u0445 \u0438 \u043d\u044e\u0430\u043d\u0441\u0430\u0445 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u043e\u043d\u043d\u043e\u0441\u0442\u0438 \u0432 \u044f\u0437\u044b\u043a\u0430\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. <\/p>\n<p>  <\/p>\n<div class=\"oembed\">\n<div>\n<div style=\"left: 0; width: 100%; height: 0; position: relative; padding-bottom: 56.2493%;\"><iframe src=\"https:\/\/www.youtube.com\/embed\/DFLEkWi-vRc?rel=0&amp;showinfo=1&amp;hl=en-US\" style=\"border: 0; top: 0; left: 0; width: 100%; height: 100%; position: absolute;\" allowfullscreen scrolling=\"no\"><\/iframe><\/div>\n<\/div>\n<\/div>\n<p>  <\/p>\n<p><a href=\"https:\/\/github.com\/avito-tech\/avitotech-presentations\/blob\/master\/RuPostgres%20%E2%80%94%D0%9C%D0%B0%D1%81%D1%88%D1%82%D0%B0%D0%B1%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5%20%D0%BF%D1%80%D0%B8%D0%BB%D0%BE%D0%B6%D0%B5%D0%BD%D0%B8%D0%B8%CC%86%20%D0%BD%D0%B0%20PostgreSQL\/%D0%A0%D0%B0%D1%81%D0%BF%D1%80%D0%B5%D0%B4%D0%B5%D0%BB%D0%B5%D0%BD%D0%BD%D1%8B%D0%B5%20%D1%82%D1%80%D0%B0%D0%BD%D0%B7%D0%B0%D0%BA%D1%86%D0%B8%D0%B8%20%D0%B8%20%D0%BF%D1%83%D1%82%D0%B5%D1%88%D0%B5%D1%81%D1%82%D0%B2%D0%B8%D1%8F%20%D0%B2%D0%BE%20%D0%B2%D1%80%D0%B5%D0%BC%D0%B5%D0%BD%D0%B8.pdf\">\u041f\u0440\u0435\u0437\u0435\u043d\u0442\u0430\u0446\u0438\u044f<\/a><\/p>\n<p>  <\/p>\n<p>\u041e\u0442\u0437\u044b\u0432\u044b: <\/p>\n<p>  <\/p>\n<blockquote><p>\u0421\u0442\u0430\u0441 \u0441\u043e \u0441\u0432\u043e\u0435\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 \u0441\u0434\u0435\u043b\u0430\u043b \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u0443\u044e \u0440\u0430\u0431\u043e\u0442\u0443! \u041d\u0430\u0434\u0435\u044e\u0441\u044c \u0438\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043e\u0434\u043e\u0431\u0440\u0438\u0442 community \u0438 \u043c\u044b \u0443\u0432\u0438\u0434\u0438\u043c \u044d\u0442\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0432 \u043d\u043e\u0432\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 Postgres.<\/p><\/blockquote>\n<p>  <\/p>\n<h3 id=\"masshtabirovanie-prilozheniya-na-postgresql-v-avito-tips-and-tricks-konstantin-evteev-avito\">\u041c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0430 PostgreSQL \u0432 \u0410\u0432\u0438\u0442\u043e: tips and tricks. \u041a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0438\u043d \u0415\u0432\u0442\u0435\u0435\u0432, \u0410\u0432\u0438\u0442\u043e<\/h3>\n<p>  <\/p>\n<p>\u042f \u0432\u044b\u0441\u0442\u0443\u043f\u0438\u043b \u0441 \u0434\u043e\u043a\u043b\u0430\u0434\u043e\u043c \u043f\u0440\u043e \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0430 PostgreSQL \u0432 \u0410\u0432\u0438\u0442\u043e \u0438 \u043f\u043e\u0434\u0435\u043b\u0438\u043b\u0441\u044f \u043d\u0430\u0448\u0438\u043c\u0438 tips and tricks.<\/p>\n<p>  <\/p>\n<div class=\"oembed\">\n<div>\n<div style=\"left: 0; width: 100%; height: 0; position: relative; padding-bottom: 56.2493%;\"><iframe src=\"https:\/\/www.youtube.com\/embed\/78UNk0UfrRg?rel=0&amp;showinfo=1&amp;hl=en-US\" style=\"border: 0; top: 0; left: 0; width: 100%; height: 100%; position: absolute;\" allowfullscreen scrolling=\"no\"><\/iframe><\/div>\n<\/div>\n<\/div>\n<p>  <\/p>\n<p><a href=\"https:\/\/github.com\/avito-tech\/avitotech-presentations\/blob\/master\/RuPostgres%20%E2%80%94%D0%9C%D0%B0%D1%81%D1%88%D1%82%D0%B0%D0%B1%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5%20%D0%BF%D1%80%D0%B8%D0%BB%D0%BE%D0%B6%D0%B5%D0%BD%D0%B8%D0%B8%CC%86%20%D0%BD%D0%B0%20PostgreSQL\/%D0%9C%D0%B0%D1%81%D1%88%D1%82%D0%B0%D0%B1%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5%20%D0%BF%D1%80%D0%B8%D0%BB%D0%BE%D0%B6%D0%B5%D0%BD%D0%B8%D1%8F%20%D0%BD%D0%B0%20PostgreSQL%20%D0%B2%20%D0%90%D0%B2%D0%B8%D1%82%D0%BE.pdf\">\u041f\u0440\u0435\u0437\u0435\u043d\u0442\u0430\u0446\u0438\u044f<\/a><\/p>\n<p>  <\/p>\n<p>\u041e\u0442\u0437\u044b\u0432\u044b: <\/p>\n<p>  <\/p>\n<blockquote><p>\u0418\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0439 \u043f\u043e\u0434\u0445\u043e\u0434: \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u041a\u043e\u0441\u0442\u0430\u043d\u0442\u0438\u043d \u043e\u0447\u0435\u043d\u044c \u0443\u0432\u043b\u0435\u043a\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0438 \u0434\u043e\u0445\u043e\u0434\u0447\u0438\u0432\u043e \u0440\u0430\u0437\u044c\u044f\u0441\u043d\u0438\u043b \u0441 \u043a\u0430\u043a\u0438\u043c\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u043c\u0438 \u043c\u043e\u0436\u043d\u043e \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u0442\u044c\u0441\u044f \u043f\u0440\u0438 \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0432 \u043c\u0438\u043a\u0440\u043e\u0441\u0435\u0440\u0432\u0438\u0441\u043d\u043e\u0439 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0435, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u043b \u043f\u0443\u0442\u0438 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043f\u0440\u0438 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u0418\u0421. Saga \u0437\u0430\u043f\u043e\u043c\u043d\u0438\u043b\u0430\u0441\u044c:) <\/p><\/blockquote>\n<p>  <\/p>\n<h3 id=\"logicheskaya-replikaciya-i-urovni-izolyacii-tranzakciy-postgresql-mihail-tyurin\">\u041b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0440\u0435\u043f\u043b\u0438\u043a\u0430\u0446\u0438\u044f \u0438 \u0443\u0440\u043e\u0432\u043d\u0438 \u0438\u0437\u043e\u043b\u044f\u0446\u0438\u0438 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0439 PostgreSQL. \u041c\u0438\u0445\u0430\u0438\u043b \u0422\u044e\u0440\u0438\u043d<\/h3>\n<p>  <\/p>\n<p>\u041c\u0438\u0445\u0430\u0438\u043b \u043f\u0440\u0438\u0433\u043e\u0442\u043e\u0432\u0438\u043b \u0434\u043e\u043a\u043b\u0430\u0434 \u043e \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0440\u0435\u043f\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u0438 \u0443\u0440\u043e\u0432\u043d\u044f\u0445 \u0438\u0437\u043e\u043b\u044f\u0446\u0438\u0438 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0439 PostgreSQL.<\/p>\n<p>  <\/p>\n<div class=\"oembed\">\n<div>\n<div style=\"left: 0; width: 100%; height: 0; position: relative; padding-bottom: 56.2493%;\"><iframe src=\"https:\/\/www.youtube.com\/embed\/5i07k-uvxXY?rel=0&amp;showinfo=1&amp;hl=en-US\" style=\"border: 0; top: 0; left: 0; width: 100%; height: 100%; position: absolute;\" allowfullscreen scrolling=\"no\"><\/iframe><\/div>\n<\/div>\n<\/div>\n<p>  <\/p>\n<p><a href=\"https:\/\/github.com\/avito-tech\/avitotech-presentations\/blob\/master\/RuPostgres%20%E2%80%94%D0%9C%D0%B0%D1%81%D1%88%D1%82%D0%B0%D0%B1%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5%20%D0%BF%D1%80%D0%B8%D0%BB%D0%BE%D0%B6%D0%B5%D0%BD%D0%B8%D0%B8%CC%86%20%D0%BD%D0%B0%20PostgreSQL\/%D0%9B%D0%BE%D0%B3%D0%B8%D1%87%D0%B5%D1%81%D0%BA%D0%B0%D1%8F%20%D1%80%D0%B5%D0%BF%D0%BB%D0%B8%D0%BA%D0%B0%D1%86%D0%B8%D1%8F%20%D0%B8%20%D1%83%D1%80%D0%BE%D0%B2%D0%BD%D0%B8%20%D0%B8%D0%B7%D0%BE%D0%BB%D1%8F%D1%86%D0%B8%D0%B8%20%D1%82%D1%80%D0%B0%D0%BD%D0%B7%D0%B0%D0%BA%D1%86%D0%B8%D0%B8%CC%86%20PostgreSQL.pdf\">\u041f\u0440\u0435\u0437\u0435\u043d\u0442\u0430\u0446\u0438\u044f<\/a><\/p>\n<p>  <\/p>\n<p>\u041e\u0442\u0437\u044b\u0432\u044b: <\/p>\n<p>  <\/p>\n<blockquote><p>\u041c\u0438\u0445\u0430\u0438\u043b \u043e\u0441\u0432\u0435\u0442\u0438\u043b \u0442\u043e\u043d\u043a\u0438\u0435 \u043c\u043e\u043c\u0435\u043d\u0442\u044b \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u0430\u043b\u0435\u043a\u043e \u043d\u0435 \u0441\u0440\u0430\u0437\u0443 \u0432\u0438\u0434\u043d\u044b \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u043e\u0432\u0438\u0447\u043a\u0430\u043c. \u041e\u0431 \u044d\u0442\u043e\u043c \u043d\u0443\u0436\u043d\u043e \u0437\u043d\u0430\u0442\u044c \u0432\u0441\u0435\u043c. <\/p><\/blockquote>\n<p>  <\/p>\n<h3 id=\"ozo--asinhronnaya-tipobezopasnaya-header-only-biblioteka-klient-postgresql-dlya-c17-sergey-handrikov-yandeks\">OZO \u2014 \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u0430\u044f \u0442\u0438\u043f\u043e\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u0430\u044f header-only \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u043a\u043b\u0438\u0435\u043d\u0442 PostgreSQL \u0434\u043b\u044f C++17. \u0421\u0435\u0440\u0433\u0435\u0439 \u0425\u0430\u043d\u0434\u0440\u0438\u043a\u043e\u0432, \u042f\u043d\u0434\u0435\u043a\u0441<\/h3>\n<p>  <\/p>\n<p>\u0421\u0435\u0440\u0433\u0435\u0439 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u043b \u0441\u043b\u0443\u0448\u0430\u0442\u0435\u043b\u044f\u043c \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u0443\u0441\u0442\u0440\u043e\u0435\u043d\u0430 OZO, \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u0430\u044f \u0442\u0438\u043f\u043e\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u0430\u044f header-only \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430-\u043a\u043b\u0438\u0435\u043d\u0442 PostgreSQL \u0434\u043b\u044f C++17 \u0438 \u043f\u0440\u0438\u0433\u043b\u0430\u0441\u0438\u043b \u043a\u043e\u043d\u0442\u0440\u0438\u0431\u044c\u044e\u0442\u0438\u0442\u044c \u0432 \u043d\u0435\u0451. <\/p>\n<p>  <\/p>\n<div class=\"oembed\">\n<div>\n<div style=\"left: 0; width: 100%; height: 0; position: relative; padding-bottom: 56.2493%;\"><iframe src=\"https:\/\/www.youtube.com\/embed\/7Kq_sNSuolw?rel=0&amp;showinfo=1&amp;hl=en-US\" style=\"border: 0; top: 0; left: 0; width: 100%; height: 100%; position: absolute;\" allowfullscreen scrolling=\"no\"><\/iframe><\/div>\n<\/div>\n<\/div>\n<p>  <\/p>\n<p><a href=\"https:\/\/github.com\/avito-tech\/avitotech-presentations\/blob\/master\/RuPostgres%20%E2%80%94%D0%9C%D0%B0%D1%81%D1%88%D1%82%D0%B0%D0%B1%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5%20%D0%BF%D1%80%D0%B8%D0%BB%D0%BE%D0%B6%D0%B5%D0%BD%D0%B8%D0%B8%CC%86%20%D0%BD%D0%B0%20PostgreSQL\/OZO%20%E2%80%94%20%D0%B0%D1%81%D0%B8%D0%BD%D1%85%D1%80%D0%BE%D0%BD%D0%BD%D0%B0%D1%8F%20%D1%82%D0%B8%D0%BF%D0%BE%D0%B1%D0%B5%D0%B7%D0%BE%D0%BF%D0%B0%D1%81%D0%BD%D0%B0%D1%8F%20header-only%20%D0%B1%D0%B8%D0%B1%D0%BB%D0%B8%D0%BE%D1%82%D0%B5%D0%BA%D0%B0%20%D0%BA%D0%BB%D0%B8%D0%B5%D0%BD%D1%82%20PostgreSQL%20%D0%B4%D0%BB%D1%8F%20C%2B%2B17.pdf\">\u041f\u0440\u0435\u0437\u0435\u043d\u0442\u0430\u0446\u0438\u044f<\/a><\/p>\n<p>  <\/p>\n<p>\u041e\u0442\u0437\u044b\u0432\u044b: <\/p>\n<p>  <\/p>\n<blockquote><p>\u0410\u0432\u0442\u043e\u0440\u0443 \u043d\u0430 \u043c\u043e\u0439 \u0432\u0433\u043b\u044f\u0434 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0432 \u0441\u0436\u0430\u0442\u044b\u0435 \u0441\u0440\u043e\u043a\u0438 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043e\u0431\u0437\u043e\u0440\u043d\u043e \u0440\u0430\u0441\u043a\u0440\u044b\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0432 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430\u0445 \u0438 \u043f\u0443\u0442\u0438 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0432 \u043d\u043e\u0432\u044b\u0445 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430\u0445 C++. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0440\u0430\u0434 \u0431\u0443\u0434\u0443, \u0435\u0441\u043b\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0437\u0432\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u0432 opensource, \u0442\u0435\u043c \u0431\u043e\u043b\u0435\u0435 \u0431\u0430\u0437\u043e\u0432\u044b\u0435 \u0432\u0435\u0449\u0438 \u0443\u0436\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u044b, \u0447\u0442\u043e \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u043d\u0435 \u0440\u0430\u0434\u043e\u0432\u0430\u0442\u044c. <\/p><\/blockquote>\n<p>  <\/p>\n<h1 id=\"otvety-na-voprosy-viktoriny\">\u041e\u0442\u0432\u0435\u0442\u044b \u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u0432\u0438\u043a\u0442\u043e\u0440\u0438\u043d\u044b<\/h1>\n<p>  <\/p>\n<p>\u041f\u0435\u0440\u0435\u0434 \u043c\u0438\u0442\u0430\u043f\u043e\u043c \u043c\u044b \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u043b\u0438 \u0432\u0430\u043c \u043e\u0442\u0432\u0435\u0442\u0438\u0442\u044c \u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u043f\u043e Postgres. \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u0445\u043e\u0447\u0443 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0435 \u043e\u0442\u0432\u0435\u0442\u044b. \u041e\u043d\u0438 \u043f\u043e\u0434 \u0441\u043f\u043e\u0439\u043b\u0435\u0440\u0430\u043c\u0438 (\u043d\u0430 \u0432\u0441\u044f\u043a\u0438\u0439 \u0441\u043b\u0443\u0447\u0430\u0439). <\/p>\n<p>  <\/p>\n<p><strong>\u0415\u0441\u0442\u044c \u043f\u0443\u0441\u0442\u0430\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u0431\u0435\u0437 \u0437\u0430\u043f\u0438\u0441\u0435\u0439 users (&#171;UserId&#187; int, &#171;balance&#187; int). \u0427\u0442\u043e \u0432\u0435\u0440\u043d\u0435\u0442\u0441\u044f \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0437\u0430\u043f\u0440\u043e\u0441\u0430? <\/strong><\/p>\n<p>  <\/p>\n<pre><code>with ins as (      insert into users           select          gs, gs * 10       from          generate_series(1, 4) gs           where          gs%2 = 0)  select * from users;<\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041e\u0442\u0432\u0435\u0442<\/b><\/p>\n<div class=\"spoiler_text\">\n<p>\u041d\u0438\u0447\u0435\u0433\u043e.<\/p>\n<\/div>\n<\/div>\n<p>  <\/p>\n<p><strong>\u0427\u0442\u043e \u0432\u0435\u0440\u043d\u0435\u0442 \u0437\u0430\u043f\u0440\u043e\u0441<\/strong> <code>select * from users where UserId = 10;<\/code> <strong>\u043f\u0440\u0438 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0438 \u043a \u0442\u0430\u0431\u043b\u0438\u0446\u0435 users \u043f\u043e\u0441\u043b\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0433\u043e \u0437\u0430\u0434\u0430\u043d\u0438\u044f?<\/strong><\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041e\u0442\u0432\u0435\u0442<\/b><\/p>\n<div class=\"spoiler_text\">\n<p>ERROR: column &#171;userid&#187; does not exist.<\/p>\n<\/div>\n<\/div>\n<p>  <\/p>\n<p><strong>\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d Enum CREATE TYPE status AS ENUM (&#8216;wait&#8217;, &#8216;init&#8217;, &#8216;run&#8217;, &#8216;stop&#8217;); \u041a\u0430\u043a\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 \u043c\u043e\u0436\u043d\u043e \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 &#8216;init&#8217;?<\/strong><\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041e\u0442\u0432\u0435\u0442<\/b><\/p>\n<div class=\"spoiler_text\">\n<p>\u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0433\u043e \u0441\u043f\u043e\u0441\u043e\u0431\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0438\u0437 enum \u043d\u0435\u0442.<\/p>\n<\/div>\n<\/div>\n<p>  <\/p>\n<p><strong>\u041a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0432 PostgreSQL?<\/strong><\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041e\u0442\u0432\u0435\u0442<\/b><\/p>\n<div class=\"spoiler_text\">\n<p>select * From pg_proc;<\/p>\n<\/div>\n<\/div>\n<p>  <\/p>\n<p><strong>\u0427\u0442\u043e \u0432\u0435\u0440\u043d\u0435\u0442\u0441\u044f \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0437\u0430\u043f\u0440\u043e\u0441\u0430? <\/strong> <\/p>\n<p>  <\/p>\n<pre><code>select null = null, null is null, 1::smallint::boolean is true, null::bigint &gt; 1<\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041e\u0442\u0432\u0435\u0442<\/b><\/p>\n<div class=\"spoiler_text\">\n<p>ERROR: cannot cast type smallint to boolean.<\/p>\n<\/div>\n<\/div>\n<p>  <\/p>\n<p><strong>Junior-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0443 \u0412\u0430\u0441\u0435 \u043f\u043e\u0440\u0443\u0447\u0438\u043b\u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u0432\u0441\u0435 \u0437\u0430\u043f\u0438\u0441\u0438 \u0438\u0437 \u0442\u0430\u0431\u043b\u0438\u0446\u044b <code>parent<\/code>, \u0434\u043b\u044f \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0435\u0442 \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 <code>child<\/code>.<\/strong><\/p>\n<p>  <\/p>\n<p><strong>\u0421\u0445\u0435\u043c\u0430 \u0434\u0430\u043d\u043d\u044b\u0445:<\/strong><\/p>\n<p>  <\/p>\n<pre><code>create table parent (parent_id serial primary key, payload text);  create table child (child_id serial primary key, parent_id integer unique references parent (parent_id));<\/code><\/pre>\n<p>  <\/p>\n<p><strong>\u0412\u0430\u0441\u044f \u043e\u0447\u0435\u043d\u044c \u0441\u0442\u0430\u0440\u0430\u043b\u0441\u044f \u0438 \u043d\u0435 \u0445\u043e\u0442\u0435\u043b \u0443\u0434\u0430\u0440\u0438\u0442\u044c \u0432 \u0433\u0440\u044f\u0437\u044c \u043b\u0438\u0446\u043e\u043c, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u043b \u0432\u043e\u0441\u0435\u043c\u044c \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0434\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0437\u0430\u0434\u0430\u0447\u0438:<\/strong><\/p>\n<p>  <\/p>\n<pre><code>-- 0 select     p.parent_id, p.payload from     parent p where     not exists(select from child c where c.parent_id = p.parent_id);  -- 1 select     p.parent_id, p.payload from     parent p where     not (array[p.parent_id] &amp;&amp; array(select c.parent_id from child c));  -- 2 select     distinct p.parent_id, p.payload from     parent p full join child c        on (c.parent_id = p.parent_id) where     c.parent_id is null;  -- 3 select     p.parent_id, p.payload from     parent p where     p.parent_id not in (select c.parent_id from child c);  -- 4 select     p.parent_id, p.payload from     parent p left join child c        on (c.parent_id = p.parent_id) where     c.parent_id is null;  -- 5 with w_child_with_parents as (     select         c.parent_id,         ( select count(*) from parent p where c.parent_id = p.parent_id) = 1 as parent_exists     from child c) select      p.parent_id, p.payload from      parent p where      p.parent_id in (select pc.parent_id from w_child_with_parents pc where not pc.parent_exists);  -- 6 select     p.parent_id, p.payload from     parent p full join child c        on (c.parent_id = p.parent_id) group by     p.parent_id,     p.payload having count(c) = 0;  -- 7 select     p.parent_id, p.payload from     parent p where     p.parent_id in ( select p2.parent_id from parent p2 except all select c2.parent_id from child c2);<\/code><\/pre>\n<p>  <\/p>\n<p><strong>\u0412\u0430\u0441\u044f \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u043b \u0441\u0432\u043e\u0438 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u0432\u0430\u043c, \u0447\u0442\u043e\u0431\u044b \u0432\u044b \u043f\u043e\u043c\u043e\u0433\u043b\u0438 \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0435\u043c\u0443 \u043b\u0443\u0447\u0448\u0438\u0439. \u041e\u043d \u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u0435\u0442, \u0447\u0442\u043e \u0432\u0441\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e: \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043f\u043e\u043c\u0435\u0449\u0430\u044e\u0442\u0441\u044f \u0432 \u043f\u0430\u043c\u044f\u0442\u044c \u0438 \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u0432 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043d\u0435 \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u0430 (\u0438\u043b\u0438 \u0434\u0430\u0436\u0435 \u043d\u0435\u0437\u0430\u043c\u0435\u0442\u043d\u0430). \u041e\u0434\u043d\u0430\u043a\u043e, \u0432\u044b \u043a\u0430\u043a \u0431\u043e\u043b\u0435\u0435 \u043e\u043f\u044b\u0442\u043d\u044b\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0437\u0430\u043c\u0435\u0442\u0438\u043b\u0438, \u0447\u0442\u043e, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043d\u0435 \u0432\u0441\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0440\u0435\u0448\u0430\u044e\u0442 \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u0443\u044e \u0437\u0430\u0434\u0430\u0447\u0443. \u041f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0438\u0442\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435 \u0440\u0435\u0448\u0430\u044e\u0442 \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u0443\u044e \u0437\u0430\u0434\u0430\u0447\u0443 (\u0438 \u043e\u0431\u044a\u044f\u0441\u043d\u0438\u0442\u0435 \u043f\u043e\u0447\u0435\u043c\u0443). <\/strong><\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u0440\u0430\u0442\u043a\u0438\u0439 \u043e\u0442\u0432\u0435\u0442<\/b><\/p>\n<div class=\"spoiler_text\">\n<p>\u041f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u0443\u044e \u0437\u0430\u0434\u0430\u0447\u0443 \u043d\u0435 \u0440\u0435\u0448\u0430\u044e\u0442 \u0437\u0430\u043f\u0440\u043e\u0441\u044b 2, 3 \u0438 5 (\u0432 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445 \u0442\u0430\u043a \u0436\u0435 \u0437\u0430\u043f\u0440\u043e\u0441 1).<\/p>\n<\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041e\u0442\u0432\u0435\u0442 \u043f\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0443 \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430<\/b><\/p>\n<div class=\"spoiler_text\">\n<h3 id=\"testovye-dannye\">\u0422\u0435\u0441\u0442\u043e\u0432\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435:<\/h3>\n<p>  <\/p>\n<p>\u00ab\u041d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0441\u0442\u044c\u00bb \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f, \u043a\u043e\u0433\u0434\u0430 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442 \u0437\u0430\u043f\u0438\u0441\u0438 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 child \u0441 parent_id is null.<\/p>\n<p>  <\/p>\n<pre><code>insert into parent    (parent_id, payload) values     (1, 'payload 1'),     (2, 'payload 2'),     (3, 'payload 3'),     (4, 'payload 4'),     (5, 'payload 5');   insert into child     (child_id, parent_id) values     (1, 1),     (2, 3),     (3, null),     (5, 5);<\/code><\/pre>\n<p>  <\/p>\n<h3 id=\"na-privedennyh-testovyh-dannyh\">\u041d\u0430 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0445 \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445<\/h3>\n<p>  <\/p>\n<ul>\n<li>\u0417\u0430\u043f\u0440\u043e\u0441 1 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0442\u043e\u0433\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e \u043b\u0438 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 intarray \u043c\u043e\u0436\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0438\u043b\u0438 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c.<\/li>\n<li>\u0417\u0430\u043f\u0440\u043e\u0441 2 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043b\u0438\u0448\u043d\u044e\u044e \u0441\u0442\u0440\u043e\u043a\u0443 (null, null).<\/li>\n<li>\u0417\u0430\u043f\u0440\u043e\u0441\u044b 3 \u0438 5 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044e\u0442 \u043f\u0443\u0441\u0442\u043e\u0439 \u0440\u0435\u0437\u0430\u043b\u0442\u0441\u0435\u0442.<\/li>\n<\/ul>\n<p>  <\/p>\n<h3 id=\"interpretaciya-rezultatov-eksperimenta\">\u0418\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0446\u0438\u044f \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u0432 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430<\/h3>\n<p>  <\/p>\n<p>\u0417\u0430\u043f\u0440\u043e\u0441 1: \u0432 \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 \u0432 \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 intarray (<a href=\"https:\/\/www.postgresql.org\/docs\/current\/static\/intarray.html\">https:\/\/www.postgresql.org\/docs\/current\/static\/intarray.html<\/a>), \u0437\u0430\u043f\u0440\u043e\u0441 \u043f\u0430\u0434\u0430\u0435\u0442 \u0441 \u043e\u0448\u0438\u0431\u043a\u043e\u0439 &#171;ERROR: array must not contain nulls&#187;. \u0414\u0430\u043d\u043d\u043e\u0435 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0441\u0432\u044f\u0437\u0430\u043d\u043e \u0441 \u0442\u0435\u043c, \u0447\u0442\u043e \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u0438 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u0432, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0445 null-\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b. <\/p>\n<p>  <\/p>\n<p>\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435: <\/p>\n<p>  <\/p>\n<blockquote><p>The operators &amp;&amp;, @&gt; and &lt;@ are equivalent to PostgreSQL&#8217;s built-in operators of the same names, except that they work only on integer arrays that do not contain nulls, while the built-in operators work for any array type. This restriction makes them faster than the built-in operators in many cases.<\/p><\/blockquote>\n<p>\u0417\u0430\u043f\u0440\u043e\u0441 2: \u0438\u0437-\u0437\u0430 full join \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438\u0448\u043d\u044f\u044f \u0441\u0442\u0440\u043e\u043a\u0430 (null, null).<\/p>\n<p>  <\/p>\n<p>\u0417\u0430\u043f\u0440\u043e\u0441 3: \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043f\u0443\u0441\u0442\u043e\u0439 \u0440\u0435\u0437\u0430\u043b\u0442\u0441\u0435\u0442 \u0438\u0437-\u0437\u0430 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0432\u043e \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0435, \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u043c\u044b\u043c \u043f\u043e\u0434\u0437\u0430\u043f\u0440\u043e\u0441\u043e\u043c \u0435\u0441\u0442\u044c null-\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b.<\/p>\n<p>  <\/p>\n<p>\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f (<a href=\"https:\/\/www.postgresql.org\/docs\/current\/static\/functions-subquery.html#FUNCTIONS-SUBQUERY-NOTIN\">https:\/\/www.postgresql.org\/docs\/current\/static\/functions-subquery.html#FUNCTIONS-SUBQUERY-NOTIN<\/a>): <\/p>\n<p>  <\/p>\n<blockquote><p>Note that if the left-hand expression yields null, or if there are no equal right-hand values and at least one right-hand row yields null, the result of the NOT IN construct will be null, not true. This is in accordance with SQL&#8217;s normal rules for Boolean combinations of null values.<\/p><\/blockquote>\n<p>\u0417\u0430\u043f\u0440\u043e\u0441 5: \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043f\u0443\u0441\u0442\u043e\u0439 \u0440\u0435\u0437\u0430\u043b\u0442\u0441\u0435\u0442 \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0432 \u0441\u0435\u043a\u0446\u0438\u0438 w_child_with_parents \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0437\u0430\u0445\u043e\u0434, \u0441 \u0442\u0430\u0431\u043b\u0438\u0446\u044b child \u0438 parent_id \u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0443\u0441\u0442\u044b\u043c \u0438\u043b\u0438 \u043d\u0435 \u043e\u0442\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f \u0432 \u0441\u0435\u043a\u0446\u0438\u0438 \u0432\u043e\u0432\u0441\u0435.<\/p>\n<\/div>\n<\/div>\n<p>  <\/p>\n<p>\u041d\u0430 \u0432\u0441\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u0432\u0438\u043a\u0442\u043e\u0440\u0438\u043d\u044b \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u043e\u0442\u0432\u0435\u0442\u0438\u043b\u0438 \u0442\u0440\u0438 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0430. \u041e\u0434\u043d\u043e\u043c\u0443 \u043c\u044b \u0432\u0440\u0443\u0447\u0438\u043b\u0438 \u043f\u0440\u0438\u0437 \u043d\u0430 \u043c\u0438\u0442\u0430\u043f\u0435, \u0435\u0449\u0451 \u0434\u0432\u0430 \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0442\u0430 \u0441\u0443\u0432\u0435\u043d\u0438\u0440\u043e\u0432 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u043b\u0438\u0441\u044c \u043f\u043e\u0447\u0442\u043e\u0439. <\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/jd\/3f\/20\/jd3f207khh7jg6oy9lg0cm_rul8.jpeg\"><\/p>\n<p>  <\/p>\n<h1 id=\"posleslovie\">\u041f\u043e\u0441\u043b\u0435\u0441\u043b\u043e\u0432\u0438\u0435<\/h1>\n<p>  <\/p>\n<p>\u041d\u0430 \u043c\u0438\u0442\u0430\u043f \u043f\u0440\u0438\u0448\u043b\u043e \u0431\u043e\u043b\u0435\u0435 \u0441\u043e\u0442\u043d\u0438 \u0447\u0435\u043b\u043e\u0432\u0435\u043a. \u041e\u0447\u0435\u043d\u044c \u043f\u0440\u0438\u044f\u0442\u043d\u043e \u0431\u044b\u043b\u043e \u0432\u0441\u0442\u0440\u0435\u0442\u0438\u0442\u044c \u0442\u0430\u043a\u0443\u044e \u0430\u0443\u0434\u0438\u0442\u043e\u0440\u0438\u044e. \u0421\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u043e\u043f\u0440\u043e\u0441\u0443, \u0431\u043e\u043b\u0435\u0435 60% \u0433\u043e\u0441\u0442\u0435\u0439 \u043c\u0438\u0442\u0430\u043f\u0430 \u0438\u043c\u0435\u044e\u0442 \u043e\u043f\u044b\u0442 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0431\u0430\u0437\u0430\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c \u0431\u043e\u043b\u0435\u0435 \u043f\u044f\u0442\u0438 \u043b\u0435\u0442. \u0418 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u0438\u044f\u0442\u043d\u043e, \u043a\u043e\u0433\u0434\u0430 \u0434\u043e\u043a\u043b\u0430\u0434\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u044e\u0442 \u0442\u0430\u043a\u0443\u044e \u0436\u0438\u0432\u0443\u044e \u0440\u0435\u0430\u043a\u0446\u0438\u044e \u043e\u0442 \u0441\u043b\u0443\u0448\u0430\u0442\u0435\u043b\u0435\u0439: <\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/lu\/gd\/6e\/lugd6eme6c-_m6f1vunleyq58ys.jpeg\"><\/p>\n<p>  <\/p>\n<p>\u0412 \u043a\u0443\u043b\u0443\u0430\u0440\u0430\u0445 \u0432\u0441\u0442\u0440\u0435\u0447\u0438 \u043c\u043d\u043e\u0433\u043e \u0433\u043e\u0432\u043e\u0440\u0438\u043b\u0438 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e PostgreSQL \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0432\u0441\u0451 \u0431\u043e\u043b\u0435\u0435 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u043d\u044b\u043c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u043c. \u042d\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0442\u0430\u043a. \u041f\u043e\u043b\u044c\u0437\u0443\u044f\u0441\u044c \u0441\u043b\u0443\u0447\u0430\u0435\u043c, \u0441\u043a\u0430\u0436\u0443, \u0447\u0442\u043e \u043c\u044b \u0432 \u0410\u0432\u0438\u0442\u043e \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u0435\u043c \u0440\u0430\u0441\u0448\u0438\u0440\u044f\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 DBA, \u0438 \u0435\u0441\u043b\u0438 \u0432\u0430\u043c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b \u0430\u043c\u0431\u0438\u0446\u0438\u043e\u0437\u043d\u044b\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u043d\u0430 \u0431\u043e\u043b\u044c\u0448\u043e\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435, \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 <a href=\"https:\/\/moikrug.ru\/vacancies\/1000045845\">\u0432\u0430\u043a\u0430\u043d\u0438\u0441\u044e \u043d\u0430 \u041c\u043e\u0451\u043c \u041a\u0440\u0443\u0433\u0435<\/a> \u0438\u043b\u0438 \u043d\u0430\u043f\u0438\u0448\u0438\u0442\u0435 \u043c\u043d\u0435. <\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/1y\/2x\/dm\/1y2xdm33_9kqv36tu2rdplca27w.jpeg\"><\/p>\n<p>  <\/p>\n<p>\u0418 \u0432 \u0437\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0445\u043e\u0447\u0443 \u043f\u043e\u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u0438\u0442\u044c \u043a\u043e\u043b\u043b\u0435\u0433 \u0438\u0437 \u042f\u043d\u0434\u0435\u043a\u0441, Postgres Professional \u0438, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0410\u0432\u0438\u0442\u043e \u0437\u0430 \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0434\u043e\u043a\u043b\u0430\u0434\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u0443\u0441\u043b\u044b\u0448\u0430\u043b\u0438. \u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0433\u043e\u0441\u0442\u044f\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u0438\u0448\u043b\u0438 \u043a \u043d\u0430\u043c \u0432 \u044d\u0442\u043e\u0442 \u0441\u0443\u0431\u0431\u043e\u0442\u043d\u0438\u0439 \u0434\u0435\u043d\u044c \u0438 \u0437\u0440\u0438\u0442\u0435\u043b\u044f\u043c \u043f\u0440\u044f\u043c\u043e\u0433\u043e \u044d\u0444\u0438\u0440\u0430. \u0418 \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0443 #RuPostgres \u0437\u0430 \u0434\u043e\u0432\u0435\u0440\u0438\u0435. <\/p>\n<p>  <\/p>\n<p>\u041f\u043b\u0435\u0439\u043b\u0438\u0441\u0442 \u0441\u043e \u0432\u0441\u0435\u043c\u0438 \u0434\u043e\u043a\u043b\u0430\u0434\u0430\u043c\u0438 <a href=\"https:\/\/www.youtube.com\/playlist?list=PLknJ4Vr6efQEqkMNcHizMczhn9lGsFC10\">\u0437\u0434\u0435\u0441\u044c<\/a>.<br \/>  \u0424\u043e\u0442\u043e\u043e\u0442\u0447\u0451\u0442\u044b \u043c\u044b \u0432\u044b\u043b\u043e\u0436\u0438\u043b\u0438 <a href=\"https:\/\/www.facebook.com\/pg\/AvitoTech\/photos\/?tab=album&amp;album_id=1080870245423656\">\u043d\u0430 \u0444\u0435\u0439\u0441\u0431\u0443\u043a<\/a> \u0438 <a href=\"https:\/\/vk.com\/album-152990965_256636654\">\u0432\u043a\u043e\u043d\u0442\u0430\u043a\u0442\u0435<\/a>. <\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ve\/lb\/ja\/velbjat75n66wq_-rgvbeois4pg.jpeg\"><\/p>\n<p>  <\/p>\n<p>\u0414\u043e \u043d\u043e\u0432\u044b\u0445 \u0432\u0441\u0442\u0440\u0435\u0447!<\/p>\n<\/div>\n<p>        <script class=\"js-mediator-script\">!function(e){function t(t,n){if(!(n in e)){for(var r,a=e.document,i=a.scripts,o=i.length;o--;)if(-1!==i[o].src.indexOf(t)){r=i[o];break}if(!r){r=a.createElement(\"script\"),r.type=\"text\/javascript\",r.async=!0,r.defer=!0,r.src=t,r.charset=\"UTF-8\";var d=function(){var e=a.getElementsByTagName(\"script\")[0];e.parentNode.insertBefore(r,e)};\"[object Opera]\"==e.opera?a.addEventListener?a.addEventListener(\"DOMContentLoaded\",d,!1):e.attachEvent(\"onload\",d):d()}}}t(\"\/\/mediator.mail.ru\/script\/2820404\/\",\"_mediator\")}(window);<\/script>     <br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/post\/424249\/\"> https:\/\/habr.com\/post\/424249\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\">\n<p>15 \u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f \u0432 \u0410\u0432\u0438\u0442\u043e \u043f\u0440\u043e\u0448\u0451\u043b \u043c\u0438\u0442\u0430\u043f, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043c\u044b \u0433\u043e\u0432\u043e\u0440\u0438\u043b\u0438 \u043e \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043d\u0430 PostgreSQL. \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u044f \u0445\u043e\u0447\u0443 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u0430\u043c\u0438 \u0441 \u043d\u0435\u0433\u043e \u2014 \u0432\u0438\u0434\u0435\u043e\u0437\u0430\u043f\u0438\u0441\u044f\u043c\u0438, \u043f\u0440\u0435\u0437\u0435\u043d\u0442\u0430\u0446\u0438\u044f\u043c\u0438 \u043e\u0442 \u0434\u043e\u043a\u043b\u0430\u0434\u0447\u0438\u043a\u043e\u0432, \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0444\u043e\u0442\u043e. \u0422\u0430\u043a\u0436\u0435 \u043f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c \u043f\u0443\u0431\u043b\u0438\u043a\u0443\u044e \u0440\u0430\u0437\u0431\u043e\u0440 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432 <a href=\"https:\/\/habr.com\/company\/avito\/blog\/422841\/\">\u0432\u0438\u043a\u0442\u043e\u0440\u0438\u043d\u044b<\/a>, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043c\u044b \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u043b\u0438 \u0437\u0434\u0435\u0441\u044c, \u043d\u0430 \u0425\u0430\u0431\u0440\u0435, \u043f\u0435\u0440\u0435\u0434 \u043c\u0438\u0442\u0430\u043f\u043e\u043c. \u0418 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u044e \u043e \u0441\u0432\u043e\u0438\u0445 \u0432\u043f\u0435\u0447\u0430\u0442\u043b\u0435\u043d\u0438\u044f\u0445 \u043e\u0442 \u0432\u0441\u0442\u0440\u0435\u0447\u0438. <\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/tq\/w8\/ff\/tqw8ffbp5stottfooubdrhw_yje.jpeg\"><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-289999","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/289999","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=289999"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/289999\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=289999"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=289999"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=289999"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}