Hi everyone, How can I edit the postgesql configur...
# support
f
Hi everyone, How can I edit the postgesql configuration (add parameters)? I tried different ways: I changed the
postgresql.conf
file, which is in the root of the
rudderstack-helm
directory. I added the
postgresqlConfiguration
parameter to
values.yaml
and wrote the parameters. I tried adding
postgresql.conf
to the files directory, it sees it as a configmap, but it does not change the database settings. Can you help with this problem?
m
Hey There! 👋 Your message has been received by the RudderStack team. Our standard customer support hours are 9-6 PM EST, but we will forward this request to your Technical Account Manager, and they will get back to you shortly. Please use the thread for any additional comments.
g
which Postgres config do you want to change @full-waiter-76117
pg_hba.conf
and
postgresql.conf
are the config files related to Postgres settings
you're looking in the right direction
f
@gentle-petabyte-80785 I need to change not how many parameters for db postgresql, which are stored by postgresql.conf. How do I change the settings in this helm chart?
@gentle-petabyte-80785 I need to change the parameter
work_mem = 16MB
g
It should work by adding it to
postgresql.conf
Can you share the steps to reproduce this including how did you install it?
And did you use the bitnami image or have you modified it?
f
@gentle-petabyte-80785 No, I’ve tried adding it, but no luck.
Yeah, I used a bitnami image
@gentle-petabyte-80785 I tried adding these parameters to postgresql.conf which is located here https://github.com/rudderlabs/rudderstack-helm/blob/master/postgresql.conf . I have also tried adding this parameter to values.yaml itself and copying postgresql.conf here https://github.com/rudderlabs/rudderstack-helm/tree/master/charts/postgresql/files.
the parameter never changed to 16MB.
👀 1
@gentle-petabyte-80785 how to fix this problem?
g
Discussing with the team on the next steps. Will get back.
@full-waiter-76117 try adding this config in
values.yml
Copy code
postgresql:
  postgresqlConfiguration:
    workMem: 16MB
Any valid postgres config key you set under
postgresqlConfiguration
is converted to snake case (
workMem
to
work_mem
) and passed to postgres server
f
@gentle-petabyte-80785 Yes I added, configmap appears with this value, I go into the container, reload postgresql but, still the value does not change
g
Can you share the config file with me (remove private info before sharing)
f
Do you need values.yaml?
g
yes
f
values-dev.yaml
g
Looks right. Try to manually restart the postgres pod as all config in postgres are not hot reloadable. If you have tried that, do you see any errors/logs that can help debug the issue?
f
@gentle-petabyte-80785 Yes I restarted under, also deleted statefulset and restored it again, the values are not in the database do not change. It’s a mystery to me