| From: | Corey Huinker <corey(dot)huinker(at)gmail(dot)com> |
|---|---|
| To: | Maxim Orlov <orlovmg(at)gmail(dot)com> |
| Cc: | vignesh C <vignesh21(at)gmail(dot)com>, pgsql-hackers(at)lists(dot)postgresql(dot)org |
| Subject: | Re: Add SHELL_EXIT_CODE to psql |
| Date: | 2023-01-13 04:50:26 |
| Message-ID: | CADkLM=eH6ij-3AXTCo6Sgu_eRdWkFmhvTTrtvvW1YGq_FVLiXQ@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
>
> I belive, we need proper includes.
>
Given that wait_error.c already seems to have the right includes worked out
for WEXITSTATUS/WIFSTOPPED/etc, I decided to just add a function there.
I named it wait_result_to_exit_code(), but I welcome suggestions of a
better name.
| Attachment | Content-Type | Size |
|---|---|---|
| v6-0001-Add-PG_OS_TARGET-environment-variable-to-enable.patch | text/x-patch | 1.1 KB |
| v6-0002-Add-wait_result_to_exit_code.patch | text/x-patch | 1.6 KB |
| v6-0003-Add-psql-variables-SHELL_ERROR-and-SHELL_EXIT_COD.patch | text/x-patch | 7.3 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Masahiko Sawada | 2023-01-13 05:02:13 | Re: Perform streaming logical transactions by background workers and parallel apply |
| Previous Message | Amit Kapila | 2023-01-13 04:28:18 | Re: Perform streaming logical transactions by background workers and parallel apply |