1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-03 15:22:11 +03:00

Refactor code of reindexdb for query generation

This merges the portion related to REINDEX SYSTEM into the routine
already available for all the other reindex types, making the query
generation cleaner.  While on it, change the handling of the reindex
types using an enum, which allows to get rid of the hardcoded strings
used directly in the query generation present for the same purpose (aka
"TABLE", "DATABASE", etc.).

Per discussion with Julien Rouhaud, Tom Lane, Alvaro Herrera and me.

Author: Julien Rouhaud
Discussion: https://postgr.es/m/CAOBaU_bSmSik_WRK9niDnm-3NkNZky6+uKxkmQwvthZvMWpS5A@mail.gmail.com
This commit is contained in:
Michael Paquier
2019-07-02 11:36:53 +09:00
parent c72f9b9502
commit 9adda24543
2 changed files with 90 additions and 75 deletions

View File

@@ -1981,6 +1981,7 @@ RegisNode
RegisteredBgWorker
ReindexObjectType
ReindexStmt
ReindexType
RelFileNode
RelFileNodeBackend
RelIdCacheEnt