mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Add more description for setting defaults via. env vars
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@76895 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
46d091e1a9
commit
15119771f9
1 changed files with 23 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.74 $ -->
|
||||
<!-- $Revision: 1.75 $ -->
|
||||
<reference id="ref.pgsql">
|
||||
<title>PostgreSQL functions</title>
|
||||
<titleabbrev>PostgreSQL</titleabbrev>
|
||||
|
@ -165,6 +165,28 @@ pg_loexport pg_lo_export
|
|||
to version. Refer to PostgreSQL Programmer's Manual (libpq -
|
||||
Environment Variables) for details.
|
||||
</para>
|
||||
<para>
|
||||
Make sure you set environment variables for appropriate user. Use
|
||||
<literal>$_ENV</literal> or <function>getenv</function> to check
|
||||
environment variables available to current process.
|
||||
</para>
|
||||
<example>
|
||||
<title>Setting default parameters</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
PGHOST=psgql.exmaple.com
|
||||
PGPORT=7890
|
||||
PGDATABASE=web-system
|
||||
PGUSER=web-user
|
||||
PGPASSWORD=secret
|
||||
PGDATESTYLE=ISO
|
||||
PGTZ=JST
|
||||
PGCLIENTENCODING=EUC-JP
|
||||
|
||||
export PGHOST PGPORT PGDATABASE PGUSER PGPASSWORD PGDATESTYLE PGTZ PGCLIENTENCODING
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
<para>
|
||||
From PostgreSQL 7.1.0, text data type has 1GB as its max
|
||||
size. Older PostgreSQL's text data type is limited by block
|
||||
|
|
Loading…
Reference in a new issue