title: Postgres now() timestamp doesn't change, when script works
body: <p>My PHP script will work for several seconds, and I need to get real timestamp from Postgres database anytime. But when I fetch current_timestamp from Postgres, it always return same value.</p>
  
  <p>Here is my example script (using DBAL):</p>
  
  <pre><code>    echo "DB:" . $dbal-&gt;fetchColumn("select current_timestamp") . PHP_EOL;
      echo "PHP: " . date("Y-m-d H:i:s") . PHP_EOL;
      sleep(3);
  
      echo "DB:" . $dbal-&gt;fetchColumn("select current_timestamp") . PHP_EOL;
      echo "PHP: " . date("Y-m-d H:i:s") . PHP_EOL;
      sleep(3);
  
      echo "DB:" . $dbal-&gt;fetchColumn("select current_timestamp") . PHP_EOL;
      echo "PHP: " . date("Y-m-d H:i:s") . PHP_EOL;
  </code></pre>
  
  <p>Here is the output:</p>
  
  <pre><code>DB:2014-05-07 11:59:50.118+04
  PHP: 2014-05-07 11:59:50
  
  DB:2014-05-07 11:59:50.118+04
  PHP: 2014-05-07 11:59:53
  
  DB:2014-05-07 11:59:50.118+04
  PHP: 2014-05-07 11:59:56
  </code></pre>
  
  <p>Postgres installed on local machine. Why it always returns same time?
  How to get real time?</p>
  
  <p>I used now() function, there was same result. 
  Postgres version: 9.3.4 x64. PHP version: 5.5.11</p>