<?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 => 'en',
  ),
  'this' => 
  array (
    0 => 'function.pg-jit.php',
    1 => 'pg_jit',
    2 => 'Returns the JIT information of the server',
  ),
  'up' => 
  array (
    0 => 'ref.pgsql.php',
    1 => 'PostgreSQL Functions',
  ),
  'prev' => 
  array (
    0 => 'function.pg-insert.php',
    1 => 'pg_insert',
  ),
  'next' => 
  array (
    0 => 'function.pg-last-error.php',
    1 => 'pg_last_error',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/pgsql/functions/pg-jit.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.pg-jit" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">pg_jit</h1>
  <p class="verinfo">(PHP 8 &gt;= 8.4.0)</p><p class="refpurpose"><span class="refname">pg_jit</span> &mdash; <span class="dc-title">Returns the JIT information of the server</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.pg-jit-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">function</span> <span class="methodname"><strong>pg_jit</strong></span>(<span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="class.pgsql-connection.php" class="type PgSql\Connection">PgSql\Connection</a></span></span> <code class="parameter">$connection</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>): <span class="type"><a href="language.types.array.php" class="type array">array</a></span></div>

  <p class="simpara">
   <span class="function"><strong>pg_jit()</strong></span> returns an array with the JIT (Just-In-Time
   compilation) information of the PostgreSQL server.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.pg-jit-parameters">
  <h3 class="title">Parameters</h3>
  <dl>
   
    <dt><code class="parameter">connection</code></dt>
    <dd>
     <p class="para">An <span class="classname"><a href="class.pgsql-connection.php" class="classname">PgSql\Connection</a></span> instance.
When <code class="parameter">connection</code> is <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong>, the default connection is used.
The default connection is the last connection made by <span class="function"><a href="function.pg-connect.php" class="function">pg_connect()</a></span>
or <span class="function"><a href="function.pg-pconnect.php" class="function">pg_pconnect()</a></span>.
<div class="warning"><strong class="warning">Warning</strong><p class="simpara">As of PHP 8.1.0, using the default connection is deprecated.</p></div></p>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.pg-jit-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="simpara">
   Returns an <span class="type"><a href="language.types.array.php" class="type array">array</a></span> containing the JIT information of the server.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.pg-jit-seealso">
  <h3 class="title">See Also</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="function.pg-version.php" class="function" rel="rdfs-seeAlso">pg_version()</a> - Returns an array with client, protocol and server version (when available)</span></li>
  </ul>
 </div>


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