| From: | Peter Eisentraut <peter(at)eisentraut(dot)org> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Remove useless if condition |
| Date: | 2023-08-29 07:02:53 |
| Message-ID: | E1qaskX-001U9l-2i@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
Remove useless if condition
This is useless because these fields are not set anywhere before, so
we can assign them unconditionally. This also makes this more
consistent with ATExecAddColumn().
Reviewed-by: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
Discussion: https://www.postgresql.org/message-id/flat/52a125e4-ff9a-95f5-9f61-b87cf447e4da(at)eisentraut(dot)org
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/689c66a84bb75e08462c05ffc18514895b19d48e
Modified Files
--------------
src/backend/commands/tablecmds.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Daniel Gustafsson | 2023-08-29 09:22:50 | pgsql: Reword user-facing message for "power of two" |
| Previous Message | Peter Eisentraut | 2023-08-29 06:49:18 | pgsql: Make more use of makeColumnDef() |