{"id":38232,"date":"2019-10-31T22:22:28","date_gmt":"2019-10-31T19:22:28","guid":{"rendered":"https:\/\/prohoster.info\/blog\/odin-iz-metodov-polucheniya-istorii-blokirovok-v-postgresql\/"},"modified":"2019-10-31T22:22:28","modified_gmt":"2019-10-31T19:22:28","slug":"odin-iz-metodov-polucheniya-istorii-blokirovok-v-postgresql","status":"publish","type":"post","link":"https:\/\/prohoster.info\/sq\/blog\/administrirovanie\/odin-iz-metodov-polucheniya-istorii-blokirovok-v-postgresql","title":{"rendered":"Nj\u00eb nga metodat p\u00ebr t\u00eb marr\u00eb historin\u00eb e bllokimeve n\u00eb PostgreSQL","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p>Vazhdimi i artikullit &#171;<noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/post\/467181\/\">P\u00ebrpjekje p\u00ebr t\u00eb krijuar nj\u00eb analog ASH p\u00ebr PostgreSQL <\/a><\/noindex>&#171;.<\/p>\n<p>Artikulli do t\u00eb shqyrtoj\u00eb dhe do t\u00eb tregoj\u00eb n\u00eb k\u00ebrkesa dhe shembuj specifik\u00eb - \u00e7far\u00eb informacioni t\u00eb dobish\u00ebm mund t\u00eb merrni me ndihm\u00ebn e historis\u00eb s\u00eb paraqitjes pg_locks.<\/p>\n<blockquote><p>Kujdes.<br \/>\nP\u00ebr shkak t\u00eb risis\u00eb s\u00eb tem\u00ebs dhe p\u00ebrfundimit t\u00eb periudh\u00ebs s\u00eb testimit, artikulli mund t\u00eb p\u00ebrmbaj\u00eb gabime. K\u00ebrkesa dhe v\u00ebrejtje jan\u00eb gjithmon\u00eb t\u00eb mir\u00ebpritura dhe priten.<\/p><\/blockquote>\n<p><noindex><a rel=\"nofollow\" name=\"habracut\"><\/a><\/noindex><\/p>\n<h2>T\u00eb dh\u00ebnat hyr\u00ebse<\/h2>\n<p><\/p>\n<h3>Historia e paraqitjes pg_locks<\/h3>\n<p>\n<b class=\"spoiler_title\">archive_locking<\/b><\/p>\n<pre><code class=\"pgsql\">KRIJONI TABEL\u00cbN archive_locking \n(       timepoint timestamp pa zon\u00eb kohe ,\n\tlocktype tekst ,\n\trelation oid ,\n\tmode tekst ,\n\ttid xid ,\n\tvtid tekst ,\n\tpid integer ,\n\tblocking_pids integer[] ,\n\tgranted boolean ,\n        queryid bigint \n);<\/code><\/pre>\n<p>\nN\u00eb thelb, tabela \u00ebsht\u00eb e ngjashme me tabel\u00ebn <b>archive_pg_stat_activity<\/b>, e p\u00ebrshkruar m\u00eb holl\u00ebsisht k\u00ebtu - <noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/post\/467277\/\">pg_stat_statements + pg_stat_activity + loq_query = pg_ash? <\/a><\/noindex> dhe k\u00ebtu \u2014 <noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/post\/467181\/\">P\u00ebrpjekja p\u00ebr t\u00eb krijuar nj\u00eb ngjashm\u00ebri ASH p\u00ebr PostgreSQL.<\/a><\/noindex><\/p>\n<p>P\u00ebr t\u00eb mbushur kolon\u00ebn <b>queryid<\/b> p\u00ebrdoret funksioni <\/p>\n<p><b class=\"spoiler_title\">update_history_locking_by_queryid<\/b><\/p>\n<pre><code class=\"pgsql\">--update_history_locking_by_queryid.sql\nKRIJONI O P\u00cbRMBAJ ME FUNKSION update_history_locking_by_queryid() KTHE NJ\u00cb boolean AS $$\nSHKRUANI\n  rezultati boolean ;\n  current_minute double precision ; \n  \n  start_minute integer ;\n  finish_minute integer ;\n  \n  start_period timestamp pa zon\u00eb kohe ;\n  finish_period timestamp pa zon\u00eb kohe ;\n  \n  lock_rec rekord ; \n  endpoint_rec rekord ;\n  \n  current_hour_diff double precision ;\nKRIJONI\n  RAISE NOTICE '***update_history_locking_by_queryid';\n  \n  rezultati = TRUE ;\n  \n  current_minute = extract ( minute nga tani() );\n\n  ZGJIDHNI * NGA endpoint KU \u00ebsht\u00eb_nevoj\u00eb_monitorimi\n  N\u00cb endpoint_rec ;\n  \n  current_hour_diff = endpoint_rec.hour_diff ;\n  \n  N\u00cbSE current_minute &lt; 5 \n  AT\u00cbHER\u00cb\n\tRAISE NOTICE &#039;Koha aktuale \u00ebsht\u00eb m\u00eb e vog\u00ebl se 5 minuta.&#039;;\n\t\n\tstart_period = date_trunc(&#039;or\u00eb&#039;, tani()) + (current_hour_diff * interval &#039;1 or\u00eb&#039;);\n    finish_period = start_period - interval &#039;5 minuta&#039; ;\n  ND\u00cbRKOHE \n    finish_minute = extract ( minute nga tani() ) \/ 5 ;\n    start_minute =  finish_minute - 1 ;\n  \n    start_period = date_trunc(&#039;or\u00eb&#039;, tani()) + interval &#039;1 minut\u00eb&#039;*start_minute*5+(current_hour_diff * interval &#039;1 or\u00eb&#039;);\n    finish_period = date_trunc(&#039;or\u00eb&#039;, tani()) + interval &#039;1 minut\u00eb&#039;*finish_minute*5+(current_hour_diff * interval &#039;1 or\u00eb&#039;) ;\n    \n  FUNDIF \n  \n  RAISE NOTICE &#039;start_period = %&#039;, start_period;\n  RAISE NOTICE &#039;finish_period = %&#039;, finish_period;\n\n\tP\u00cbR lock_rec N\u00cb   \n\tME act_queryid SI\n\t (\n\t\tZGJIDHNI \n\t\t\t\tpid , \n\t\t\t\timepoint ,\n\t\t\t\tquery_start SI filluar ,\t\t\t\n\t\t\t\tMAX(timepoint) OVER (PARTICIPIM NGA pid ,\tquery_start   ) SI p\u00ebrfunduar ,\t\t\t\n\t\t\t\tqueryid \n\t\tMARR NGA \n\t\t\t\tactivity_hist.history_pg_stat_activity \t\t\t\n\t\tKU \t\t\t\n\t\t\t\ttimepoint MIDIS start_period dhe \n\t\t\t\t\t\t\t\t finish_period\n\t\tGRUPI NGA \n\t\t\t\tpid , \n\t\t\t\timepoint ,  \n\t\t\t\tquery_start ,\n\t\t\t\tqueryid \n\t ),\n\t lock_pids SI\n\t\t(\n\t\t\tZGJIDHNI\n\t\t\t\thl.pid , \n\t\t\t\thl.locktype  ,\n\t\t\t\thl.mode ,\n\t\t\t\thl.timepoint , \n\t\t\t\tMIN ( timepoint ) OVER (PARTICIPIM NGA pid , locktype  ,mode ) si filluar \n\t\t\tMARR NGA \n\t\t\t\tactivity_hist.history_locking hl\n\t\t\tKU \n\t\t\t\thl.timepoint midis start_period dhe \n\t\t\t\t\t\t\t\t     finish_period\n\t\t\tGRUPI NGA \n\t\t\t\thl.pid , \n\t\t\t\thl.locktype  ,\n\t\t\t\thl.mode ,\n\t\t\t\thl.timepoint \n\t\t)\n\tZGJIDHNI \n\t\tlp.pid , \n\t\tlp.locktype  ,\n\t\tlp.mode ,\n\t\tlp.timepoint ,     \n\t\taq.queryid \n\tFROM lock_pids \tlp LEFT OUTER JOIN act_queryid aq ON ( lp.pid = aq.pid AND lp.filluar MIDIS aq.filluar DHE aq.p\u00ebrfunduar )\n\tKU aq.queryid \u00cbSHTE E SAKT\u00cb \n\tGRUPI NGA  \n\t\tlp.pid , \n\t\tlp.locktype  ,\n\t\tlp.mode ,\n\t\tlp.timepoint , \n\t\taq.queryid\n\tLOOP\n\t\tUPDATE activity_hist.history_locking SET queryid = lock_rec.queryid \n\t\tKU pid = lock_rec.pid DHE locktype = lock_rec.locktype DHE mode = lock_rec.mode DHE timepoint = lock_rec.timepoint ;\t\n\tFUNDO LOOP;    \n  \n  KTHE rezultatin ;\nFUND\n$$ GJUHA plpgsql;<\/code><\/pre>\n<p>\n<b>Shpjegimi:<\/b> Vlera e kolon\u00ebs queryid p\u00ebrdit\u00ebsohet n\u00eb tabel\u00ebn history_locking, dhe m\u00eb pas kur krijohet nj\u00eb seksion i ri p\u00ebr tabel\u00ebn archive_locking, vlera do t\u00eb ruhet n\u00eb vlerat historike. <\/p>\n<h2>T\u00eb dh\u00ebnat dal\u00ebse<\/h2>\n<p>\nInformacione t\u00eb p\u00ebrgjithshme p\u00ebr proceset n\u00eb t\u00ebr\u00ebsi.<\/p>\n<h3>PRITJA E Bllokimeve NGA LLOJET E BLLOKIMEVE<\/h3>\n<p>\n<b class=\"spoiler_title\">Pyetje<\/b><\/p>\n<pre><code class=\"pgsql\">ME\nt SI\n(\n\tSELECT \n\t\tlocktype  ,\n\t\tmode ,\n\t\tcount(*) as total \n\tFROM \n\t\tactivity_hist.archive_locking\n\tWHERE \n\t\ttimepoint between pg_stat_history_begin+(current_hour_diff * interval '1 hour') AND pg_stat_history_end+(current_hour_diff * interval '1 hour') AND \n\t\tNOT granted\n\tGROUP BY \n\t\tlocktype  ,\n\t\tmode  \n)\nSELECT \n\tlocktype  ,\n\tmode ,\n\ttotal * interval '1 second' as duration\t\t\t\nFROM t \t\t\nORDER BY 3 DESC <\/code><\/pre>\n<p>\n<b class=\"spoiler_title\">Shembulli<\/b><\/p>\n<pre>| PRITJA E Bllokimeve NGA LLOJET E BLLOKIMEVE\n+--------------------+------------------------------+--------------------\n|            locktype|                          mode|            duration\n+--------------------+------------------------------+--------------------\n|       transactionid|                     ShareLock|            19:39:26\n|               tuple|           AccessExclusiveLock|            00:03:35\n+--------------------+------------------------------+--------------------\n<\/pre>\n<p><\/p>\n<h3>Marrjet e Bllokimeve NGA LLOJET E BLLOKIMEVE<\/h3>\n<p>\n<b class=\"spoiler_title\">Pyetje<\/b><\/p>\n<pre><code class=\"pgsql\">ME\nt SI\n(\n\tSELECT \n\t\tlocktype  ,\n\t\tmode ,\n\t\tcount(*) as total \n\tFROM \n\t\tactivity_hist.archive_locking\n\tWHERE \n\t\ttimepoint between pg_stat_history_begin+(current_hour_diff * interval '1 hour') AND pg_stat_history_end+(current_hour_diff * interval '1 hour') AND \n\t\tgranted\n\tGROUP BY \n\t\tlocktype  ,\n\t\tmode  \n)\nSELECT \n\tlocktype  ,\n\tmode ,\n\ttotal * interval '1 second' as duration\t\t\t\nFROM t \t\t\nORDER BY 3 DESC <\/code><\/pre>\n<p>\n<b class=\"spoiler_title\">Shembulli<\/b><\/p>\n<pre>| MARRJET E Bllokimeve NGA LLOJET E BLLOKIMEVE\n+--------------------+------------------------------+--------------------\n|            locktype|                          mode|            duration\n+--------------------+------------------------------+--------------------\n|            relation|              RowExclusiveLock|            51:11:10\n|          virtualxid|                 ExclusiveLock|            48:10:43\n|       transactionid|                 ExclusiveLock|            44:24:53\n|            relation|               AccessShareLock|            20:06:13\n|               tuple|           AccessExclusiveLock|            17:58:47\n|               tuple|                 ExclusiveLock|            01:40:41\n|            relation|      ShareUpdateExclusiveLock|            00:26:41\n|              object|              RowExclusiveLock|            00:00:01\n|       transactionid|                     ShareLock|            00:00:01\n|              extend|                 ExclusiveLock|            00:00:01\n+--------------------+------------------------------+--------------------\n<\/pre>\n<p>\nInformacione t\u00eb detajuara p\u00ebr k\u00ebrkesat e caktuara me queryid<\/p>\n<h3>PRITJA E Bllokimeve NGA LLOJET E BLLOKIMEVE NGA QUERYID<\/h3>\n<p>\n<b class=\"spoiler_title\">Pyetje<\/b><\/p>\n<pre><code class=\"pgsql\">ME\nlt SI\n(\n\tSELECT\n\t\tpid , \n\t\tlocktype  ,\n\t\tmode ,\n\t\ttimepoint , \n\t\tqueryid , \n\t\tblocking_pids ,\n                MIN ( timepoint ) OVER (PARTITION BY pid , locktype  ,mode ) as started  \n\tFROM \n\t\tactivity_hist.archive_locking\n\tWHERE \n\t\ttimepoint between pg_stat_history_begin+(current_hour_diff * interval '1 hour') AND \n\t\t\t                  pg_stat_history_end+(current_hour_diff * interval '1 hour') AND \n\t\tNOT granted AND\n\t       queryid IS NOT NULL \n\tGROUP BY \n\t        pid , \n\t\tlocktype  ,\n\t\tmode ,\n\t\ttimepoint ,\n\t\tqueryid ,\n\t\tblocking_pids \n)\nSELECT \n        lt.pid , \n\tlt.locktype  ,\n\tlt.mode ,\t\t\t\n        lt.started ,\n\tlt.queryid  ,\n\tlt.blocking_pids ,\n\tCOUNT(*)  * interval '1 second'\t as duration\t\t\nFROM lt \t\nGROUP BY \n\tlt.pid , \n        lt.locktype  ,\n\tlt.mode ,\t\t\t\n        lt.started ,\n        lt.queryid ,\n\tlt.blocking_pids \nORDER BY 4<\/code><\/pre>\n<p>\n<b class=\"spoiler_title\">Shembulli<\/b><\/p>\n<pre>| P\u00cbR PRITJE T\u00cb Bllokimeve NGA LLOJET E Bllokimit NGA QUERYID\n+----------+-------------------------+--------------------+------------------------------+--------------------+--------------------+--------------------\n|       pid|                 locktype|                mode|                       started|             queryid|       blocking_pids|            duration\n+----------+-------------------------+--------------------+------------------------------+--------------------+--------------------+--------------------\n|     11288|            transactionid|           ShareLock|    2019-09-17 10:00:00.302936|  389015618226997618|             {11092}|            00:03:34\n|     11626|            transactionid|           ShareLock|    2019-09-17 10:00:21.380921|  389015618226997618|             {12380}|            00:00:29\n|     11626|            transactionid|           ShareLock|    2019-09-17 10:00:21.380921|  389015618226997618|             {11092}|            00:03:25\n|     11626|            transactionid|           ShareLock|    2019-09-17 10:00:21.380921|  389015618226997618|             {12213}|            00:01:55\n|     11626|            transactionid|           ShareLock|    2019-09-17 10:00:21.380921|  389015618226997618|             {12751}|            00:00:01\n|     11629|            transactionid|           ShareLock|    2019-09-17 10:00:24.331935|  389015618226997618|             {11092}|            00:03:22\n|     11629|            transactionid|           ShareLock|    2019-09-17 10:00:24.331935|  389015618226997618|             {12007}|            00:00:01\n|     12007|            transactionid|           ShareLock|    2019-09-17 10:05:03.327933|  389015618226997618|             {11629}|            00:00:13\n|     12007|            transactionid|           ShareLock|    2019-09-17 10:05:03.327933|  389015618226997618|             {11092}|            00:01:10\n|     12007|            transactionid|           ShareLock|    2019-09-17 10:05:03.327933|  389015618226997618|             {11288}|            00:00:05\n|     12213|            transactionid|           ShareLock|    2019-09-17 10:06:07.328019|  389015618226997618|             {12007}|            00:00:10<\/pre>\n<p><\/p>\n<h3>MARRJA E Bllokimeve NGA LLOJET E Bllokimit NGA QUERYID<\/h3>\n<p>\n<b class=\"spoiler_title\">Pyetje<\/b><\/p>\n<pre><code class=\"pgsql\">ME\nlt SI\n(\n\tSELECT\n\t\tpid , \n\t\tlocktype  ,\n\t\tmode ,\n\t\ttimepoint , \n\t\tqueryid , \n\t\tblocking_pids ,\n                MIN ( timepoint ) OVER (PARTITION BY pid , locktype  ,mode ) as started  \n\tFROM \n\t\tactivity_hist.archive_locking\n\tWHERE \n\t\ttimepoint between pg_stat_history_begin+(current_hour_diff * interval '1 hour') AND \n\t\t\t                  pg_stat_history_end+(current_hour_diff * interval '1 hour') AND \n\t\tgranted AND\n\t\tqueryid IS NOT NULL \n\tGROUP BY \n\t        pid , \n\t\tlocktype  ,\n\t\tmode ,\n\t\ttimepoint ,\n\t\tqueryid ,\n\t\tblocking_pids \n)\nSELECT \n        lt.pid , \n\tlt.locktype  ,\n\tlt.mode ,\t\t\t\n        lt.started ,\n\tlt.queryid  ,\n\tlt.blocking_pids ,\n\tCOUNT(*)  * interval '1 second'\t as duration\t\t\t\nFROM lt \t\nGROUP BY \n\tlt.pid , \n\tlt.locktype  ,\n\t\t\tlt.mode ,\n\t\t\t\n        lt.started ,\n\tlt.queryid ,\n\tlt.blocking_pids \nORDER BY 4<\/code><\/pre>\n<p>\n<b class=\"spoiler_title\">Shembulli<\/b><\/p>\n<pre>| MARRJA E BLOKIMEVE NGA LLOJE T\u00cb BLOKIMEVE NGA QUERYID\n+----------+-------------------------+--------------------+------------------------------+--------------------+--------------------+--------------------\n|       pid|                 lloji i bllokimit|                moda|                       filluar|             queryid|       bllokimi_pids|            koha\n+----------+-------------------------+--------------------+------------------------------+--------------------+--------------------+--------------------\n|     11288|                 marr\u00ebdh\u00ebnie|    RowExclusiveLock|    2019-09-17 10:00:00.302936|  389015618226997618|             {11092}|            00:03:34\n|     11092|            identifikimi i transaksionit|       ExclusiveLock|    2019-09-17 10:00:00.302936|  389015618226997618|                  {}|            00:03:34\n|     11288|                 marr\u00ebdh\u00ebnie|    RowExclusiveLock|    2019-09-17 10:00:00.302936|  389015618226997618|                  {}|            00:00:10\n|     11092|                 marr\u00ebdh\u00ebnie|    RowExclusiveLock|    2019-09-17 10:00:00.302936|  389015618226997618|                  {}|            00:03:34\n|     11092|               virtualxid|       ExclusiveLock|    2019-09-17 10:00:00.302936|  389015618226997618|                  {}|            00:03:34\n|     11288|               virtualxid|       ExclusiveLock|    2019-09-17 10:00:00.302936|  389015618226997618|             {11092}|            00:03:34\n|     11288|            identifikimi i transaksionit|       ExclusiveLock|    2019-09-17 10:00:00.302936|  389015618226997618|             {11092}|            00:03:34\n|     11288|                    tuple| AccessExclusiveLock|    2019-09-17 10:00:00.302936|  389015618226997618|             {11092}|            00:03:34<\/pre>\n<p>\n<b>P\u00ebrdorimi i historis\u00eb s\u00eb bllokimit p\u00ebr analiz\u00ebn e incidenteve t\u00eb performanc\u00ebs.<\/b><\/p>\n<ol>\n<li>K\u00ebrkesa me queryid=389015618226997618 e cila po ekzekutohet nga procesi me pid=11288 ka pritur bllokimin q\u00eb nga 2019-09-17 10:00:00 p\u00ebr 3 minuta.<\/li>\n<li>Bllokimin e mbante procesi me pid=11092<\/li>\n<li>Procesi me pid=11092 duke ekzekutuar k\u00ebrkes\u00ebn me queryid=389015618226997618 q\u00eb nga 2019-09-17 10:00:00 mbante bllokimin p\u00ebr 3 minuta.<\/li>\n<\/ol>\n<p><\/p>\n<h2>P\u00ebrfundimi<\/h2>\n<p>\nTani, shpresoj, do t\u00eb filloj\u00eb gj\u00ebja m\u00eb interesante dhe t\u00eb dobishme - mbledhja e statistikave dhe analiza e rasteve t\u00eb historis\u00eb s\u00eb pritjeve dhe bllokimeve. <\/p>\n<p>N\u00eb perspektiv\u00eb, shpresoj, do t\u00eb arrijm\u00eb nj\u00eb grup disa si nota (n\u00eb analogji me metalinkun e Oraklit).<\/p>\n<p>K\u00ebshtu q\u00eb pik\u00ebrisht nga kjo arsye, metodika e p\u00ebrdorur, nxirret sa m\u00eb shpejt p\u00ebr njohjen e p\u00ebrgjithshme.<\/p>\n<p>N\u00eb koh\u00ebt m\u00eb t\u00eb af\u00ebrta do t\u00eb p\u00ebrpiqem t\u00eb publikoj projektin n\u00eb github.<br \/>\n<br \/>Burimi: <a content=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/post\/467719\/\">habr.com<\/a><\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435 \u0441\u0442\u0430\u0442\u044c\u0438 &#171;\u041f\u043e\u043f\u044b\u0442\u043a\u0430 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0430\u043d\u0430\u043b\u043e\u0433 ASH \u0434\u043b\u044f PostgreSQL &#171;. \u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u043e \u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e \u043d\u0430 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u0430\u0445 \u0438 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u0445 \u2014 \u043a\u0430\u043a\u0443\u044e \u0436\u0435 \u043f\u043e\u043b\u0435\u0437\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0438\u0441\u0442\u043e\u0440\u0438\u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f pg_locks. \u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435. \u0412 \u0441\u0432\u044f\u0437\u0438 \u0441 \u043d\u043e\u0432\u0438\u0437\u043d\u043e\u0439 \u0442\u0435\u043c\u044b \u0438 \u043d\u0435\u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u0435\u043c \u043f\u0435\u0440\u0438\u043e\u0434\u0430 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u0441\u0442\u0430\u0442\u044c\u044f \u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0438. \u041a\u0440\u0438\u0442\u0438\u043a\u0430 \u0438 \u0437\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u044f \u0432\u0441\u044f\u0447\u0435\u0441\u043a\u0438 \u043f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0442\u0441\u044f \u0438 \u043e\u0436\u0438\u0434\u0430\u044e\u0442\u0441\u044f. \u0412\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[688],"tags":[],"class_list":["post-38232","post","type-post","status-publish","format-standard","hentry","category-administrirovanie"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.4 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435 \u0441\u0442\u0430\u0442\u044c\u0438 &quot;\u041f\u043e\u043f\u044b\u0442\u043a\u0430 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0430\u043d\u0430\u043b\u043e\u0433 ASH \u0434\u043b\u044f PostgreSQL &quot;. \u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u043e \u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e \u043d\u0430 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u0430\u0445 \u0438.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/sq\/blog\/administrirovanie\/odin-iz-metodov-polucheniya-istorii-blokirovok-v-postgresql\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.4\" \/>\n\t\t<meta property=\"og:locale\" content=\"sq_AL\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47\u041e\u0434\u0438\u043d \u0438\u0437 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0438\u0441\u0442\u043e\u0440\u0438\u0438 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043e\u043a \u0432 PostgreSQL | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435 \u0441\u0442\u0430\u0442\u044c\u0438 &quot;\u041f\u043e\u043f\u044b\u0442\u043a\u0430 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0430\u043d\u0430\u043b\u043e\u0433 ASH \u0434\u043b\u044f PostgreSQL &quot;. \u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u043e \u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e \u043d\u0430 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u0430\u0445 \u0438.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/sq\/blog\/administrirovanie\/odin-iz-metodov-polucheniya-istorii-blokirovok-v-postgresql\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2019-10-31T19:22:28+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2019-10-31T19:22:28+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47Nj\u00eb nga metodat p\u00ebr marrjen e historis\u00eb s\u00eb bllokimeve n\u00eb PostgreSQL | ProHoster","description":"Vazhdimi i artikullit \"P\u00ebrpjekja p\u00ebr t\u00eb krijuar nj\u00eb analog t\u00eb ASH p\u00ebr PostgreSQL\". Artikulli do t\u00eb shqyrtoj\u00eb dhe tregoj\u00eb me k\u00ebrkesa specifike.","canonical_url":"https:\/\/prohoster.info\/sq\/blog\/administrirovanie\/odin-iz-metodov-polucheniya-istorii-blokirovok-v-postgresql","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"sq_AL","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47\u041e\u0434\u0438\u043d \u0438\u0437 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0438\u0441\u0442\u043e\u0440\u0438\u0438 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043e\u043a \u0432 PostgreSQL | ProHoster","og:description":"\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435 \u0441\u0442\u0430\u0442\u044c\u0438 &quot;\u041f\u043e\u043f\u044b\u0442\u043a\u0430 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0430\u043d\u0430\u043b\u043e\u0433 ASH \u0434\u043b\u044f PostgreSQL &quot;. \u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u043e \u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e \u043d\u0430 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u0430\u0445 \u0438.","og:url":"https:\/\/prohoster.info\/sq\/blog\/administrirovanie\/odin-iz-metodov-polucheniya-istorii-blokirovok-v-postgresql","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2019-10-31T19:22:28+00:00","article:modified_time":"2019-10-31T19:22:28+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"38232","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":"2026-01-23 21:03:19","breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2021-03-01 01:13:22","updated":"2026-01-23 21:03:19","focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/posts\/38232","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/comments?post=38232"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/posts\/38232\/revisions"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/media?parent=38232"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/categories?post=38232"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/tags?post=38232"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}