Yessica Brinkmann escribió: > El 22 jul., 2018 11:10 PM, "Alvaro Herrera" <alvhe...@2ndquadrant.com> > escribió:
> > Hola, mirando el pg_adviser, yo no creo que lo puedas usar, porque está > > abandonado desde el 2010: > > https://github.com/gurjeet/pg_adviser/commits/master > > Yo lo olvidaría y buscaría otra cosa. > Realmente esto de olvidarlo y buscar otra cosa lastimosamente es > imposible para mí, ya que es mi asignación de tesis de la universidad > ejecutar este módulo y modificarlo. Así que como sea debo hacerlo > funcionar. Y ya sabía que es del 2010. Haber partido por ahí ... creo que tendrías que empezar con tener Postgres 8.4 instalado completo desde fuentes. ¿Ya tienes eso? Un problema es que el README habla de un parche, pero no hay ninguno en los archivos de github. Quizás el parche era necesario en versiones anteriores, y en 8.4 ya no es necesario, sobre todo considerando este commit: commit 604ffd280b955100e5fc24649ee4d42a6f3ebf35 Author: Tom Lane <t...@sss.pgh.pa.us> AuthorDate: Fri May 25 17:54:25 2007 +0000 CommitDate: Fri May 25 17:54:25 2007 +0000 Create hooks to let a loadable plugin monitor (or even replace) the planner and/or create plans for hypothetical situations; in particular, investigate plans that would be generated using hypothetical indexes. This is a heavily-rewritten version of the hooks proposed by Gurjeet Singh for his Index Advisor project. In this formulation, the index advisor can be entirely a loadable module instead of requiring a significant part to be in the core backend, and plans can be generated for hypothetical indexes without requiring the creation and rolling-back of system catalog entries. The index advisor patch as-submitted is not compatible with these hooks, but it needs significant work anyway due to other 8.2-to-8.3 planner changes. With these hooks in the core backend, development of the advisor can proceed as a pgfoundry project. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services