Re: Logging behavior not changing on reload
От | Matthew Foster - NOAA Federal |
---|---|
Тема | Re: Logging behavior not changing on reload |
Дата | |
Msg-id | CAP1ZYZFtPkCfDMiwUfDmLrDcD3EP0=FAxSQDn875+AL_bFtQdA@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Logging behavior not changing on reload (Tom Lane <tgl@sss.pgh.pa.us>) |
Список | pgsql-novice |
Tom,
I just found it. I had to set my terminal's scrollback buffer to unlimited and search for SIGHUP in the tail output. The log_rotation_size value was too large. ~2GB is the maximum. I was trying to go for 10GB, and it didn't like it. I changed the value to 2000000, and it worked.
Thanks, everyone, for the assistance!
Matt
On Wed, Apr 2, 2014 at 9:53 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
Matthew Foster - NOAA Federal <matthew.foster@noaa.gov> writes:> I did the reload like this...It looks okay to me too. So we need to approach this a bit more
> /usr/pgsql-9.1/bin/pg_ctl -D /db_data reload
> I have examined the postgresql.conf file numerous times, and even had
> someone else look at it for me. We can't see anything wrong in our syntax.
systematically.
1. When you do the pg_ctl reload, do you see anything about "received
SIGHUP, reloading configuration files" appear in the postmaster log?
If not, the problem is something about pg_ctl not getting its job done.
(Notably, are you sure that's the right -D value? It does not look like
where installations using the type of path you show above would usually
put the data directory.)
2. If the postmaster is getting the SIGHUP signal, then the wires are
crossed somewhere in terms of what you're doing with postgresql.conf.
You wouldn't be the first person to have edited the wrong copy of
postgresql.conf, for instance. Try "SHOW config_file" to verify where
the server thinks its config is coming from.
3. It also seems possible that the value you're setting is getting
overridden from somewhere else. Try something like
SELECT name,source,sourcefile,sourceline FROM pg_settings
WHERE name like 'log%';
to see where it says it got the active values of these variables from.
It's especially easy to get these sorts of things confused if you've
got more than one Postgres installation on the machine, or if you're
using an arrangement where the config files are not in the data
directory proper.
regards, tom lane
В списке pgsql-novice по дате отправления: