mirror of
https://github.com/php/doc-en.git
synced 2026-03-24 07:42:10 +01:00
## Summary The pgsql extension documentation references PostgreSQL versions that have been outdated for years. The requirements page (`reference/pgsql/setup.xml`) states: https://www.php.net/manual/en/pgsql.requirements.php > To use PostgreSQL support, you need PostgreSQL 6.5 or later, > PostgreSQL 8.0 or later to enable all PostgreSQL module features. However, the actual minimum libpq versions enforced by php-src are: | PHP version | Minimum libpq | Commit | |---|---|---| | PHP 8.0+ | libpq 9.1 | php/php-src@ce668c0ec6 | | PHP 8.4+ | libpq 10.0 | php/php-src#14628 | The "PostgreSQL 6.5" requirement has been incorrect since at least PHP 8.0.0 (released 2020-11-26), which requires libpq 9.1 via `PQlibVersion` check in `ext/pgsql/config.m4`. As of PHP 8.4, the minimum was further raised to libpq 10.0 via `PQencryptPasswordConn` check in `build/php.m4`. ## Changes - **setup.xml**: Update requirements to match php-src, following the same pattern used by ext/curl and ext/openssl (per-PHP-version listing). - **14 function pages**: Remove notes referencing PostgreSQL versions 6.3–9.0 that are no longer relevant given the libpq 10.0 minimum. These include version-gated notes for `pg_prepare`, `pg_query_params`, `pg_execute`, `pg_escape_string`, `pg_escape_identifier`, `pg_escape_literal`, `pg_client_encoding`, `pg_unescape_bytea`, `pg_result_error_field`, `pg_parameter_status`, `pg_lo_create`, `pg_version`, `pg_affected_rows`, and the general `reference.xml`.
70 lines
2.1 KiB
XML
70 lines
2.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
|
|
<reference xml:id="ref.pgsql" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
<title>PostgreSQL &Functions;</title>
|
|
|
|
<partintro>
|
|
<section xml:id="pgsql.notes">
|
|
&reftitle.notes;
|
|
<note>
|
|
<para>
|
|
Not all functions are supported by all builds. It depends on your
|
|
libpq (The PostgreSQL C client library) version and how libpq is
|
|
compiled. If PHP PostgreSQL extensions are missing, then it is because
|
|
your libpq version does not support them.
|
|
</para>
|
|
</note>
|
|
<note>
|
|
<para>
|
|
Most PostgreSQL functions accept <parameter>connection</parameter> as
|
|
the optional first parameter. If it is not provided, the last opened
|
|
connection is used. If it doesn't exist, functions return &false;.
|
|
</para>
|
|
</note>
|
|
<note>
|
|
<para>
|
|
PostgreSQL automatically folds all identifiers (e.g. table/column names)
|
|
to lower-case values at object creation time and at query time.
|
|
To force the use of mixed or upper case identifiers, you must escape
|
|
the identifier using double quotes ("").
|
|
</para>
|
|
</note>
|
|
<note>
|
|
<para>
|
|
PostgreSQL does not have special commands for fetching database schema
|
|
information (eg. all the tables in the current database). Instead, there
|
|
is a standard schema named <literal>information_schema</literal> containing
|
|
system views with all the necessary information, in an easily
|
|
queryable form. See the <link xlink:href="&url.pgsql.manual;">PostgreSQL Documentation</link>
|
|
for full details.
|
|
</para>
|
|
</note>
|
|
</section>
|
|
</partintro>
|
|
|
|
&reference.pgsql.entities.functions;
|
|
|
|
</reference>
|
|
|
|
<!-- 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
|
|
-->
|