Rework DefineIndex relkind check
Simplify coding using a switch rather than nested if tests.
Author: Álvaro
Reviewed-by: Robert Haas, Amit Langote, Michaël Paquier
Discussion: https://postgr.es/m/[email protected]
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/60a1d96ed7ba0930024af696e1fb209a030b6c42
Modified Files
--------------
src/backend/commands/indexcmds.c | 19 +++++++++----------
1 file changed, 9 insertions(+), 10 deletions(-)