MISE À JOUR
Je me suis essayé. Ajouté aux valeurs Parameters-> shared_preload_libraries: pg_stat_statements,pg_hint_plan
. Cliquez sur "enregistrer les modifications", convenu sur "Appliquer immédiatement". Effectivement aucun effet. Quand je vérifie DB Parameter Group - il montre le groupe modifié, mais pg_stat_statements
inutilisable. Je pense donc que mal sur JS et essayer aws cli
:
aws rds describe-db-instances --db-instance-identifier p5
il révèle que le groupe n'a pas été en effet changé !:
"OptionGroupMemberships": [
{
"Status": "in-sync",
"OptionGroupName": "default:postgres-9-5"
}
],
J'ai fait:
aws rds modify-db-instance --db-parameter-group-name with-contrib --apply-immediately --db-instance-identifier p5
aws rds reboot-db-instance --db-instance-identifier p5
aws rds describe-db-instances --db-instance-identifier p5
et il a été changé. Donc j'essaie de:
mon=> create extension pg_stat_statements ;
CREATE EXTENSION
mon=> select count(*) from pg_stat_statements;
count
-------
26
(1 row)
Voila. Vous ne savez pas si c'est une fonctionnalité de Chrome (Version 57.0.2987.133 (64 bits)) ou JS, ou si vous n'obtenez pas des étapes de clic intuitives, mais que je n'ai pas réussi à appliquer les modifications. S'il vous plaît essayez avec aws cli
pour voir si vous avez du succès là-bas.
PRÉCÉDENT String requires quotes I think.:
String: In general, enclose the value in single quotes, doubling any single quotes within the value. Quotes can usually be omitted if the value is a simple number or identifier, however.
réglage Alors peut-être shared_preload_libraries cette façon vous aidera:
shared_preload_libraries = 'pg_stat_statements,pg_hint_plan'
https://www.postgresql.org/docs/current/static/runtime-config-client.html:
shared_preload_libraries (string)
This variable specifies one or more shared libraries to be preloaded at server start. This parameter can only be set at server start. If a specified library is not found, the server will fail to start.
RDS soutient 'pg_stat_statements'. 'shared_preload_libraries = pg_stat_statements, pg_hint_plan' changez en' shared_preload_libraries = 'pg_stat_statements, pg_hint_plan'' et redémarrez s'il vous plaît –