From feff053056fa2915779b121a696d516bf15c2971 Mon Sep 17 00:00:00 2001 From: Gina Peter Banyard Date: Sun, 12 Nov 2023 17:23:32 +0000 Subject: [PATCH 1/8] [PHP 8.3] pgsql update --- reference/pgsql/functions/pg-trace.xml | 1 + reference/pgsql/versions.xml | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/reference/pgsql/functions/pg-trace.xml b/reference/pgsql/functions/pg-trace.xml index a802480fcb96..17bd785c6f96 100644 --- a/reference/pgsql/functions/pg-trace.xml +++ b/reference/pgsql/functions/pg-trace.xml @@ -14,6 +14,7 @@ stringfilename stringmode"w" PgSql\Connectionnullconnection&null; + inttrace_mode0 pg_trace enables tracing of the PostgreSQL diff --git a/reference/pgsql/versions.xml b/reference/pgsql/versions.xml index 134edaa08590..aaba7cdaa718 100644 --- a/reference/pgsql/versions.xml +++ b/reference/pgsql/versions.xml @@ -20,12 +20,14 @@ + + @@ -70,6 +72,8 @@ + + @@ -85,6 +89,7 @@ + From 2e025e12b117e022975af9e3e3d903d0ade84b5a Mon Sep 17 00:00:00 2001 From: David CARLIER Date: Sun, 12 Nov 2023 17:34:02 +0000 Subject: [PATCH 2/8] pg_set_error_context_visibility --- .../pg-set-error-context-visibility.xml | 113 ++++++++++++++++++ 1 file changed, 113 insertions(+) create mode 100644 reference/pgsql/functions/pg-set-error-context-visibility.xml diff --git a/reference/pgsql/functions/pg-set-error-context-visibility.xml b/reference/pgsql/functions/pg-set-error-context-visibility.xml new file mode 100644 index 000000000000..647de3b7af46 --- /dev/null +++ b/reference/pgsql/functions/pg-set-error-context-visibility.xml @@ -0,0 +1,113 @@ + + + + pg_set_error_context_visibility + + Determines the visibility of the context's error messages returned by pg_last_error + and pg_result_error + + + + + &reftitle.description; + + intpg_set_error_context_visibility + PgSql\Connectionconnection + intvisibility + + &warn.undocumented.func; + + Determines the visibility of the context's error messages returned by pg_last_error + and pg_result_error + + + + + &reftitle.parameters; + + + + connection + + &pgsql.parameter.connection; + + + + visibility + + + The required visibility: PGSQL_SHOW_CONTEXT_NEVER, + PGSQL_SHOW_CONTEXT_ERRORS + or PGSQL_SHOW_CONTEXT_ALWAYS. + + + + + + + + + &reftitle.returnvalues; + + The previous visibility level: PGSQL_SHOW_CONTEXT_NEVER, + PGSQL_SHOW_CONTEXT_ERRORS + or PGSQL_SHOW_CONTEXT_ALWAYS. + + + + + &reftitle.examples; + + <function>pg_set_error_context_visibility</function> example + + Description. + + + +]]> + + + + + + &reftitle.seealso; + + + pg_last_error + pg_result_error + + + + + + From a68425073013f0a964f06410521143eee0277413 Mon Sep 17 00:00:00 2001 From: David CARLIER Date: Sun, 12 Nov 2023 17:53:48 +0000 Subject: [PATCH 3/8] pg_enter_pipeline_mode --- .../functions/pg-enter-pipeline-mode.xml | 92 +++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 reference/pgsql/functions/pg-enter-pipeline-mode.xml diff --git a/reference/pgsql/functions/pg-enter-pipeline-mode.xml b/reference/pgsql/functions/pg-enter-pipeline-mode.xml new file mode 100644 index 000000000000..06d4977603af --- /dev/null +++ b/reference/pgsql/functions/pg-enter-pipeline-mode.xml @@ -0,0 +1,92 @@ + + + + pg_enter_pipeline_mode + Causes a connection to enter pipeline mode if it is currently idle or already in pipeline mode + + + + &reftitle.description; + + boolpg_enter_pipeline_mode + PgSql\Connectionconnection + + + Causes a connection to enter pipeline mode if it is currently idle or already in pipeline mode + + + + + &reftitle.parameters; + + + + connection + + &pgsql.parameter.connection; + + + + + + + + &reftitle.returnvalues; + + Returns &true; if it succeeds to enter in pipeline mode or &false; + + + + + &reftitle.examples; + + <function>pg_enter_pipeline_mode</function> example + + +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + pg_connect + pg_connect_poll + pg_flush + + + + + From 3fbddbc2381d8586f3a8cfcaafaa36a036e35cc9 Mon Sep 17 00:00:00 2001 From: David CARLIER Date: Sun, 12 Nov 2023 20:18:15 +0000 Subject: [PATCH 4/8] pg_exit_pipeline_mode --- .../pgsql/functions/pg-exit-pipeline-mode.xml | 95 +++++++++++++++++++ 1 file changed, 95 insertions(+) create mode 100644 reference/pgsql/functions/pg-exit-pipeline-mode.xml diff --git a/reference/pgsql/functions/pg-exit-pipeline-mode.xml b/reference/pgsql/functions/pg-exit-pipeline-mode.xml new file mode 100644 index 000000000000..c0f38dc24200 --- /dev/null +++ b/reference/pgsql/functions/pg-exit-pipeline-mode.xml @@ -0,0 +1,95 @@ + + + + pg_exit_pipeline_mode + Causes a connection to exit pipeline mode if it is currently in pipeline mode with an empty queue and no pending results. + + + + &reftitle.description; + + boolpg_exit_pipeline_mode + PgSql\Connectionconnection + + + Causes a connection to exit pipeline mode if it is currently in pipeline mode with an empty queue and no pending results.escription. + + + + + &reftitle.parameters; + + + + connection + + &pgsql.parameter.connection; + + + + + + + + &reftitle.returnvalues; + + Returns &true; if it succeeds to exit the pipeline mode, assuming + it was in this mode via pg_enter_pipeline_mode, + &false; otherwise. + + + + + &reftitle.examples; + + <function>pg_exit_pipeline_mode</function> example + + +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + pg_enter_pipeline_mode + pg_connect + pg_connect_poll + pg_flush + + + + + From 36b768d5ccf622b5e8f885b5e6151927fcda1411 Mon Sep 17 00:00:00 2001 From: David CARLIER Date: Mon, 13 Nov 2023 18:51:25 +0000 Subject: [PATCH 5/8] changes from review --- reference/pgsql/functions/pg-enter-pipeline-mode.xml | 5 +++-- reference/pgsql/functions/pg-exit-pipeline-mode.xml | 2 +- .../pgsql/functions/pg-set-error-context-visibility.xml | 5 +---- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/reference/pgsql/functions/pg-enter-pipeline-mode.xml b/reference/pgsql/functions/pg-enter-pipeline-mode.xml index 06d4977603af..7103a9781449 100644 --- a/reference/pgsql/functions/pg-enter-pipeline-mode.xml +++ b/reference/pgsql/functions/pg-enter-pipeline-mode.xml @@ -2,7 +2,7 @@ pg_enter_pipeline_mode - Causes a connection to enter pipeline mode if it is currently idle or already in pipeline mode + Causes a connection to enter pipeline mode if it is currently idle. @@ -12,7 +12,7 @@ PgSql\Connectionconnection - Causes a connection to enter pipeline mode if it is currently idle or already in pipeline mode + Causes a connection to enter pipeline mode if it is currently idle. @@ -63,6 +63,7 @@ false &reftitle.seealso; + pg_exit_pipeline_mode pg_connect pg_connect_poll pg_flush diff --git a/reference/pgsql/functions/pg-exit-pipeline-mode.xml b/reference/pgsql/functions/pg-exit-pipeline-mode.xml index c0f38dc24200..d859c749b966 100644 --- a/reference/pgsql/functions/pg-exit-pipeline-mode.xml +++ b/reference/pgsql/functions/pg-exit-pipeline-mode.xml @@ -12,7 +12,7 @@ PgSql\Connectionconnection - Causes a connection to exit pipeline mode if it is currently in pipeline mode with an empty queue and no pending results.escription. + Causes a connection to exit pipeline mode if it is currently in pipeline mode with an empty queue and no pending results. diff --git a/reference/pgsql/functions/pg-set-error-context-visibility.xml b/reference/pgsql/functions/pg-set-error-context-visibility.xml index 647de3b7af46..4dc80de5053e 100644 --- a/reference/pgsql/functions/pg-set-error-context-visibility.xml +++ b/reference/pgsql/functions/pg-set-error-context-visibility.xml @@ -3,8 +3,7 @@ pg_set_error_context_visibility - Determines the visibility of the context's error messages returned by pg_last_error - and pg_result_error + Determines the visibility of the context's error messages. @@ -15,7 +14,6 @@ PgSql\Connectionconnection intvisibility - &warn.undocumented.func; Determines the visibility of the context's error messages returned by pg_last_error and pg_result_error @@ -90,7 +88,6 @@ - From f3ba78e58aaeef55cc1b98b93c35319318b84fc3 Mon Sep 17 00:00:00 2001 From: David CARLIER Date: Mon, 13 Nov 2023 19:31:02 +0000 Subject: [PATCH 7/8] pg_pipeline_sync --- .../pgsql/functions/pg-pipeline-sync.xml | 96 +++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 reference/pgsql/functions/pg-pipeline-sync.xml diff --git a/reference/pgsql/functions/pg-pipeline-sync.xml b/reference/pgsql/functions/pg-pipeline-sync.xml new file mode 100644 index 000000000000..cf63935e2bb0 --- /dev/null +++ b/reference/pgsql/functions/pg-pipeline-sync.xml @@ -0,0 +1,96 @@ + + + + pg_pipeline_sync + Marks a synchronization point in a pipeline by sending a sync message and flushing the send buffer. + + + + &reftitle.description; + + boolpg_pipeline_sync + PgSql\Connectionconnection + + + Marks a synchronization point in a pipeline by sending a sync message and flushing the send buffer. + + + + + &reftitle.parameters; + + + + connection + + &pgsql.parameter.connection; + + + + + + + + &reftitle.returnvalues; + + Returns &true; on success or &false; + + + + + &reftitle.examples; + + <function>pg_pipeline_sync</function> example + + Description. + + + +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + pg_enter_pipeline_mode + pg_pipeline_status + + + + From 476156ca26e042077f28ca34f5fb7b61104566a3 Mon Sep 17 00:00:00 2001 From: Gina Peter Banyard Date: Tue, 14 Nov 2023 01:23:18 +0000 Subject: [PATCH 8/8] Update refpurpose --- reference/pgsql/functions/pg-exit-pipeline-mode.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/pgsql/functions/pg-exit-pipeline-mode.xml b/reference/pgsql/functions/pg-exit-pipeline-mode.xml index d859c749b966..276aeca2258e 100644 --- a/reference/pgsql/functions/pg-exit-pipeline-mode.xml +++ b/reference/pgsql/functions/pg-exit-pipeline-mode.xml @@ -2,7 +2,7 @@ pg_exit_pipeline_mode - Causes a connection to exit pipeline mode if it is currently in pipeline mode with an empty queue and no pending results. + Causes a connection to exit pipeline mode