Vous n'êtes pas identifié(e).
- Contributions : Récentes | Sans réponse
Pages : 1
#1 18/02/2019 10:13:34
- mortimer.pw
- Membre
Err Syntaxe REINDEX VERBOSE
Bonjour à tous,
Je travaille avec un moteur 10.3 sous Cent-OS 7.5.
J'essaye d'exécuter la commande REINDEX avec l'option VERBOSE et j'ai un message d'erreur de syntaxe.
J'ai essayé plusieurs commandes :
geo=# reindex (verbose) geo.type_of;
ERROR:  syntax error at or near "geo"
LINE 1: reindex (verbose) geo.type_of;
                          ^
geo=# reindex (verbose) type_of;
ERROR:  syntax error at or near "type_of"
LINE 1: reindex (verbose) type_of;
                          ^
geo=# reindex verbose type_of;
ERROR:  syntax error at or near "verbose"
LINE 1: reindex verbose type_of;
                ^
geo=# \d geo.type_of;
                         Table "geo.type_of"
   Column   |         Type          | Collation | Nullable | Default 
------------+-----------------------+-----------+----------+---------
 id_cgu     | character varying(20) |           | not null | 
 id_type_of | character varying(2)  |           | not null | 
 libelle    | character varying(30) |           | not null | 
 type       | numeric               |           | not null | 0
 date_susp  | date                  |           |          | 
Indexes:
    "pk_type_of" PRIMARY KEY, btree (id_cgu, id_type_of)
Foreign-key constraints:
    "fk_type_of_cgu" FOREIGN KEY (id_cgu) REFERENCES cgu(id_cgu)
Referenced by:
    TABLE "demandeur" CONSTRAINT "fk_demandeur_type_of" FOREIGN KEY (id_cgu, id_type_of) REFERENCES type_of(id_cgu, id_type_of)
    TABLE "info_creation_commande" CONSTRAINT "fk_info_creation_commande_type_of" FOREIGN KEY (id_cgu, id_type_of) REFERENCES type_of(id_cgu, id_type_of)
    TABLE "sygesst.info_creation_commande" CONSTRAINT "fk_info_creation_commande_type_of" FOREIGN KEY (id_cgu, id_type_of) REFERENCES type_of(id_cgu, id_type_of)
    TABLE "o_f" CONSTRAINT "fk_o_f_type_of" FOREIGN KEY (id_cgu, id_type_of) REFERENCES type_of(id_cgu, id_type_of)
Je ne vois pas d'où peut venir l'erreur.
Pouvez-vous m'aider svp ?
Hors ligne
#2 18/02/2019 15:07:43
- gleu
- Administrateur
Re : Err Syntaxe REINDEX VERBOSE
En cas d'erreur de syntaxe, le mieux est de regarder la référence de la commande: https://docs.postgresql.fr/10/sql-reindex.html. Elle indique qu'il faut ajouter le type d'objet avant le nom de cet objet.
Guillaume.
Hors ligne
#3 19/02/2019 09:32:38
- mortimer.pw
- Membre
Re : Err Syntaxe REINDEX VERBOSE
Bonjour et merci Guillaume, je ne devais pas avoir les yeux en face des trous hier, désolé.
Hors ligne
Pages : 1