Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

296
Vistas
EXPLAIN ANALYZE on CREATE INDEX with PostgreSQL

We can execute EXPLAIN ANALYZE on a query and on commands like CREATE TABLE but seems like we cannot on a CREATE INDEX.

What is the reason for this? Must one only get statistics about an index only elsewhere?

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

To get the time to create an index, you can do the following:

postgres=# select * from now();
postgres=# create index foo on table(col);
postgres=# select * from now();

Type the last command (select * from now()) while the index is being created, be sure to hit enter and it will run this command as soon as the index creation completes. You'll end up with the timestamp just before and just after index creation.

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda