pgsql: Remove useless code

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема pgsql: Remove useless code
Дата
Msg-id E1sOAwJ-003lBR-G8@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Remove useless code

BuildDescForRelation() goes out of its way to fill in
->constr->has_not_null, but that value is not used for anything later,
so this code can all be removed.  Note that BuildDescForRelation()
doesn't make any effort to fill in the rest of ->constr, so there is
no claim that that structure is completely filled in.

Reviewed-by: Tomasz Rybak <tomasz.rybak@post.pl>
Discussion: https://www.postgresql.org/message-id/flat/a368248e-69e4-40be-9c07-6c3b5880b0a6@eisentraut.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/e26d313bad92e71e2b59cc2e81870bf6d750de1f

Modified Files
--------------
src/backend/commands/tablecmds.c | 25 +++----------------------
1 file changed, 3 insertions(+), 22 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: doc: Clarify that pg_attrdef also stores generation expressions
Следующее
От: David Rowley
Дата:
Сообщение: pgsql: Add context type field to pg_backend_memory_contexts