mirror of
https://github.com/php/doc-ja.git
synced 2026-04-27 10:06:43 +02:00
137 lines
4.3 KiB
XML
137 lines
4.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: c43a3cd9b49627b8d42a4b6ad530e10e26ca30dd Maintainer: takagi Status: ready -->
|
|
<!-- Credits: mumumu -->
|
|
<refentry xml:id="function.pg-parameter-status" xmlns="http://docbook.org/ns/docbook">
|
|
<refnamediv>
|
|
<refname>pg_parameter_status</refname>
|
|
<refpurpose>サーバーのパラメータ設定を検索する</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type class="union"><type>string</type><type>false</type></type><methodname>pg_parameter_status</methodname>
|
|
<methodparam choice="opt"><type>PgSql\Connection</type><parameter>connection</parameter></methodparam>
|
|
<methodparam><type>string</type><parameter>name</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
サーバーのパラメータ設定を検索します。
|
|
</para>
|
|
<para>
|
|
いくつかのパラメータについては、接続の確立時や値の変更時にサーバーから
|
|
自動的に通知されます。<function>pg_parameter_status</function> は
|
|
これらの設定問い合わせるために使用可能です。指定したパラメータが存在する
|
|
場合にその値を、存在しない場合に &false; を返します。
|
|
</para>
|
|
<para>
|
|
サーバーから通知されるパラメータには以下が含まれます。
|
|
<literal>server_version</literal>、
|
|
<literal>server_encoding</literal>、<literal>client_encoding</literal>、
|
|
<literal>is_superuser</literal>、<literal>session_authorization</literal>、
|
|
<literal>DateStyle</literal>、<literal>TimeZone</literal> および <literal>integer_datetimes</literal>。
|
|
<literal>server_version</literal>、<literal>server_encoding</literal> および <literal>integer_datetimes</literal>
|
|
は、PostgreSQL の稼動中には変更できないことに注意しましょう。
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>connection</parameter></term>
|
|
<listitem>
|
|
&pgsql.parameter.connection-with-unspecified-default;
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>name</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
指定可能な <parameter>name</parameter> には以下が含まれます。
|
|
<literal>server_version</literal>、
|
|
<literal>server_encoding</literal>、<literal>client_encoding</literal>、
|
|
<literal>is_superuser</literal>、<literal>session_authorization</literal>、
|
|
<literal>DateStyle</literal>、<literal>TimeZone</literal> および
|
|
<literal>integer_datetimes</literal>。
|
|
この値は、大文字小文字を区別するので注意して下さい。
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
パラメータの値を文字列で返します。失敗した場合や
|
|
<parameter>name</parameter> が間違っている場合には
|
|
&false; を返します。
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="changelog">
|
|
&reftitle.changelog;
|
|
<informaltable>
|
|
<tgroup cols="2">
|
|
<thead>
|
|
<row>
|
|
<entry>&Version;</entry>
|
|
<entry>&Description;</entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
&pgsql.changelog.connection-object;
|
|
</tbody>
|
|
</tgroup>
|
|
</informaltable>
|
|
</refsect1>
|
|
|
|
<refsect1 role="examples">
|
|
&reftitle.examples;
|
|
<para>
|
|
<example>
|
|
<title><function>pg_parameter_status</function> の例</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
$dbconn = pg_connect("dbname=publisher") or die("Could not connect");
|
|
|
|
echo "Server encoding: ", pg_parameter_status($dbconn, "server_encoding");
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
&example.outputs;
|
|
<screen>
|
|
<![CDATA[
|
|
Server encoding: SQL_ASCII
|
|
]]>
|
|
</screen>
|
|
</example>
|
|
</para>
|
|
</refsect1>
|
|
</refentry>
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|