summaryrefslogtreecommitdiff
path: root/src/common/jsonapi.c
diff options
context:
space:
mode:
authorAlvaro Herrera2021-07-01 16:56:30 +0000
committerAlvaro Herrera2021-07-01 16:56:30 +0000
commitd700518d744e53994fdded14b23ebc15b031b0dd (patch)
treefefae35028b8e0d8254d87c067ef4f952ff07154 /src/common/jsonapi.c
parent2f7bae2f924d8213a76370f825dc15eb0aa79796 (diff)
Don't reset relhasindex for partitioned tables on ANALYZE
Commit 0e69f705cc1a introduced code to analyze partitioned table; however, that code fails to preserve pg_class.relhasindex correctly. Fix by observing whether any indexes exist rather than accidentally falling through to assuming none do. Backpatch to 14. Author: Alexander Pyhalov <a.pyhalov@postgrespro.ru> Reviewed-by: Álvaro Herrera <alvherre@alvh.no-ip.org> Reviewed-by: Zhihong Yu <zyu@yugabyte.com> Discussion: https://postgr.es/m/CALNJ-vS1R3Qoe5t4tbzxrkpBtzRbPq1dDcW4RmA_a+oqweF30w@mail.gmail.com
Diffstat (limited to 'src/common/jsonapi.c')
0 files changed, 0 insertions, 0 deletions