aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistutil.c
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2025-07-03 16:34:28 +0900
committerMichael Paquier <michael@paquier.xyz>2025-07-03 16:34:28 +0900
commit8ec04c8577a1aa3aac4b77b2747dde30c8f9c8c6 (patch)
tree02da59db5d0b912fefafe327ba6e5f632f1d09f6 /src/backend/access/gist/gistutil.c
parent170673a22f28bd6a1d3fa56e23cd74dcbcb60c17 (diff)
downloadpostgresql-8ec04c8577a1aa3aac4b77b2747dde30c8f9c8c6.tar.gz
postgresql-8ec04c8577a1aa3aac4b77b2747dde30c8f9c8c6.zip
Refactor subtype field of AlterDomainStmt
AlterDomainStmt.subtype used characters for its subtypes of commands, SET|DROP DEFAULT|NOT NULL and ADD|DROP|VALIDATE CONSTRAINT, which were hardcoded in a couple of places of the code. The code is improved by using an enum instead, with the same character values as the original code. Note that the field was documented in parsenodes.h and that it forgot to mention 'V' (VALIDATE CONSTRAINT). Author: Quan Zongliang <quanzongliang@yeah.net> Reviewed-by: Peter Eisentraut <peter@eisentraut.org> Reviewed-by: wenhui qiu <qiuwenhuifx@gmail.com> Reviewed-by: Tender Wang <tndrwang@gmail.com> Discussion: https://postgr.es/m/41ff310b-16bd-44b9-a3ef-97e20f14b709@yeah.net
Diffstat (limited to 'src/backend/access/gist/gistutil.c')
0 files changed, 0 insertions, 0 deletions