postgresql/src
Peter Eisentraut a1604237a6 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
2024-01-12 16:11:29 +01:00
..
backend Refactor ATExecAddColumn() to use BuildDescForRelation() 2024-01-12 16:11:29 +01:00
bin Fix pg_walsummary's .gitignore 2024-01-12 13:40:58 +09:00
common Cleanup for unicode-update build target and test. 2024-01-11 12:35:29 -08:00
fe_utils Update copyright for 2024 2024-01-03 20:49:05 -05:00
include Refactor code checking for file existence 2024-01-12 12:04:51 +09:00
interfaces Add new function, PQchangePassword(), to libpq 2024-01-09 09:16:48 -05:00
makefiles Update copyright for 2024 2024-01-03 20:49:05 -05:00
pl Clean up some edge cases in plpgsql's %TYPE parsing. 2024-01-05 14:32:34 -05:00
port Update copyright for 2024 2024-01-03 20:49:05 -05:00
template Use unnamed POSIX semaphores on Cygwin. 2023-01-06 10:33:28 +13:00
test Fix some inconsistent whitespace in Perl file 2024-01-11 22:23:44 +01:00
timezone Update copyright for 2024 2024-01-03 20:49:05 -05:00
tools Add new pg_walsummary tool. 2024-01-11 12:48:27 -05:00
tutorial Update copyright for 2024 2024-01-03 20:49:05 -05:00
.gitignore
DEVELOPERS
Makefile Remove distprep 2023-11-06 15:18:04 +01:00
Makefile.global.in Initialize data directories with --lc-messages=C for tests. 2023-12-21 15:10:13 -08:00
Makefile.shlib Stop using "-multiply_defined suppress" on macOS. 2023-09-26 21:06:21 -04:00
meson.build Update copyright for 2024 2024-01-03 20:49:05 -05:00
nls-global.mk Remove distprep 2023-11-06 15:18:04 +01:00