]> granicus.if.org Git - postgresql/commit
Rework DefineIndex relkind check
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 16 Oct 2017 10:22:18 +0000 (12:22 +0200)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 16 Oct 2017 10:22:18 +0000 (12:22 +0200)
commit60a1d96ed7ba0930024af696e1fb209a030b6c42
tree7a6a5621707097a4378d424420dffb062b21aba2
parent5fc438fb256ce83248feaf60e22e0919b76e3c7b
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/20171013163820.pai7djcaxrntaxtn@alvherre.pgsql
src/backend/commands/indexcmds.c