pgsql: Add tab-complete for ALTER DOMAIN ADD [CONSTRAINT]

2025-05-11 Thread Álvaro Herrera
Add tab-complete for ALTER DOMAIN ADD [CONSTRAINT] We can add tab-completion with "CHECK (" and "NOT NULL" after ALTER DOMAIN ADD [CONSTRAINT]. ALTER DOMAIN dom ADD -> CHECK ( ALTER DOMAIN dom ADD -> NOT NULL ALTER DOMAIN dom ADD -> CONSTRAINT ALTER DOMAIN dom ADD CONSTRAINT nm -> CHECK ( ALTER

pgsql: Sort includes in alphabetical order

2025-05-11 Thread Álvaro Herrera
Sort includes in alphabetical order Added by commit 042a66291b04, no backpatch needed. Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/7b2ad4342603c9796bf28dbe84aca247b2bfa9f8 Modified Files -- src/backend/utils/adt/mcxtfuncs.c | 4 ++-- 1 file changed,

pgsql: relcache: Avoid memory leak on tables with no CHECK constraints

2025-05-11 Thread Álvaro Herrera
relcache: Avoid memory leak on tables with no CHECK constraints As complained about by Valgrind, in commit a379061a22a8 I failed to realize that I was causing rd_att->constr->check to become allocated when no CHECK constraints exist; previously it'd remain NULL. (This was my bug, not the mentione

pgsql: Fix comment of tsquerysend()

2025-05-11 Thread Álvaro Herrera
Fix comment of tsquerysend() The comment describes the order in which fields are sent, and it had one of the fields in the wrong place. This has been wrong since e6dbcb72fafa (2008), so backpatch all the way back. Author: Emre Hasegeli Discussion: https://postgr.es/m/CAE2gYzzf38bR_R=izhpmxamqh

pgsql: Fix comment of tsquerysend()

2025-05-11 Thread Álvaro Herrera
Fix comment of tsquerysend() The comment describes the order in which fields are sent, and it had one of the fields in the wrong place. This has been wrong since e6dbcb72fafa (2008), so backpatch all the way back. Author: Emre Hasegeli Discussion: https://postgr.es/m/CAE2gYzzf38bR_R=izhpmxamqh

pgsql: Fix comment of tsquerysend()

2025-05-11 Thread Álvaro Herrera
Fix comment of tsquerysend() The comment describes the order in which fields are sent, and it had one of the fields in the wrong place. This has been wrong since e6dbcb72fafa (2008), so backpatch all the way back. Author: Emre Hasegeli Discussion: https://postgr.es/m/CAE2gYzzf38bR_R=izhpmxamqh

pgsql: Fix comment of tsquerysend()

2025-05-11 Thread Álvaro Herrera
Fix comment of tsquerysend() The comment describes the order in which fields are sent, and it had one of the fields in the wrong place. This has been wrong since e6dbcb72fafa (2008), so backpatch all the way back. Author: Emre Hasegeli Discussion: https://postgr.es/m/CAE2gYzzf38bR_R=izhpmxamqh

pgsql: Fix comment of tsquerysend()

2025-05-11 Thread Álvaro Herrera
Fix comment of tsquerysend() The comment describes the order in which fields are sent, and it had one of the fields in the wrong place. This has been wrong since e6dbcb72fafa (2008), so backpatch all the way back. Author: Emre Hasegeli Discussion: https://postgr.es/m/CAE2gYzzf38bR_R=izhpmxamqh

pgsql: Fix comment of tsquerysend()

2025-05-11 Thread Álvaro Herrera
Fix comment of tsquerysend() The comment describes the order in which fields are sent, and it had one of the fields in the wrong place. This has been wrong since e6dbcb72fafa (2008), so backpatch all the way back. Author: Emre Hasegeli Discussion: https://postgr.es/m/CAE2gYzzf38bR_R=izhpmxamqh