101#ifdef CONNECTION_SSL_STARTUP
186 #ifdef HAVE_PQERRORS_SQLSTATE
248#ifdef HAVE_PG_SET_CHUNKED_ROWS_SIZE
313#ifdef PG_DIAG_INTERNAL_POSITION
320#ifdef PG_DIAG_INTERNAL_QUERY
347#ifdef PG_DIAG_SCHEMA_NAME
354#ifdef PG_DIAG_TABLE_NAME
361#ifdef PG_DIAG_COLUMN_NAME
368#ifdef PG_DIAG_DATATYPE_NAME
375#ifdef PG_DIAG_CONSTRAINT_NAME
382#ifdef PG_DIAG_SEVERITY_NONLOCALIZED
435#ifdef PQTRACE_SUPPPRESS_TIMESTAMPS
442#ifdef PQTRACE_REGRESS_MODE
468 function pg_connect(
string $connection_string,
int $flags = 0):
PgSql\Connection|false {}
484 #[\
Deprecated(since:
'8.0', message:
'use pg_last_error() instead')]
556 #[\
Deprecated(since:
'8.0', message:
'use pg_num_rows() instead')]
564 #[\
Deprecated(since:
'8.0', message:
'use pg_num_fields() instead')]
572 #[\
Deprecated(since:
'8.0', message:
'use pg_affected_rows() instead')]
585 #[\
Deprecated(since:
'8.0', message:
'use pg_field_name() instead')]
593 #[\
Deprecated(since:
'8.0', message:
'use pg_field_size() instead')]
601 #[\
Deprecated(since:
'8.0', message:
'use pg_field_type() instead')]
612 #[\
Deprecated(since:
'8.0', message:
'use pg_field_num() instead')]
625 #[\
Deprecated(since:
'8.0', message:
'use pg_fetch_result() instead')]
669 #[\
Deprecated(since:
'8.0', message:
'use pg_field_prtlen() instead')]
678 #[\
Deprecated(since:
'8.0', message:
'use pg_field_is_null() instead')]
686 #[\
Deprecated(since:
'8.0', message:
'use pg_free_result() instead')]
695 #[\
Deprecated(since:
'8.0', message:
'use pg_last_oid() instead')]
714 #[\
Deprecated(since:
'8.0', message:
'use pg_lo_create() instead')]
728 #[\
Deprecated(since:
'8.0', message:
'use pg_lo_unlink() instead')]
743 #[\
Deprecated(since:
'8.0', message:
'use pg_lo_open() instead')]
751 #[\
Deprecated(since:
'8.0', message:
'use pg_lo_close() instead')]
760 #[\
Deprecated(since:
'8.0', message:
'use pg_lo_read() instead')]
768 #[\
Deprecated(since:
'8.0', message:
'use pg_lo_write() instead')]
776 #[\
Deprecated(since:
'8.0', message:
'use pg_lo_read_all() instead')]
793 #[\
Deprecated(since:
'8.0', message:
'use pg_lo_import() instead')]
809 #[\
Deprecated(since:
'8.0', message:
'use pg_lo_export() instead')]
828 #[\
Deprecated(since:
'8.0', message:
'use pg_set_client_encoding() instead')]
836 #[\
Deprecated(since:
'8.0', message:
'use pg_client_encoding() instead')]
848 function pg_copy_to(
PgSql\Connection $connection, string $table_name, string $separator =
"\t", string $null_as =
"\\\\N"): array|false {}
850 function pg_copy_from(
PgSql\Connection $connection, string $table_name, array $rows, string $separator =
"\t", string $null_as =
"\\\\N"): bool {}
956#ifdef HAVE_PG_RESULT_MEMORY_SIZE
970#ifdef HAVE_PG_SET_CHUNKED_ROWS_SIZE
foreach(explode("\n", $input) as $line) $result
pg_get_result(PgSql\Connection $connection)
pg_errormessage(?PgSql\Connection $connection=null)
pg_trace(string $filename, string $mode="w", ?PgSql\Connection $connection=null, int $trace_mode=0)
pg_fetch_result(PgSql\Result $result, $row, string|int $field=UNKNOWN)
pg_lo_close(PgSql\Lob $lob)
pg_parameter_status($connection, string $name=UNKNOWN)
pg_lo_seek(PgSql\Lob $lob, int $offset, int $whence=SEEK_CUR)
pg_unescape_bytea(string $string)
pg_field_prtlen(PgSql\Result $result, $row, string|int $field=UNKNOWN)
pg_pconnect(string $connection_string, int $flags=0)
const PGSQL_CONNECT_ASYNC
const PGSQL_CONV_FORCE_NULL
pg_result(PgSql\Result $result, $row, string|int $field=UNKNOWN)
pg_select(PgSql\Connection $connection, string $table_name, array $conditions=[], int $flags=PGSQL_DML_EXEC, int $mode=PGSQL_ASSOC)
pg_lo_unlink($connection, $oid=UNKNOWN)
const PGSQL_DIAG_SOURCE_FILE
pg_fieldname(PgSql\Result $result, int $field)
pg_untrace(?PgSql\Connection $connection=null)
pg_loopen($connection, $oid=UNKNOWN, string $mode=UNKNOWN)
pg_prepare($connection, string $statement_name, string $query=UNKNOWN)
pg_close(?PgSql\Connection $connection=null)
const PGSQL_TRACE_REGRESS_MODE
pg_field_name(PgSql\Result $result, int $field)
const PGSQL_DIAG_SEVERITY_NONLOCALIZED
const PGSQL_SHOW_CONTEXT_ERRORS
pg_fetch_all_columns(PgSql\Result $result, int $field=0)
pg_set_error_verbosity($connection, int $verbosity=UNKNOWN)
pg_fieldprtlen(PgSql\Result $result, $row, string|int $field=UNKNOWN)
pg_fieldsize(PgSql\Result $result, int $field)
pg_field_type(PgSql\Result $result, int $field)
const PGSQL_ERRORS_DEFAULT
pg_query($connection, string $query=UNKNOWN)
pg_lo_tell(PgSql\Lob $lob)
const PGSQL_DIAG_TABLE_NAME
pg_fetch_array(PgSql\Result $result, ?int $row=null, int $mode=PGSQL_BOTH)
pg_cmdtuples(PgSql\Result $result)
const PGSQL_CONV_IGNORE_NOT_NULL
pg_escape_literal($connection, string $string=UNKNOWN)
pg_set_client_encoding($connection, string $encoding=UNKNOWN)
pg_connection_status(PgSql\Connection $connection)
const PGSQL_STATUS_STRING
pg_convert(PgSql\Connection $connection, string $table_name, array $values, int $flags=0)
pg_socket(PgSql\Connection $connection)
pg_result_status(PgSql\Result $result, int $mode=PGSQL_STATUS_LONG)
pg_field_type_oid(PgSql\Result $result, int $field)
pg_connect(string $connection_string, int $flags=0)
pg_escape_string($connection, string $string=UNKNOWN)
const PGSQL_DIAG_CONSTRAINT_NAME
const PGSQL_CONNECT_FORCE_NEW
const PGSQL_CONNECTION_SSL_STARTUP
pg_fieldnum(PgSql\Result $result, string $field)
const PGSQL_POLLING_READING
pg_free_result(PgSql\Result $result)
pg_field_table(PgSql\Result $result, int $field, bool $oid_only=false)
pg_port(?PgSql\Connection $connection=null)
pg_put_copy_data(PgSql\Connection $connection, string $cmd)
pg_version(?PgSql\Connection $connection=null)
pg_client_encoding(?PgSql\Connection $connection=null)
pg_meta_data(PgSql\Connection $connection, string $table_name, bool $extended=false)
const PGSQL_DIAG_INTERNAL_POSITION
const PGSQL_NONFATAL_ERROR
const PGSQL_DIAG_MESSAGE_HINT
pg_last_error(?PgSql\Connection $connection=null)
pg_locreate($connection=UNKNOWN, $oid=UNKNOWN)
pg_last_notice(PgSql\Connection $connection, int $mode=PGSQL_NOTICE_LAST)
pg_flush(PgSql\Connection $connection)
pg_num_rows(PgSql\Result $result)
pg_setclientencoding($connection, string $encoding=UNKNOWN)
pg_lo_open($connection, $oid=UNKNOWN, string $mode=UNKNOWN)
pg_lo_truncate(PgSql\Lob $lob, int $size)
const PGSQL_LIBPQ_VERSION_STR
pg_result_seek(PgSql\Result $result, int $row)
const PGSQL_SHOW_CONTEXT_NEVER
pg_freeresult(PgSql\Result $result)
pg_ping(?PgSql\Connection $connection=null)
pg_put_line($connection, string $query=UNKNOWN)
const PGSQL_CONNECTION_SETENV
const PGSQL_POLLING_ACTIVE
pg_num_fields(PgSql\Result $result)
pg_escape_bytea($connection, string $string=UNKNOWN)
pg_field_num(PgSql\Result $result, string $field)
pg_lounlink($connection, $oid=UNKNOWN)
pg_lo_export($connection, $oid=UNKNOWN, $filename=UNKNOWN)
pg_result_memory_size(PgSql\Result $result)
const PGSQL_CONNECTION_STARTED
pg_fieldisnull(PgSql\Result $result, $row, string|int $field=UNKNOWN)
const PGSQL_DIAG_SQLSTATE
pg_escape_identifier($connection, string $string=UNKNOWN)
pg_fetch_all(PgSql\Result $result, int $mode=PGSQL_ASSOC)
const PGSQL_DIAG_STATEMENT_POSITION
const PGSQL_DIAG_SEVERITY
pg_fetch_row(PgSql\Result $result, ?int $row=null, int $mode=PGSQL_NUM)
pg_connect_poll(PgSql\Connection $connection)
pg_get_pid(PgSql\Connection $connection)
pg_options(?PgSql\Connection $connection=null)
pg_send_prepare(PgSql\Connection $connection, string $statement_name, string $query)
const PGSQL_CONNECTION_AWAITING_RESPONSE
pg_loimport($connection, $filename=UNKNOWN, $oid=UNKNOWN)
pg_send_execute(PgSql\Connection $connection, string $statement_name, array $params)
pg_send_query(PgSql\Connection $connection, string $query)
const PGSQL_CONNECTION_OK
const PGSQL_DIAG_SCHEMA_NAME
pg_query_params($connection, $query, array $params=UNKNOWN)
pg_transaction_status(PgSql\Connection $connection)
pg_cancel_query(PgSql\Connection $connection)
pg_consume_input(PgSql\Connection $connection)
pg_lowrite(PgSql\Lob $lob, string $data, ?int $length=null)
const PGSQL_DIAG_INTERNAL_QUERY
pg_tty(?PgSql\Connection $connection=null)
pg_end_copy(?PgSql\Connection $connection=null)
const PGSQL_CONNECTION_BAD
pg_connection_busy(PgSql\Connection $connection)
pg_clientencoding(?PgSql\Connection $connection=null)
pg_loexport($connection, $oid=UNKNOWN, $filename=UNKNOWN)
pg_exec($connection, string $query=UNKNOWN)
const PGSQL_ERRORS_VERBOSE
const PGSQL_CONNECTION_MADE
pg_lo_write(PgSql\Lob $lob, string $data, ?int $length=null)
pg_loreadall(PgSql\Lob $lob)
pg_execute($connection, $statement_name, array $params=UNKNOWN)
const PGSQL_DIAG_SOURCE_LINE
pg_result_error(PgSql\Result $result)
pg_last_oid(PgSql\Result $result)
const PGSQL_POLLING_FAILED
const PGSQL_DIAG_MESSAGE_DETAIL
const PGSQL_CONV_IGNORE_DEFAULT
pg_result_error_field(PgSql\Result $result, int $field_code)
pg_numfields(PgSql\Result $result)
pg_field_is_null(PgSql\Result $result, $row, string|int $field=UNKNOWN)
pg_loclose(PgSql\Lob $lob)
const PGSQL_POLLING_WRITING
pg_fetch_object(PgSql\Result $result, ?int $row=null, string $class="stdClass", array $constructor_args=[])
pg_copy_from(PgSql\Connection $connection, string $table_name, array $rows, string $separator="\t", string $null_as="\\\\N")
const PGSQL_TRACE_SUPPRESS_TIMESTAMPS
pg_fetch_assoc(PgSql\Result $result, ?int $row=null)
pg_affected_rows(PgSql\Result $result)
pg_fieldtype(PgSql\Result $result, int $field)
pg_dbname(?PgSql\Connection $connection=null)
pg_host(?PgSql\Connection $connection=null)
pg_lo_read(PgSql\Lob $lob, int $length=8192)
const PGSQL_DIAG_COLUMN_NAME
pg_insert(PgSql\Connection $connection, string $table_name, array $values, int $flags=PGSQL_DML_EXEC)
pg_lo_create($connection=UNKNOWN, $oid=UNKNOWN)
const PGSQL_DIAG_MESSAGE_PRIMARY
const PGSQL_DIAG_SOURCE_FUNCTION
pg_get_notify(PgSql\Connection $connection, int $mode=PGSQL_ASSOC)
const PGSQL_DIAG_DATATYPE_NAME
pg_delete(PgSql\Connection $connection, string $table_name, array $conditions, int $flags=PGSQL_DML_EXEC)
pg_numrows(PgSql\Result $result)
const PGSQL_CONNECTION_AUTH_OK
pg_change_password(PgSql\Connection $connection, string $user, #[\SensitiveParameter] string $password)
const PGSQL_LIBPQ_VERSION
pg_send_query_params(PgSql\Connection $connection, string $query, array $params)
pg_lo_import($connection, $filename=UNKNOWN, $oid=UNKNOWN)
pg_copy_to(PgSql\Connection $connection, string $table_name, string $separator="\t", string $null_as="\\\\N")
pg_socket_poll($socket, int $read, int $write, int $timeout=-1)
const PGSQL_ERRORS_SQLSTATE
pg_field_size(PgSql\Result $result, int $field)
pg_put_copy_end(PgSql\Connection $connection, ?string $error=null)
pg_loread(PgSql\Lob $lob, int $length=8192)
pg_getlastoid(PgSql\Result $result)
pg_jit(?PgSql\Connection $connection=null)
const PGSQL_SHOW_CONTEXT_ALWAYS
pg_lo_read_all(PgSql\Lob $lob)
pg_set_chunked_rows_size(PgSql\Connection $connection, int $size)
pg_set_error_context_visibility(PgSql\Connection $connection, int $visibility)
pg_connection_reset(PgSql\Connection $connection)
pg_update(PgSql\Connection $connection, string $table_name, array $values, array $conditions, int $flags=PGSQL_DML_EXEC)
@ PGSQL_TRANSACTION_INTRANS
@ PGSQL_TRANSACTION_UNKNOWN
@ PGSQL_TRANSACTION_ACTIVE
@ PGSQL_TRANSACTION_INERROR
function(EX_VAR(opline->result.var))