pgsql: Improve tab completion of ALTER TYPE in psql

2022-08-14 Thread Michael Paquier
Improve tab completion of ALTER TYPE in psql This commit adds support for more tab completion in this command as of "ALTER TYPE .. SET". The completion of "RENAME VALUE" was separated from the rest of the completions done for this command, so group everything together. Author: Vignesh C Discussi

pgsql: Fix outdated --help message for postgres -f

2022-08-14 Thread Michael Paquier
Fix outdated --help message for postgres -f This option switch supports a total of 8 values, as told by set_plan_disabling_options() and the documentation, but this was not reflected in the output generated by --help. Author: Junwang Zhao Discussion: https://postgr.es/m/caeg8a3+pt3cwzyjzks184l1x

pgsql: Fix outdated --help message for postgres -f

2022-08-14 Thread Michael Paquier
Fix outdated --help message for postgres -f This option switch supports a total of 8 values, as told by set_plan_disabling_options() and the documentation, but this was not reflected in the output generated by --help. Author: Junwang Zhao Discussion: https://postgr.es/m/caeg8a3+pt3cwzyjzks184l1x

pgsql: Fix outdated --help message for postgres -f

2022-08-14 Thread Michael Paquier
Fix outdated --help message for postgres -f This option switch supports a total of 8 values, as told by set_plan_disabling_options() and the documentation, but this was not reflected in the output generated by --help. Author: Junwang Zhao Discussion: https://postgr.es/m/caeg8a3+pt3cwzyjzks184l1x

pgsql: Fix outdated --help message for postgres -f

2022-08-14 Thread Michael Paquier
Fix outdated --help message for postgres -f This option switch supports a total of 8 values, as told by set_plan_disabling_options() and the documentation, but this was not reflected in the output generated by --help. Author: Junwang Zhao Discussion: https://postgr.es/m/caeg8a3+pt3cwzyjzks184l1x

pgsql: Fix outdated --help message for postgres -f

2022-08-14 Thread Michael Paquier
Fix outdated --help message for postgres -f This option switch supports a total of 8 values, as told by set_plan_disabling_options() and the documentation, but this was not reflected in the output generated by --help. Author: Junwang Zhao Discussion: https://postgr.es/m/caeg8a3+pt3cwzyjzks184l1x

pgsql: Fix outdated --help message for postgres -f

2022-08-14 Thread Michael Paquier
Fix outdated --help message for postgres -f This option switch supports a total of 8 values, as told by set_plan_disabling_options() and the documentation, but this was not reflected in the output generated by --help. Author: Junwang Zhao Discussion: https://postgr.es/m/caeg8a3+pt3cwzyjzks184l1x

pgsql: Fix outdated --help message for postgres -f

2022-08-14 Thread Michael Paquier
Fix outdated --help message for postgres -f This option switch supports a total of 8 values, as told by set_plan_disabling_options() and the documentation, but this was not reflected in the output generated by --help. Author: Junwang Zhao Discussion: https://postgr.es/m/caeg8a3+pt3cwzyjzks184l1x

pgsql: Preserve memory context of VarStringSortSupport buffers.

2022-08-14 Thread Tom Lane
Preserve memory context of VarStringSortSupport buffers. When enlarging the work buffers of a VarStringSortSupport object, varstrfastcmp_locale was careful to keep them in the ssup_cxt memory context; but varstr_abbrev_convert just used palloc(). The latter creates a hazard that the buffers could

pgsql: Preserve memory context of VarStringSortSupport buffers.

2022-08-14 Thread Tom Lane
Preserve memory context of VarStringSortSupport buffers. When enlarging the work buffers of a VarStringSortSupport object, varstrfastcmp_locale was careful to keep them in the ssup_cxt memory context; but varstr_abbrev_convert just used palloc(). The latter creates a hazard that the buffers could

pgsql: Preserve memory context of VarStringSortSupport buffers.

2022-08-14 Thread Tom Lane
Preserve memory context of VarStringSortSupport buffers. When enlarging the work buffers of a VarStringSortSupport object, varstrfastcmp_locale was careful to keep them in the ssup_cxt memory context; but varstr_abbrev_convert just used palloc(). The latter creates a hazard that the buffers could

pgsql: Preserve memory context of VarStringSortSupport buffers.

2022-08-14 Thread Tom Lane
Preserve memory context of VarStringSortSupport buffers. When enlarging the work buffers of a VarStringSortSupport object, varstrfastcmp_locale was careful to keep them in the ssup_cxt memory context; but varstr_abbrev_convert just used palloc(). The latter creates a hazard that the buffers could

pgsql: Preserve memory context of VarStringSortSupport buffers.

2022-08-14 Thread Tom Lane
Preserve memory context of VarStringSortSupport buffers. When enlarging the work buffers of a VarStringSortSupport object, varstrfastcmp_locale was careful to keep them in the ssup_cxt memory context; but varstr_abbrev_convert just used palloc(). The latter creates a hazard that the buffers could

pgsql: Preserve memory context of VarStringSortSupport buffers.

2022-08-14 Thread Tom Lane
Preserve memory context of VarStringSortSupport buffers. When enlarging the work buffers of a VarStringSortSupport object, varstrfastcmp_locale was careful to keep them in the ssup_cxt memory context; but varstr_abbrev_convert just used palloc(). The latter creates a hazard that the buffers could

pgsql: Preserve memory context of VarStringSortSupport buffers.

2022-08-14 Thread Tom Lane
Preserve memory context of VarStringSortSupport buffers. When enlarging the work buffers of a VarStringSortSupport object, varstrfastcmp_locale was careful to keep them in the ssup_cxt memory context; but varstr_abbrev_convert just used palloc(). The latter creates a hazard that the buffers could