<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/book.pgsql.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'ref.pgsql.php',
    1 => 'PostgreSQL Функції',
    2 => 'PostgreSQL Функції',
  ),
  'up' => 
  array (
    0 => 'book.pgsql.php',
    1 => 'PostgreSQL',
  ),
  'prev' => 
  array (
    0 => 'pgsql.examples-queries.php',
    1 => 'Basic usage',
  ),
  'next' => 
  array (
    0 => 'function.pg-affected-rows.php',
    1 => 'pg_affected_rows',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/pgsql/reference.xml',
  ),
  'history' => 
  array (
  ),
  'extra_header_links' => 
  array (
    'rel' => 'alternate',
    'href' => '/manual/en/feeds/ref.pgsql.atom',
    'type' => 'application/atom+xml',
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="ref.pgsql" class="reference">
 <h1 class="title">PostgreSQL Функції</h1>

 <div class="partintro">
  <div class="section" id="pgsql.notes">
  <h2 class="title">Примітки</h2>
   <blockquote class="note"><p><strong class="note">Зауваження</strong>: 
    <p class="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. 
    </p>
   </p></blockquote>  
   <blockquote class="note"><p><strong class="note">Зауваження</strong>: 
    <p class="para">
     Most PostgreSQL functions accept <code class="parameter">connection</code> as
     the optional first parameter. If it is not provided, the last opened
     connection is used. If it doesn&#039;t exist, functions return <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>.
    </p>
   </p></blockquote>
   <blockquote class="note"><p><strong class="note">Зауваження</strong>: 
    <p class="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 (&quot;&quot;).
    </p>
   </p></blockquote>
   <blockquote class="note"><p><strong class="note">Зауваження</strong>: 
    <p class="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 <code class="literal">information_schema</code> in
     PostgreSQL 7.4 and above containing
     system views with all the necessary information, in an easily
     queryable form.  See the <a href="http://www.postgresql.org/docs/current/interactive/" class="link external">&raquo;&nbsp;PostgreSQL Documentation</a>
     for full details.  
    </p>
   </p></blockquote>
  </div>
 </div>































































































































































































































































































































































































































































































































































































<h2>Зміст</h2><ul class="chunklist chunklist_reference"><li><a href="function.pg-affected-rows.php">pg_affected_rows</a> — Returns number of affected records (tuples)</li><li><a href="function.pg-cancel-query.php">pg_cancel_query</a> — Cancel an asynchronous query</li><li><a href="function.pg-client-encoding.php">pg_client_encoding</a> — Gets the client encoding</li><li><a href="function.pg-close.php">pg_close</a> — Closes a PostgreSQL connection</li><li><a href="function.pg-connect.php">pg_connect</a> — Open a PostgreSQL connection</li><li><a href="function.pg-connect-poll.php">pg_connect_poll</a> — Poll the status of an in-progress asynchronous PostgreSQL connection
   attempt</li><li><a href="function.pg-connection-busy.php">pg_connection_busy</a> — Get connection is busy or not</li><li><a href="function.pg-connection-reset.php">pg_connection_reset</a> — Reset connection (reconnect)</li><li><a href="function.pg-connection-status.php">pg_connection_status</a> — Get connection status</li><li><a href="function.pg-consume-input.php">pg_consume_input</a> — Reads input on the connection</li><li><a href="function.pg-convert.php">pg_convert</a> — Convert associative array values into forms suitable for SQL statements</li><li><a href="function.pg-copy-from.php">pg_copy_from</a> — Insert records into a table from an array</li><li><a href="function.pg-copy-to.php">pg_copy_to</a> — Copy a table to an array</li><li><a href="function.pg-dbname.php">pg_dbname</a> — Get the database name</li><li><a href="function.pg-delete.php">pg_delete</a> — Deletes records</li><li><a href="function.pg-end-copy.php">pg_end_copy</a> — Sync with PostgreSQL backend</li><li><a href="function.pg-escape-bytea.php">pg_escape_bytea</a> — Escape a string for insertion into a bytea field</li><li><a href="function.pg-escape-identifier.php">pg_escape_identifier</a> — Escape a identifier for insertion into a text field</li><li><a href="function.pg-escape-literal.php">pg_escape_literal</a> — Escape a literal for insertion into a text field</li><li><a href="function.pg-escape-string.php">pg_escape_string</a> — Escape a string for query</li><li><a href="function.pg-execute.php">pg_execute</a> — Sends a request to execute a prepared statement with given parameters, and waits for the result</li><li><a href="function.pg-fetch-all.php">pg_fetch_all</a> — Fetches all rows from a result as an array</li><li><a href="function.pg-fetch-all-columns.php">pg_fetch_all_columns</a> — Fetches all rows in a particular result column as an array</li><li><a href="function.pg-fetch-array.php">pg_fetch_array</a> — Fetch a row as an array</li><li><a href="function.pg-fetch-assoc.php">pg_fetch_assoc</a> — Fetch a row as an associative array</li><li><a href="function.pg-fetch-object.php">pg_fetch_object</a> — Fetch a row as an object</li><li><a href="function.pg-fetch-result.php">pg_fetch_result</a> — Returns values from a result instance</li><li><a href="function.pg-fetch-row.php">pg_fetch_row</a> — Get a row as an enumerated array</li><li><a href="function.pg-field-is-null.php">pg_field_is_null</a> — Test if a field is SQL NULL</li><li><a href="function.pg-field-name.php">pg_field_name</a> — Returns the name of a field</li><li><a href="function.pg-field-num.php">pg_field_num</a> — Returns the field number of the named field</li><li><a href="function.pg-field-prtlen.php">pg_field_prtlen</a> — Returns the printed length</li><li><a href="function.pg-field-size.php">pg_field_size</a> — Returns the internal storage size of the named field</li><li><a href="function.pg-field-table.php">pg_field_table</a> — Returns the name or oid of the tables field</li><li><a href="function.pg-field-type.php">pg_field_type</a> — Returns the type name for the corresponding field number</li><li><a href="function.pg-field-type-oid.php">pg_field_type_oid</a> — Returns the type ID (OID) for the corresponding field number</li><li><a href="function.pg-flush.php">pg_flush</a> — Flush outbound query data on the connection</li><li><a href="function.pg-free-result.php">pg_free_result</a> — Free result memory</li><li><a href="function.pg-get-notify.php">pg_get_notify</a> — Gets SQL NOTIFY message</li><li><a href="function.pg-get-pid.php">pg_get_pid</a> — Gets the backend's process ID</li><li><a href="function.pg-get-result.php">pg_get_result</a> — Get asynchronous query result</li><li><a href="function.pg-host.php">pg_host</a> — Returns the host name associated with the connection</li><li><a href="function.pg-insert.php">pg_insert</a> — Insert array into table</li><li><a href="function.pg-last-error.php">pg_last_error</a> — Get the last error message string of a connection</li><li><a href="function.pg-last-notice.php">pg_last_notice</a> — Returns the last notice message from PostgreSQL server</li><li><a href="function.pg-last-oid.php">pg_last_oid</a> — Returns the last row's OID</li><li><a href="function.pg-lo-close.php">pg_lo_close</a> — Close a large object</li><li><a href="function.pg-lo-create.php">pg_lo_create</a> — Create a large object</li><li><a href="function.pg-lo-export.php">pg_lo_export</a> — Export a large object to file</li><li><a href="function.pg-lo-import.php">pg_lo_import</a> — Import a large object from file</li><li><a href="function.pg-lo-open.php">pg_lo_open</a> — Open a large object</li><li><a href="function.pg-lo-read.php">pg_lo_read</a> — Read a large object</li><li><a href="function.pg-lo-read-all.php">pg_lo_read_all</a> — Reads an entire large object and send straight to browser</li><li><a href="function.pg-lo-seek.php">pg_lo_seek</a> — Seeks position within a large object</li><li><a href="function.pg-lo-tell.php">pg_lo_tell</a> — Returns current seek position a of large object</li><li><a href="function.pg-lo-truncate.php">pg_lo_truncate</a> — Truncates a large object</li><li><a href="function.pg-lo-unlink.php">pg_lo_unlink</a> — Delete a large object</li><li><a href="function.pg-lo-write.php">pg_lo_write</a> — Write to a large object</li><li><a href="function.pg-meta-data.php">pg_meta_data</a> — Get meta data for table</li><li><a href="function.pg-num-fields.php">pg_num_fields</a> — Returns the number of fields in a result</li><li><a href="function.pg-num-rows.php">pg_num_rows</a> — Returns the number of rows in a result</li><li><a href="function.pg-options.php">pg_options</a> — Get the options associated with the connection</li><li><a href="function.pg-parameter-status.php">pg_parameter_status</a> — Looks up a current parameter setting of the server</li><li><a href="function.pg-pconnect.php">pg_pconnect</a> — Open a persistent PostgreSQL connection</li><li><a href="function.pg-ping.php">pg_ping</a> — Ping database connection</li><li><a href="function.pg-port.php">pg_port</a> — Return the port number associated with the connection</li><li><a href="function.pg-prepare.php">pg_prepare</a> — Submits a request to the server to create a prepared statement with the
   given parameters, and waits for completion</li><li><a href="function.pg-put-line.php">pg_put_line</a> — Send a NULL-terminated string to PostgreSQL backend</li><li><a href="function.pg-query.php">pg_query</a> — Execute a query</li><li><a href="function.pg-query-params.php">pg_query_params</a> — Submits a command to the server and waits for the result, with the ability to pass parameters separately from the SQL command text</li><li><a href="function.pg-result-error.php">pg_result_error</a> — Get error message associated with result</li><li><a href="function.pg-result-error-field.php">pg_result_error_field</a> — Returns an individual field of an error report</li><li><a href="function.pg-result-memory-size.php">pg_result_memory_size</a> — Returns the amount of memory allocated for a query result</li><li><a href="function.pg-result-seek.php">pg_result_seek</a> — Set internal row offset in result instance</li><li><a href="function.pg-result-status.php">pg_result_status</a> — Get status of query result</li><li><a href="function.pg-select.php">pg_select</a> — Select records</li><li><a href="function.pg-send-execute.php">pg_send_execute</a> — Sends a request to execute a prepared statement with given parameters, without waiting for the result(s)</li><li><a href="function.pg-send-prepare.php">pg_send_prepare</a> — Sends a request to create a prepared statement with the given parameters, without waiting for completion</li><li><a href="function.pg-send-query.php">pg_send_query</a> — Sends asynchronous query</li><li><a href="function.pg-send-query-params.php">pg_send_query_params</a> — Submits a command and separate parameters to the server without waiting for the result(s)</li><li><a href="function.pg-set-chunked-rows-size.php">pg_set_chunked_rows_size</a> — Визначає допустимий розмір отриманих частин вибірки в порційному
   режимі</li><li><a href="function.pg-set-client-encoding.php">pg_set_client_encoding</a> — Set the client encoding</li><li><a href="function.pg-set-error-context-visibility.php">pg_set_error_context_visibility</a> — Determines the visibility of the context's error messages returned by pg_last_error
   and pg_result_error</li><li><a href="function.pg-set-error-verbosity.php">pg_set_error_verbosity</a> — Determines the verbosity of messages returned by pg_last_error 
   and pg_result_error</li><li><a href="function.pg-socket.php">pg_socket</a> — Get a read only handle to the socket underlying a PostgreSQL connection</li><li><a href="function.pg-trace.php">pg_trace</a> — Enable tracing a PostgreSQL connection</li><li><a href="function.pg-transaction-status.php">pg_transaction_status</a> — Returns the current in-transaction status of the server</li><li><a href="function.pg-tty.php">pg_tty</a> — Return the TTY name associated with the connection</li><li><a href="function.pg-unescape-bytea.php">pg_unescape_bytea</a> — Unescape binary for bytea type</li><li><a href="function.pg-untrace.php">pg_untrace</a> — Disable tracing of a PostgreSQL connection</li><li><a href="function.pg-update.php">pg_update</a> — Update table</li><li><a href="function.pg-version.php">pg_version</a> — Returns an array with client, protocol and server version (when available)</li></ul>
</div>
<?php manual_footer($setup); ?>