PHP: pg_untrace - Manual

downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

pg_update pg_unescape_bytea

Last updated: Sat, 27 Jan 2007

view this page in

# pg_untrace

(PHP 4 >= 4.0.1, PHP 5)

pg_untrace -- Disable tracing of a PostgreSQL connection

## Описание

bool pg_untrace ( [resource connection] )

Stop tracing started by pg_trace().

## Список параметров

`connection`

  PostgreSQL database connection resource. When `connection` is not present, the default connection is used. The default connection is the last connection made by pg_connect() or pg_pconnect().

## Возвращаемые значения

Always returns `TRUE`.

## Примеры

Пример 1. pg_untrace() example

`<?php
$pgsql_conn = pg_connect("dbname=mark host=localhost");
if ($pgsql_conn) {
pg_trace('/tmp/trace.log', 'w', $pgsql_conn);
pg_query("SELECT 1");
pg_untrace($pgsql_conn);
// Now tracing of backend communication is disabled
} else {
print pg_last_error($pgsql_conn);
exit;
}
?>`

## Смотрите также

pg_trace()

add a note User Contributed Notes
pg_untrace
There are no user contributed notes for this page.
pg_update pg_unescape_bytea

Last updated: Sat, 27 Jan 2007
show source | credits | stats | sitemap | contact | advertising | mirror sites
Copyright © 2001-2007 The PHP Group
All rights reserved.
This mirror generously provided by: Yahoo! Inc.
Last updated: Sat Mar 10 10:36:09 2007 PST