aboutsummaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2024-01-12 16:05:15 +0100
committerPeter Eisentraut <peter@eisentraut.org>2024-01-12 16:11:29 +0100
commita1604237a6ffee70b171bacd5f36b0e380afd33a (patch)
tree12a32e566f9cb87397f4a86dce47ede1f0a3a5bf /doc/src
parent882887e9b458f533b301c36951c93dfdd37dccfc (diff)
downloadpostgresql-a1604237a6ffee70b171bacd5f36b0e380afd33a.tar.gz
postgresql-a1604237a6ffee70b171bacd5f36b0e380afd33a.zip
Refactor ATExecAddColumn() to use BuildDescForRelation()
BuildDescForRelation() has all the knowledge for converting a ColumnDef into pg_attribute/tuple descriptor. ATExecAddColumn() can make use of that, instead of duplicating all that logic. We just pass a one-element list of ColumnDef and we get back exactly the data structure we need. Note that we don't even need to touch BuildDescForRelation() to make this work. Reviewed-by: Alvaro Herrera <alvherre@alvh.no-ip.org> Discussion: https://www.postgresql.org/message-id/flat/52a125e4-ff9a-95f5-9f61-b87cf447e4da@eisentraut.org
Diffstat (limited to 'doc/src')
0 files changed, 0 insertions, 0 deletions