diff --git a/reference/pgsql/functions/pg-change-password.xml b/reference/pgsql/functions/pg-change-password.xml new file mode 100644 index 000000000000..0fa42bd15e32 --- /dev/null +++ b/reference/pgsql/functions/pg-change-password.xml @@ -0,0 +1,90 @@ + + + + pg_change_password + Change a PostgreSQL user's password + + + + &reftitle.description; + + boolpg_change_password + PgSql\Connectionconnection + stringuser + stringpassword + + + pg_change_password changes the password of a + PostgreSQL user. This function uses the + PQchangePassword libpq function which handles + password encryption automatically based on the server's settings. + + + + + &reftitle.parameters; + + + + connection + + &pgsql.parameter.connection; + + + + user + + + The name of the PostgreSQL user whose password to change. + + + + + password + + + The new password. + + + + + + + + + &reftitle.returnvalues; + + &return.success; + + + + + &reftitle.seealso; + + + pg_connect + + + + + + diff --git a/reference/pgsql/functions/pg-jit.xml b/reference/pgsql/functions/pg-jit.xml new file mode 100644 index 000000000000..5e0853e329c7 --- /dev/null +++ b/reference/pgsql/functions/pg-jit.xml @@ -0,0 +1,70 @@ + + + + pg_jit + Returns the JIT information of the server + + + + &reftitle.description; + + arraypg_jit + PgSql\Connectionnullconnection&null; + + + pg_jit returns an array with the JIT (Just-In-Time + compilation) information of the PostgreSQL server. + + + + + &reftitle.parameters; + + + + connection + + &pgsql.parameter.connection-with-nullable-default; + + + + + + + + &reftitle.returnvalues; + + Returns an &array; containing the JIT information of the server. + + + + + &reftitle.seealso; + + + pg_version + + + + + + diff --git a/reference/pgsql/functions/pg-put-copy-data.xml b/reference/pgsql/functions/pg-put-copy-data.xml new file mode 100644 index 000000000000..a31ac3a5281f --- /dev/null +++ b/reference/pgsql/functions/pg-put-copy-data.xml @@ -0,0 +1,85 @@ + + + + pg_put_copy_data + Send data to the server during a COPY operation + + + + &reftitle.description; + + intpg_put_copy_data + PgSql\Connectionconnection + stringcmd + + + Sends data to the server during a COPY FROM STDIN + operation. A COPY command must have been issued + via pg_query before calling this function. + + + + + &reftitle.parameters; + + + + connection + + &pgsql.parameter.connection; + + + + cmd + + + The data to send to the server. A final newline is automatically + added if not present. The data must be formatted according to + the COPY command's format. + + + + + + + + + &reftitle.returnvalues; + + Returns 1 on success, 0 if the + data could not be queued (only in non-blocking mode), or + -1 on error. + + + + + &reftitle.seealso; + + + pg_put_copy_end + pg_query + + + + + + diff --git a/reference/pgsql/functions/pg-put-copy-end.xml b/reference/pgsql/functions/pg-put-copy-end.xml new file mode 100644 index 000000000000..d519a822e95e --- /dev/null +++ b/reference/pgsql/functions/pg-put-copy-end.xml @@ -0,0 +1,83 @@ + + + + pg_put_copy_end + Signal the completion of a COPY operation to the server + + + + &reftitle.description; + + intpg_put_copy_end + PgSql\Connectionconnection + stringnullerror&null; + + + Sends an end-of-data indication to the server during a + COPY FROM STDIN operation. + + + + + &reftitle.parameters; + + + + connection + + &pgsql.parameter.connection; + + + + error + + + If not &null;, the COPY operation is forced to + fail with the given error message. + + + + + + + + + &reftitle.returnvalues; + + Returns 1 on success, 0 if the + data could not be queued (only in non-blocking mode), or + -1 on error. + + + + + &reftitle.seealso; + + + pg_put_copy_data + pg_query + + + + + + diff --git a/reference/pgsql/functions/pg-socket-poll.xml b/reference/pgsql/functions/pg-socket-poll.xml new file mode 100644 index 000000000000..d928cdc8ecb5 --- /dev/null +++ b/reference/pgsql/functions/pg-socket-poll.xml @@ -0,0 +1,108 @@ + + + + pg_socket_poll + Poll a PostgreSQL connection socket for read/write readiness + + + + &reftitle.description; + + intpg_socket_poll + resourcesocket + intread + intwrite + inttimeout-1 + + + Polls a PostgreSQL connection socket for read and/or write readiness. + The socket can be obtained using pg_socket. + This function is useful for implementing non-blocking, asynchronous + query workflows. + + + + + &reftitle.parameters; + + + + socket + + + A socket resource obtained from pg_socket. + + + + + read + + + Whether to check for read readiness. Pass 1 + to check, 0 to skip. + + + + + write + + + Whether to check for write readiness. Pass 1 + to check, 0 to skip. + + + + + timeout + + + The maximum number of milliseconds to wait. Pass + -1 to wait indefinitely, or + 0 to not wait at all. + + + + + + + + + &reftitle.returnvalues; + + Returns a positive value if the socket is ready, 0 + if the timeout was reached, or -1 on error. + + + + + &reftitle.seealso; + + + pg_socket + pg_consume_input + pg_send_query + + + + + +