mirror of
https://github.com/postgres/postgres.git
synced 2025-11-06 07:49:08 +03:00
REINDEX SCHEMA
Add new SCHEMA option to REINDEX and reindexdb. Sawada Masahiko Reviewed by Michael Paquier and Fabrízio de Royes Mello
This commit is contained in:
@@ -2721,10 +2721,19 @@ typedef struct ConstraintsSetStmt
|
||||
* REINDEX Statement
|
||||
* ----------------------
|
||||
*/
|
||||
typedef enum ReindexObjectType
|
||||
{
|
||||
REINDEX_OBJECT_INDEX, /* index */
|
||||
REINDEX_OBJECT_TABLE, /* table or materialized view */
|
||||
REINDEX_OBJECT_SCHEMA, /* schema */
|
||||
REINDEX_OBJECT_SYSTEM, /* system catalogs */
|
||||
REINDEX_OBJECT_DATABASE /* database */
|
||||
} ReindexObjectType;
|
||||
|
||||
typedef struct ReindexStmt
|
||||
{
|
||||
NodeTag type;
|
||||
ObjectType kind; /* OBJECT_INDEX, OBJECT_TABLE, etc. */
|
||||
ReindexObjectType kind; /* REINDEX_OBJECT_INDEX, REINDEX_OBJECT_TABLE, etc. */
|
||||
RangeVar *relation; /* Table or index to reindex */
|
||||
const char *name; /* name of database to reindex */
|
||||
bool do_system; /* include system tables in database case */
|
||||
|
||||
Reference in New Issue
Block a user