<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.pgsql.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'function.pg-last-notice.php',
    1 => 'pg_last_notice',
    2 => 'Restituisce l\'ultimo messaggio di notifica dal server PostgreSQL',
  ),
  'up' => 
  array (
    0 => 'ref.pgsql.php',
    1 => 'PostgreSQL Funzioni',
  ),
  'prev' => 
  array (
    0 => 'function.pg-last-error.php',
    1 => 'pg_last_error',
  ),
  'next' => 
  array (
    0 => 'function.pg-last-oid.php',
    1 => 'pg_last_oid',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'it',
    'path' => 'reference/pgsql/functions/pg-last-notice.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.pg-last-notice" class="refentry">
   <div class="refnamediv">
    <h1 class="refname">pg_last_notice</h1> 
    <p class="verinfo">(PHP 4 &gt;= 4.0.6, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">pg_last_notice</span> &mdash; <span class="dc-title">
     Restituisce l&#039;ultimo messaggio di notifica dal server PostgreSQL
    </span></p>

   </div>
   <div class="refsect1 unknown-361" id="refsect1-function.pg-last-notice-unknown-361">
    <h3 class="title">Descrizione</h3>
     <div class="methodsynopsis dc-description">
      <span class="methodname"><strong>pg_last_notice</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> <code class="parameter">$connessione</code></span>): <span class="type"><a href="language.types.string.php" class="type string">string</a></span></div>

    <p class="para rdfs-comment">
     <span class="function"><strong>pg_last_notice()</strong></span> restituisce l&#039;ultimo messaggio di
     notifica emesso dal server PostgreSQL specificato dal parametro
     <code class="parameter">connessione</code>. Il server PostgreSQL invia messaggi
     di notifica in parecchi case, per esempio se le transazioni non possono essere continuate.
     Con <span class="function"><strong>pg_last_notice()</strong></span> è possibile evitare di eseguire
     query inutili, controllando se la notifica è relativa alla transazione
     o meno.
    </p>
    <div class="warning"><strong class="warning">Avviso</strong>
     <p class="para">
      Questa funzione è SPERIMENTALE e non è completamente implementata
      allo stato attuale. <span class="function"><strong>pg_last_notice()</strong></span> è stato aggiunta nel PHP
      4.0.6. Comunque, il PHP 4.0.6 ha dei problemi con la manipolazione dei
      messaggi di notifica. L&#039;uso del modulo PostgreSQL con il PHP 4.0.6 non è
      raccomandato anche se non si fa uso di
      <span class="function"><strong>pg_last_notice()</strong></span>.
     </p>
     <p class="para">
      Questa funzione è completamente implementata in PP 4.3.0. Le versioni di PHP precedenti alla
      4.3.0 ignorano il parametro di connessione al database.
     </p>
    </div>
    <p class="para">
     Il tracciamento dei messaggi di notifica può essere reso opzionale impostando a 1 la variabile
     <code class="literal">pgsql.ignore_notice</code> nel file <var class="filename">php.ini</var> a partire dal PHP 4.3.0.
    </p>
    <p class="para">
     Il log dei messaggi di notifica può essere reso opzionale impostando a 0 la variabile
     <code class="literal">pgsql.log_notice</code> nel file <var class="filename">php.ini</var> a partire dal PHP 4.3.0. 
     A meno che <code class="literal">pgsql.ignore_notice</code> sia impostato 
     a 0, i messaggi di notifica non possono essere registrati.
    </p>
    <p class="para">
     See also <span class="function"><a href="function.pg-query.php" class="function">pg_query()</a></span> e
     <span class="function"><a href="function.pg-last-error.php" class="function">pg_last_error()</a></span>.
    </p>
   </div>

  </div><?php manual_footer($setup); ?>