<p>In <a href="https://github.com/dbsrgits/dbix-class/pull/103#discussion_r60723533">lib/DBIx/Class/Storage/DBI/Pg.pm</a>:</p>
<pre style='color:#555'>&gt; @@ -237,6 +237,23 @@ sub deployment_statements {
&gt;    $self-&gt;next::method($schema, $type, $version, $dir, $sqltargs, @rest);
&gt;  }
&gt;  
&gt; +sub is_replicating {
&gt; +    my $repl = &#39;select pg_last_xlog_receive_location() AS replicating&#39;;
</pre>
<p>Even simpler: </p>

<div class="highlight highlight-source-perl"><pre><span class="pl-k">return</span> <span class="pl-c1">scalar</span> <span class="pl-c1">shift</span><span class="pl-k">-&gt;</span>_get_dbh<span class="pl-k">-&gt;</span>selectrow_array(<span class="pl-s"><span class="pl-pds">'</span>select pg_last_xlog_receive_location() is not null<span class="pl-pds">'</span></span>);<span class="pl-s"><span class="pl-pds">`</span></span></pre></div>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly or <a href="https://github.com/dbsrgits/dbix-class/pull/103/files/1d94cafa05d78d11b6e89d3fb3ca5288e88729f1#r60723533">view it on GitHub</a><img alt="" height="1" src="https://github.com/notifications/beacon/AASeApO4gmwdyVUUhLbbWP7tq_eLhtrLks5p6KvagaJpZM4INKKX.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/dbsrgits/dbix-class/pull/103/files/1d94cafa05d78d11b6e89d3fb3ca5288e88729f1#r60723533"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>